Transactions API
Payments
Record a payment against an invoice or purchase bill, list payments, get one payment by id, delete a payment, and look up the bank accounts and payment methods a payment can use.
Create a payment
POST https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment
- cURL
- JavaScript
curl -X POST 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>' \
-H 'Content-Type: application/json' \
-d '{
"type": "customer",
"id": 1234,
"amount": "100.00",
"account": 5,
"description": "Partial payment",
"date": "09/09/2026",
"pmethod": "Cheque",
"serial_code_id": 3,
"ref": "REF-1",
"bank_charges": "2.50",
"cheque_number": "100245",
"cheque_date": "09/09/2026"
}'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment", {
method: "POST",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"type": "customer",
"id": 1234,
"amount": "100.00",
"account": 5,
"description": "Partial payment",
"date": "09/09/2026",
"pmethod": "Cheque",
"serial_code_id": 3,
"ref": "REF-1",
"bank_charges": "2.50",
"cheque_number": "100245",
"cheque_date": "09/09/2026"
}),
});
const data = await response.json();
console.log(data);
A customer payment requires permission to create customer payments. A supplier payment requires permission to create supplier payments.
The amount due is the bill total minus credits, divided by the bill currency rate. amount cannot exceed that due.
Body
| Field | Required | Type | Description |
|---|---|---|---|
type | Yes | string | customer or supplier |
id | Yes | number | Invoice id when type is customer. Purchase bill id when type is supplier |
amount | Yes | string or number | Payment amount. Must not exceed the amount due |
account | Yes | number | Bank or cash account id from List bank accounts |
description | Yes | string | Narration |
date | No | string | Payment date |
pmethod | No | string | Payment method name from List payment methods |
serial_code_id | No | number | Numbering series |
ref | No | string | Reference. Maximum 200 characters |
bank_charges | No | string or number | Bank charges |
cheque_number | No | string | Cheque number |
cheque_date | No | string | Cheque date |
Example request
{
"type": "customer",
"id": 1234,
"amount": "100.00",
"account": 5,
"description": "Partial payment",
"date": "09/09/2026",
"pmethod": "Cheque",
"serial_code_id": 3,
"ref": "REF-1",
"bank_charges": "2.50",
"cheque_number": "100245",
"cheque_date": "09/09/2026"
}
Example response
{
"success": true,
"message": "Payment has been saved successfully",
"result": 9012
}
result is the payment journal id.
Errors
type must be customer or supplierPermission DeniedInvalid idNo amount due on this document- A message that the amount exceeds the amount due
List payments
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments&type=customer&page_size=50
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments&type=customer&page_size=50' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments&type=customer&page_size=50", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
type is required. Set it to customer to list customer payments. That requires permission to view customer payments. Set it to supplier to list supplier payments. That requires permission to view supplier payments.
See Pagination.
If journals_status is omitted, the list is limited to payments whose status is Cleared.
| Parameter | Value |
|---|---|
type | Required. customer for customer payments. supplier for supplier payments |
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key. The array matches List invoices |
Default sort_by | journals_id |
| Sort fields | journals_id, journals_code, journals_date, journals_amount, journals_status, journals_created_at, journals_updated_at |
| Filter fields | journals_status, journals_code, journals_date, journals_contact_id, journals_created_by, journals_project_id, journals_amount, journals_method, journals_reference |
Example response
{
"success": true,
"message": "Payments fetched successfully",
"result": {
"records": [
{
"journals_id": 9012,
"journals_uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"journals_code": "PAY-001",
"journals_date": "2026-01-15",
"journals_status": "Cleared",
"journals_contact_id": 42,
"journals_contact_type": "Customer",
"contact_name": "Acme",
"journals_method": "Cash",
"journals_reference": "REF-1",
"journals_created_by": 11,
"journals_currency": 1,
"journals_created_at": "2026-01-15 10:30:00",
"journals_amount": "$100.00"
}
],
"page_info": {
"next_page_token": "...",
"has_next_page": true,
"has_prev_page": false,
"page_size": 50
}
}
}
Errors
type must be customer or supplierPermission Denied
Get payment details
GET {workspace_url}/?app=ealsuite_api/v1/payments/{id}&type=customer
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments/{id}&type=customer' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments/{id}&type=customer", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
type is required. Set it to customer to load a customer payment. That requires permission to view customer payments. Set it to supplier to load a supplier payment. That requires permission to view supplier payments. Users limited to their own or linked records get Payment not found when this payment is outside that scope. A payment of the other contact type is also Payment not found.
Query
| Parameter | Value |
|---|---|
type | Required. customer for customer payments. supplier for supplier payments |
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key |
attachments matches List invoices. Do not store url permanently.
The result uses the create payment body keys, plus code, record_id, account_name, and cheque_status. Dates are Y-m-d. amount and bank_charges are unformatted decimal strings. id is the invoice id when type is customer, or the purchase bill id when type is supplier. It is null when the payment is not applied to a bill. code is the payment number. serial_code_id is always null (the series is not stored on the payment). record_id is the payment journal id from create result and from the path.
account is the bank account id from List bank accounts. An uncleared cheque stores the bank on the cheque-account column, so that id is used until the cheque clears. account_name is the bank name. cheque_status is Uncleared or Cleared.
Example response
{
"success": true,
"message": "Payment details fetched successfully",
"result": {
"type": "customer",
"id": 1234,
"code": "REC-40804",
"amount": "100.00",
"account": 5,
"account_name": "Emirates NBDO",
"description": "Partial payment",
"date": "2026-01-15",
"pmethod": "Cheque",
"serial_code_id": null,
"ref": "REF-1",
"bank_charges": "2.50",
"cheque_number": "100245",
"cheque_date": "2026-01-15",
"cheque_status": "Uncleared",
"cheque_id": 8,
"record_id": 9012
}
}
Errors
type must be customer or supplierPayment not foundPermission Denied
Delete a payment
DELETE {workspace_url}/?app=ealsuite_api/v1/payments/{id}&type=customer
- cURL
- JavaScript
curl -X DELETE 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments/{id}&type=customer' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payments/{id}&type=customer", {
method: "DELETE",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
A customer payment requires permission to delete customer payments. A supplier payment requires permission to delete supplier payments. There is no request body.
type is required. Set it to customer to delete a customer payment. Set it to supplier to delete a supplier payment. Users limited to their own or linked records get Payment not found when this payment is outside that scope. A payment of the other contact type is also Payment not found. {id} is the payment journal id from create result and from Get payment details.
Query
| Parameter | Value |
|---|---|
type | Required. customer for customer payments. supplier for supplier payments |
Example response
{
"success": true,
"message": "PAY-001 deleted successfully",
"result": 9012
}
result is the deleted payment journal id.
Errors
type must be customer or supplierPayment not foundPermission DeniedThis transaction has been reconciledThis is a system generated delivery challan journal. Cannot be deleted manually.This payment cannot be deleted because the cheque has been cleared.Refund related transactions cannot be delete. Delete the Refund TransactionUnable to process the request since <b>Transaction Lock is enabled for this module for the date you've selected.</b>Remove applied landing cost to delete Expense
List bank accounts
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/bank-accounts
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/bank-accounts' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/bank-accounts", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
No query parameters. When the user is limited to specific accounts, only those accounts are returned.
Example response
{
"success": true,
"message": "Bank accounts fetched successfully",
"result": [
{
"id": 1,
"account_name": "Main Bank",
"account_number": "…",
"account_type": "…",
"currency_id": 1,
"currency_iso_code": "AED",
"payment_method": "…",
"is_default": true
}
]
}
List payment methods
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment-methods
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment-methods' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment-methods", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
No query parameters.
Example response
{
"success": true,
"message": "Payment methods fetched successfully",
"result": [
{
"id": 1,
"name": "Cash",
"is_default": true
}
]
}
Transfers
Create or update a transfer between two bank or cash accounts, list transfers, fetch one transfer, and delete a transfer.
Create or update a transfer
POST https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfer
- cURL
- JavaScript
curl -X POST 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfer' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>' \
-H 'Content-Type: application/json' \
-d '{
"from": 1,
"to": 2,
"amount": "500.00",
"description": "Bank transfer",
"date": "2026-09-09",
"currency_id": 1,
"currency": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"status": "Cleared",
"ref": "TR-REF-1",
"tags": ["ops"],
"serial_code_id": 4,
"transaction_id": 123
}'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfer", {
method: "POST",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"from": 1,
"to": 2,
"amount": "500.00",
"description": "Bank transfer",
"date": "2026-09-09",
"currency_id": 1,
"currency": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"status": "Cleared",
"ref": "TR-REF-1",
"tags": ["ops"],
"serial_code_id": 4,
"transaction_id": 123
}),
});
const data = await response.json();
console.log(data);
Creating a transfer requires permission to create transfers. Updating requires permission to edit transfers. If the role is limited to the user's own records, only that user's transfers can be updated.
Omit transaction_id to create. Send transaction_id in the body to update. The from and to accounts must use currencies that share a base currency or are the same currency. A reconciled transfer cannot be edited. When the user is limited to specific accounts, the from account must be one of those accounts.
Body
| Field | Required | Type | Description |
|---|---|---|---|
from | Yes | number | Source account id |
to | Yes | number | Destination account id. Must differ from from |
amount | Yes | string or number | Must be greater than 0. Maximum 99999999999999.99 |
description | Yes | string | Narration |
date | No | string | Y-m-d or the branch date format. Defaults to today |
currency_id or currency | No | number | Defaults to the currency of the from account |
currency_rate | No | number | Defaults to 1. Must be greater than 0 |
pmethod | No | string | When this is Cheque, cheque_id is required |
cheque_id | No | number | Unused cheque on the from account. See List unused cheques |
status | No | string | Cleared or Uncleared. Any other value is stored as Cleared |
ref | No | string | Maximum 200 characters |
tags | No | array or string | Tag list, or a comma-separated string |
serial_code_id | No | number | Create only |
transaction_id | No | number | Transfer id. Present this to update |
Example request
{
"from": 1,
"to": 2,
"amount": "500.00",
"description": "Bank transfer",
"date": "2026-09-09",
"currency_id": 1,
"currency": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"status": "Cleared",
"ref": "TR-REF-1",
"tags": ["ops"],
"serial_code_id": 4,
"transaction_id": 123
}
Example response
{
"success": true,
"message": "Transfer created successfully",
"result": {
"code": "TR-0001",
"id": 123
}
}
An update returns the message Transfer updated successfully and the same result shape. An oversized amount returns Value limit breached for Amount. (Max : 99999999999999.99).
List transfers
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers&page_size=50
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers&page_size=50' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers&page_size=50", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Listing transfers requires permission to view transfers.
See Pagination.
The list includes transfers whose status is Cleared or Uncleared. A role limited to the user's own records returns only transfers that user created. When the user is limited to specific accounts, only transfers from those accounts are returned.
account_id is the source account id sent as from when creating a transfer. journals_account_id is that account's ledger category id. to_account_id is the destination account id sent as to. journals_category_id is that account's ledger category id. category_name is the destination ledger name.
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key. The array matches List invoices |
Default sort_by | journals_id |
| Sort fields | journals_id, journals_code, journals_date, journals_amount, journals_status, journals_created_at, journals_updated_at |
| Filter fields | journals_status, journals_code, journals_date, journals_amount, journals_method, journals_reference, journals_notes, journals_created_by, journals_project_id, journals_account_id, journals_category_id |
Example response
{
"success": true,
"message": "Transfers fetched successfully",
"result": {
"records": [
{
"journals_id": 123,
"journals_uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"journals_code": "TR-0001",
"journals_date": "2026-09-09",
"journals_status": "Cleared",
"journals_method": "Cheque",
"journals_reference": "TR-REF-1",
"journals_notes": "Bank transfer",
"journals_account_id": 48,
"account_id": 1,
"account_name": "Main Bank",
"to_account_id": 2,
"to_account_name": "Petty Cash",
"journals_category_id": 52,
"category_name": "Petty Cash",
"journals_created_by": 11,
"journals_currency": 1,
"journals_created_at": "2026-09-09 10:30:00",
"journals_amount": "$500.00"
}
],
"page_info": {
"next_page_token": "...",
"has_next_page": true,
"has_prev_page": false,
"page_size": 50
}
}
}
Errors
Permission Denied
Get transfer details
GET {workspace_url}/?app=ealsuite_api/v1/transfers/{id}
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers/{id}' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers/{id}", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Requires transfer view access. Users limited to their own records get Transfer not found when this transfer is outside that scope. When the user is limited to specific accounts, a transfer from another account is also Transfer not found.
Query
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key |
attachments matches List invoices. Do not store url permanently.
The result uses the create transfer body keys, plus code, from_name, to_name, cheque_number, cheque_date, and cheque_status. Dates are Y-m-d. amount is an unformatted decimal string. from and to are bank account ids from List bank accounts. code is the transfer number. serial_code_id is always null (the series is not stored on the transfer). transaction_id is the transfer journal id from create result and from the path. tags is an array of tag names.
Example response
{
"success": true,
"message": "Transfer details fetched successfully",
"result": {
"from": 1,
"from_name": "Main Bank",
"to": 2,
"to_name": "Petty Cash",
"amount": "500.00",
"description": "Bank transfer",
"date": "2026-09-09",
"currency_id": 1,
"currency": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"cheque_number": "100245",
"cheque_date": "2026-09-09",
"cheque_status": "Cleared",
"status": "Cleared",
"ref": "TR-REF-1",
"tags": ["ops"],
"serial_code_id": null,
"transaction_id": 123,
"code": "TR-0001"
}
}
Errors
Transfer not foundPermission Denied
Delete a transfer
DELETE https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers/123
- cURL
- JavaScript
curl -X DELETE 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers/123' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/transfers/123", {
method: "DELETE",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Deleting a transfer requires permission to delete transfers. There is no request body. Users limited to their own records get Permission Denied when this transfer is outside that scope. When the user is limited to specific accounts, a transfer from another account returns Permission Denied to transfer from this account.
The same checks as deleting a transfer in the app apply: a reconciled transfer cannot be deleted, applied landing cost must be removed first, and a transaction lock on accounts for the transfer date blocks the delete.
Example response
{
"success": true,
"message": "TR-0001 deleted successfully",
"result": 123
}
result is the deleted transfer id.
Errors
transfer id is requiredTransfer not foundPermission DeniedPermission Denied to transfer from this accountThis transaction has been reconciledThis is a system generated delivery challan journal. Cannot be deleted manually.Refund related transactions cannot be delete. Delete the Refund TransactionUnable to process the request since <b>Transaction Lock is enabled for this module for the date you've selected.</b>Remove applied landing cost to delete Expense
Expenses
Create or update an expense paid from a bank or cash account, list expenses, fetch one expense, and delete an expense.
Create or update an expense
POST https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expense
- cURL
- JavaScript
curl -X POST 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expense' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>' \
-H 'Content-Type: application/json' \
-d '{
"account": 1,
"cats": 45,
"amount": "250.00",
"description": "Office supplies",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"cheque_date": "2026-09-09",
"payee_type": "payee",
"payee": "Stationery shop",
"supplier": 7,
"status": "Cleared",
"ref": "EXP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Due on receipt",
"form": 1,
"serial_code_id": 4,
"transaction_id": 123,
"is_landing_cost": false,
"taxed": true,
"tax_id": 1,
"is_tax_inclusive": false,
"tax_reg_type": "Vat Registered",
"taxnumber": "100000000000003",
"place_of_supply": "Dubai",
"emirate": "Dubai",
"gcc": "United Arab Emirates",
"bill_id": 1234,
"bill_type": "invoice"
}'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expense", {
method: "POST",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"account": 1,
"cats": 45,
"amount": "250.00",
"description": "Office supplies",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"cheque_date": "2026-09-09",
"payee_type": "payee",
"payee": "Stationery shop",
"supplier": 7,
"status": "Cleared",
"ref": "EXP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Due on receipt",
"form": 1,
"serial_code_id": 4,
"transaction_id": 123,
"is_landing_cost": false,
"taxed": true,
"tax_id": 1,
"is_tax_inclusive": false,
"tax_reg_type": "Vat Registered",
"taxnumber": "100000000000003",
"place_of_supply": "Dubai",
"emirate": "Dubai",
"gcc": "United Arab Emirates",
"bill_id": 1234,
"bill_type": "invoice"
}),
});
const data = await response.json();
console.log(data);
Creating an expense requires permission to create expenses. Updating requires permission to edit expenses.
Omit transaction_id to create. Send transaction_id in the body to update. The id must be an existing expense. A reconciled expense cannot be edited. When the user is limited to specific accounts, account must be one of those accounts.
cats is a leaf ledger account that is not Direct Income, Indirect Income, or Sales. List those accounts with:
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/chart-of-accounts&leaf=1&type=Purchase,Direct Expense,Indirect Expense,Fixed Asset,Current Asset,Loans (Liability),Current Liabilities,Capital Account,Suspense Account
Omit form to use the first expense form assigned to the caller, or the first expense form when none are assigned. Values for fields that form does not include are dropped. Payee text is kept when payee_type is payee. The supplier id is kept when payee_type is supplier.
Body
| Field | Required | Type | Description |
|---|---|---|---|
account | Yes | number | Bank or cash account id. See List bank accounts |
cats | Yes | number | Category id from the chart-of-accounts call above |
amount | Yes | string or number | Must be greater than 0. Maximum 99999999999999.99 |
description | Yes | string | Narration |
date | No | string | Y-m-d or the branch date format. Defaults to today |
currency or currency_id | No | number | Defaults to the currency of account. See List currencies |
currency_rate | No | number | Defaults to 1. Must be greater than 0 |
pmethod | No | string | When this is Cheque, cheque_id is required. See List payment methods |
cheque_id | No | number | Unused cheque on account. See List unused cheques |
cheque_date | No | string | Y-m-d or the branch date format. Defaults to today. Used when pmethod is Cheque |
payee_type | No | string | payee or supplier |
payee | No | string | Payee name. Maximum 200 characters. Kept when payee_type is payee |
supplier | No | number | Supplier id. See List suppliers. Kept when payee_type is supplier |
status | No | string | Cleared or Uncleared. Defaults to Cleared |
ref | No | string | Maximum 200 characters |
tags | No | array or string | Tag list, or a comma-separated string |
project_id | No | number | See List projects |
cost_center | No | number | See List cost centers |
service_request | No | number | See List service requests. Ignored when the service request module is off |
service_catalogue | No | number | Service catalogue id. Defaults to 0 |
term_id | No | number | Terms id for module=expense. See List terms. When terms is omitted, the saved term text is used |
terms | No | string | Terms text. Used instead of the text stored on term_id when both are sent |
form | No | number | Expense form id. Omit to use the caller's default expense form |
serial_code_id | No | number | Create only. See Resolve a series with type=expense |
transaction_id | No | number | Expense id. Present this to update |
is_landing_cost | No | boolean | Landing-cost expense. Defaults to false |
taxed | No | boolean | When true, tax_id is required. See List tax options |
tax_id | No | number | Tax id. Required when taxed is true |
is_tax_inclusive | No | boolean | true for tax inclusive. Defaults to tax exclusive |
tax_reg_type | No | string | Registration status from List tax options. Required for taxed expenses when that tax system requires it |
taxnumber | No | string | Business number. Maximum 100 characters |
place_of_supply | No | string | India source of supply. Send the option name |
emirate | No | string | United Arab Emirates source of supply |
gcc | No | string | GCC source of supply |
bill_id | No | number | Bill to associate. Omit or 0 for a standalone expense |
bill_type | No | string | invoice or pro_forma_invoice. Required when bill_id is set |
Example request
{
"account": 1,
"cats": 45,
"amount": "250.00",
"description": "Office supplies",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"cheque_date": "2026-09-09",
"payee_type": "payee",
"payee": "Stationery shop",
"supplier": 7,
"status": "Cleared",
"ref": "EXP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Due on receipt",
"form": 1,
"serial_code_id": 4,
"transaction_id": 123,
"is_landing_cost": false,
"taxed": true,
"tax_id": 1,
"is_tax_inclusive": false,
"tax_reg_type": "Vat Registered",
"taxnumber": "100000000000003",
"place_of_supply": "Dubai",
"emirate": "Dubai",
"gcc": "United Arab Emirates",
"bill_id": 1234,
"bill_type": "invoice"
}
Example response
{
"success": true,
"message": "Expense created successfully",
"result": {
"code": "EXP-0001",
"id": 123
}
}
An update returns the message Expense updated successfully and the same result shape.
A missing account returns Choose an account. An account outside the caller's allowed accounts returns Permission Denied to record an expense from this account. A missing category returns Choose Category. A parent category, or a category of type Direct Income, Indirect Income, or Sales, returns Invalid category. An unknown expense id returns Expense not found. A reconciled expense returns This transaction has been reconciled. An oversized amount returns Value limit breached for Amount. (Max : 99999999999999.99).
List expenses
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses&page_size=50
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses&page_size=50' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses&page_size=50", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Listing expenses requires permission to view expenses.
See Pagination.
The list includes expenses whose status is Cleared or Uncleared. A role limited to the user's own records returns only expenses that user created. When the user is limited to specific accounts, only expenses on those accounts are returned.
account_id is the bank or cash account id used when creating an expense. journals_account_id is the ledger category id stored on the expense. An uncleared cheque expense leaves journals_account_id and account_id empty. The bank account is still used when the caller is limited to specific accounts.
journals_payee is the payee name stored on the expense. journals_payee_id is the supplier id when the expense is linked to a supplier, or 0 when it is not.
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key. The array matches List invoices |
Default sort_by | journals_id |
| Sort fields | journals_id, journals_code, journals_date, journals_amount, journals_status, journals_payee, journals_created_at, journals_updated_at |
| Filter fields | journals_status, journals_code, journals_date, journals_amount, journals_payee, journals_payee_id, journals_method, journals_reference, journals_notes, journals_created_by, journals_project_id, journals_account_id, journals_category_id |
Example response
{
"success": true,
"message": "Expenses fetched successfully",
"result": {
"records": [
{
"journals_id": 123,
"journals_uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"journals_code": "EXP-0001",
"journals_date": "2026-09-09",
"journals_status": "Cleared",
"journals_payee": "Stationery shop",
"journals_payee_id": 7,
"journals_method": "Cheque",
"journals_reference": "EXP-REF-1",
"journals_notes": "Office supplies",
"journals_account_id": 48,
"account_id": 1,
"account_name": "Main Bank",
"journals_category_id": 45,
"category_name": "Office Expense",
"journals_created_by": 11,
"journals_currency": 1,
"journals_created_at": "2026-09-09 10:30:00",
"journals_amount": "$250.00"
}
],
"page_info": {
"next_page_token": "...",
"has_next_page": true,
"has_prev_page": false,
"page_size": 50
}
}
}
Errors
Permission Denied
Get expense details
GET {workspace_url}/?app=ealsuite_api/v1/expenses/{id}
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses/{id}' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses/{id}", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Requires expense view access. Users limited to their own records get Expense not found when this expense is outside that scope. When the user is limited to specific accounts, an expense on another account is also Expense not found.
Query
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key |
attachments matches List invoices. Do not store url permanently.
The result uses the create expense body keys, plus code, account_name, cheque_number, and cheque_status. Dates are as stored on the expense. amount is an unformatted decimal string in the expense currency: the value sent on create (tax-inclusive total when is_tax_inclusive is true, otherwise the amount before tax). account is the bank account id from List bank accounts. An uncleared cheque stores the bank on the cheque-account column, so that id is used until the cheque clears. account_name is the bank name. cats is the expense category id. code is the expense number. serial_code_id is always null (the series is not stored on the expense). transaction_id is the expense journal id from create result and from the path. tags is an array of tag names. bill_id and bill_type are set when the expense is linked to an invoice or pro forma invoice; otherwise bill_id is 0 and bill_type is empty.
Example response
{
"success": true,
"message": "Expense details fetched successfully",
"result": {
"account": 1,
"account_name": "Main Bank",
"cats": 45,
"amount": "250.00",
"description": "Office supplies",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_id": 18,
"cheque_number": "100245",
"cheque_date": "2026-09-09",
"cheque_status": "Uncleared",
"payee_type": "payee",
"payee": "Stationery shop",
"supplier": 7,
"status": "Cleared",
"ref": "EXP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Due on receipt",
"form": 1,
"serial_code_id": null,
"transaction_id": 123,
"code": "EXP-0001",
"is_landing_cost": false,
"taxed": true,
"tax_id": 1,
"is_tax_inclusive": false,
"tax_reg_type": "Vat Registered",
"taxnumber": "100000000000003",
"place_of_supply": "Dubai",
"emirate": "Dubai",
"gcc": "United Arab Emirates",
"bill_id": 1234,
"bill_type": "invoice"
}
}
Errors
Expense not foundPermission Denied
Delete an expense
DELETE https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses/123
- cURL
- JavaScript
curl -X DELETE 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses/123' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/expenses/123", {
method: "DELETE",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Deleting an expense requires permission to delete expenses. There is no request body. Users limited to their own records get Permission Denied when this expense is outside that scope. When the user is limited to specific accounts, an expense on another account returns Permission Denied to record an expense from this account.
The same checks as deleting an expense in the app apply: a reconciled expense cannot be deleted, a cleared cheque expense cannot be deleted, applied landing cost must be removed first, and a transaction lock on accounts for the expense date blocks the delete.
Example response
{
"success": true,
"message": "EXP-0001 deleted successfully",
"result": 123
}
result is the deleted expense id.
Errors
expense id is requiredExpense not foundPermission DeniedPermission Denied to record an expense from this accountThis transaction has been reconciledThis is a system generated delivery challan journal. Cannot be deleted manually.This transaction cannot be deleted because the cheque has been cleared.Refund related transactions cannot be delete. Delete the Refund TransactionUnable to process the request since <b>Transaction Lock is enabled for this module for the date you've selected.</b>Remove applied landing cost to delete Expense
Deposits
Create or update a deposit received into a bank or cash account, list deposits, fetch one deposit, and delete a deposit.
Create or update a deposit
POST https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposit
- cURL
- JavaScript
curl -X POST 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposit' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>' \
-H 'Content-Type: application/json' \
-d '{
"account": 1,
"cats": 12,
"amount": "250.00",
"description": "Customer receipt",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_number": "100245",
"cheque_date": "2026-09-09",
"payer": "Walk-in customer",
"status": "Cleared",
"ref": "DEP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Received in full",
"serial_code_id": 4,
"transaction_id": 123
}'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposit", {
method: "POST",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"account": 1,
"cats": 12,
"amount": "250.00",
"description": "Customer receipt",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_number": "100245",
"cheque_date": "2026-09-09",
"payer": "Walk-in customer",
"status": "Cleared",
"ref": "DEP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Received in full",
"serial_code_id": 4,
"transaction_id": 123
}),
});
const data = await response.json();
console.log(data);
Creating a deposit requires permission to create deposits. Updating requires permission to edit deposits.
Omit transaction_id to create. Send transaction_id in the body to update. The id must be an existing deposit. A reconciled deposit cannot be edited. When the user is limited to specific accounts, account must be one of those accounts.
cats is a leaf ledger account that is not Direct Expense, Indirect Expense, or Purchase. List those accounts with:
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/chart-of-accounts&leaf=1&type=Sales,Direct Income,Indirect Income,Fixed Asset,Current Asset,Loans (Liability),Current Liabilities,Capital Account,Suspense Account
Body
| Field | Required | Type | Description |
|---|---|---|---|
account | Yes | number | Bank or cash account id. See List bank accounts |
cats | Yes | number | Category id from the chart-of-accounts call above |
amount | Yes | string or number | Must be greater than 0. Maximum 99999999999999.99. Scientific notation is rejected |
description | Yes | string | Narration |
date | No | string | Y-m-d or the branch date format. Defaults to today |
currency or currency_id | No | number | Defaults to the currency of account. See List currencies |
currency_rate | No | number | Defaults to 1. Must be greater than 0 |
pmethod | No | string | When this is Cheque, cheque_number is required. See List payment methods |
cheque_number | No | string | Cheque number typed for the deposit. Required when pmethod is Cheque. Maximum 200 characters |
cheque_date | No | string | Y-m-d or the branch date format. Defaults to today. Used when pmethod is Cheque |
payer | No | string | Payer name. Maximum 200 characters |
status | No | string | Cleared or Uncleared. Defaults to Cleared. A cheque deposit is stored as Cleared |
ref | No | string | Maximum 200 characters |
tags | No | array or string | Tag list, or a comma-separated string |
project_id | No | number | See List projects. Omit or 0 for no project |
cost_center | No | number | See List cost centers |
service_request | No | number | See List service requests. Ignored when the service request module is off |
service_catalogue | No | number | Service catalogue id. Defaults to 0 |
term_id | No | number | Terms id for module=deposit. See List terms. When terms is omitted, the saved term text is used |
terms | No | string | Terms text. Used instead of the text stored on term_id when both are sent |
serial_code_id | No | number | Create only. See Resolve a series with type=income |
transaction_id | No | number | Deposit id. Present this to update |
Example request
{
"account": 1,
"cats": 12,
"amount": "250.00",
"description": "Customer receipt",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"cheque_number": "100245",
"cheque_date": "2026-09-09",
"payer": "Walk-in customer",
"status": "Cleared",
"ref": "DEP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Received in full",
"serial_code_id": 4,
"transaction_id": 123
}
Example response
{
"success": true,
"message": "Deposit created successfully",
"result": {
"code": "DEP-0001",
"id": 123
}
}
An update returns the message Deposit updated successfully and the same result shape.
A missing account returns Choose an account. An account outside the caller's allowed accounts returns Permission Denied to record a deposit to this account. A missing category returns Choose Category. A parent category, or a category of type Direct Expense, Indirect Expense, or Purchase, returns Invalid category. An unknown deposit id returns Deposit not found. A reconciled deposit returns This transaction has been reconciled. A cheque deposit without cheque_number returns Enter Cheque Number. A cheque_number longer than 200 characters returns Character limit of 200 exceeded for cheque_number. An oversized amount returns Value limit breached for Amount. (Max : 99999999999999.99).
List deposits
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits&page_size=50
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits&page_size=50' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits&page_size=50", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Listing deposits requires permission to view deposits.
See Pagination.
The list includes deposits whose status is Cleared or Uncleared. A role limited to the user's own records returns only deposits that user created. When the user is limited to specific accounts, only deposits on those accounts are returned.
account_id is the bank or cash account id used when creating a deposit. journals_account_id is the ledger category id stored on the deposit. An uncleared cheque deposit leaves journals_account_id and account_id empty. The bank account is still used when the caller is limited to specific accounts.
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key. The array matches List invoices |
Default sort_by | journals_id |
| Sort fields | journals_id, journals_code, journals_date, journals_amount, journals_status, journals_payer, journals_created_at, journals_updated_at |
| Filter fields | journals_status, journals_code, journals_date, journals_amount, journals_payer, journals_method, journals_reference, journals_notes, journals_created_by, journals_project_id, journals_account_id, journals_category_id |
Example response
{
"success": true,
"message": "Deposits fetched successfully",
"result": {
"records": [
{
"journals_id": 123,
"journals_uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"journals_code": "DEP-0001",
"journals_date": "2026-09-09",
"journals_status": "Cleared",
"journals_payer": "Walk-in customer",
"journals_method": "Cheque",
"journals_reference": "DEP-REF-1",
"journals_notes": "Customer receipt",
"journals_account_id": 48,
"account_id": 1,
"account_name": "Main Bank",
"journals_category_id": 12,
"category_name": "Sales",
"journals_created_by": 11,
"journals_currency": 1,
"journals_created_at": "2026-09-09 10:30:00",
"journals_amount": "$250.00"
}
],
"page_info": {
"next_page_token": "...",
"has_next_page": true,
"has_prev_page": false,
"page_size": 50
}
}
}
Errors
Permission Denied
Get deposit details
GET {workspace_url}/?app=ealsuite_api/v1/deposits/{id}
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits/{id}' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits/{id}", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Requires deposit view access. Users limited to their own records get Deposit not found when this deposit is outside that scope. When the user is limited to specific accounts, a deposit on another account is also Deposit not found.
Query
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key |
attachments matches List invoices. Do not store url permanently.
The result uses the create deposit body keys, plus code and account_name. Dates are as stored on the deposit. amount is an unformatted decimal string in the deposit currency. account is the bank account id from List bank accounts. An uncleared cheque stores the bank on the cheque-account column, so that id is used until the cheque clears. account_name is the bank name. cats is the income category id. code is the deposit number. serial_code_id is always null (the series is not stored on the deposit). transaction_id is the deposit journal id from create result and from the path. tags is an array of tag names.
cheque_number, cheque_date, and cheque_status are present only when pmethod is Cheque. They are omitted for other payment methods.
Example response
{
"success": true,
"message": "Deposit details fetched successfully",
"result": {
"account": 1,
"account_name": "Main Bank",
"cats": 12,
"amount": "250.00",
"description": "Customer receipt",
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"pmethod": "Cheque",
"payer": "Walk-in customer",
"status": "Cleared",
"ref": "DEP-REF-1",
"tags": ["ops"],
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Received in full",
"serial_code_id": null,
"transaction_id": 123,
"code": "DEP-0001",
"cheque_number": "100245",
"cheque_date": "2026-09-09",
"cheque_status": "Uncleared"
}
}
Errors
Deposit not foundPermission Denied
Delete a deposit
DELETE https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits/123
- cURL
- JavaScript
curl -X DELETE 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits/123' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/deposits/123", {
method: "DELETE",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Deleting a deposit requires permission to delete deposits. There is no request body. Users limited to their own records get Permission Denied when this deposit is outside that scope. When the user is limited to specific accounts, a deposit on another account returns Permission Denied to record a deposit to this account.
The same checks as deleting a deposit in the app apply: a reconciled deposit cannot be deleted, a cleared cheque deposit cannot be deleted, and a transaction lock on accounts for the deposit date blocks the delete. Linked deposit rows for the journal, including a cheque-ref duplicate, are removed with the journal.
Example response
{
"success": true,
"message": "DEP-0001 deleted successfully",
"result": 123
}
result is the deleted deposit id.
Errors
deposit id is requiredDeposit not foundPermission DeniedPermission Denied to record a deposit to this accountThis transaction has been reconciledThis is a system generated delivery challan journal. Cannot be deleted manually.This transaction cannot be deleted because the cheque has been cleared.Refund related transactions cannot be delete. Delete the Refund TransactionUnable to process the request since <b>Transaction Lock is enabled for this module for the date you've selected.</b>Remove applied landing cost to delete Expense
Journals
Create or update a manual journal, list manual journals, fetch one journal, and delete a journal. Debit and credit totals must match.
Create or update a journal
POST https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journal
- cURL
- JavaScript
curl -X POST 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journal' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>' \
-H 'Content-Type: application/json' \
-d '{
"notes": "Month-end adjustment",
"lines": [
{
"account": 45,
"debit": "100.00",
"credit": "0",
"description": "Rent accrual"
},
{
"account": "customer_8",
"debit": "0",
"credit": "100.00",
"description": "Customer share"
}
],
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Internal entry",
"serial_code_id": 4,
"transaction_id": 123
}'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journal", {
method: "POST",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"notes": "Month-end adjustment",
"lines": [
{
"account": 45,
"debit": "100.00",
"credit": "0",
"description": "Rent accrual"
},
{
"account": "customer_8",
"debit": "0",
"credit": "100.00",
"description": "Customer share"
}
],
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Internal entry",
"serial_code_id": 4,
"transaction_id": 123
}),
});
const data = await response.json();
console.log(data);
Creating a journal requires permission to create journals. Updating requires permission to edit journals.
Omit transaction_id to create. Send transaction_id in the body to update. The id must be an existing manual journal. A system journal cannot be edited. A reconciled journal cannot be edited.
Each line account is either a leaf ledger account id, or a contact key customer_{id} / supplier_{id}. List ledger accounts with:
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/chart-of-accounts&leaf=1&exclude=Sundry Debtors,Sundry Creditors,Advance Paid,Advance Received
Contact ids come from List customers and List suppliers. At most one contact line is allowed. A line narration left empty is stored as the journal notes.
Body
| Field | Required | Type | Description |
|---|---|---|---|
notes | Yes | string | Journal narration |
lines | Yes | array | At least two lines. See line fields below |
lines[].account | Yes | number or string | Leaf ledger account id, or customer_{id} / supplier_{id} |
lines[].debit | Yes | string or number | Debit amount in the journal currency. Use 0 on a credit line. Maximum 99999999999999.99 |
lines[].credit | Yes | string or number | Credit amount in the journal currency. Use 0 on a debit line. Maximum 99999999999999.99 |
lines[].description | No | string | Line narration. Empty uses notes |
date | No | string | Y-m-d or the branch date format. Defaults to today |
currency or currency_id | No | number | Defaults to the branch base currency. See List currencies |
currency_rate | No | number | Defaults to 1. Must be greater than 0 |
project_id | No | number | See List projects. Omit or 0 for no project |
cost_center | No | number | See List cost centers |
service_request | No | number | See List service requests. Ignored when the service request module is off |
service_catalogue | No | number | Service catalogue id. Defaults to 0 |
term_id | No | number | Terms id for module=journal. See List terms. Omit to use the default journal term when one exists. When terms is omitted, the saved term text is used |
terms | No | string | Terms text. Used instead of the text stored on term_id when both are sent |
serial_code_id | No | number | Create only. See Resolve a series with type=journal |
transaction_id | No | number | Journal id. Present this to update |
Example request
{
"notes": "Month-end adjustment",
"lines": [
{
"account": 45,
"debit": "100.00",
"credit": "0",
"description": "Rent accrual"
},
{
"account": "customer_8",
"debit": "0",
"credit": "100.00",
"description": "Customer share"
}
],
"date": "2026-09-09",
"currency": 1,
"currency_id": 1,
"currency_rate": 1,
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Internal entry",
"serial_code_id": 4,
"transaction_id": 123
}
Example response
{
"success": true,
"message": "Journal created successfully",
"result": {
"code": "JV-0001",
"id": 123
}
}
An update returns the message Journal updated successfully and the same result shape.
An empty narration returns Enter Notes. Fewer than two lines returns At least two journal lines are required. A line that is not an object returns Invalid journal line. An oversized debit or credit returns Value limit breached for Debit. (Max : 99999999999999.99) or the matching Credit message. A missing account, or one of Sundry Debtors, Sundry Creditors, Advance Paid, or Advance Received, returns Invalid account. A parent account returns Parent accounts are not allowed. A zero debit total returns Total amount should be greater than zero. Unbalanced lines return Credit and Debit side are not Equal. More than one contact line returns Multiple contact selected. An unknown journal id returns Journal not found. A system journal returns System Journals cannot be edited. A reconciled journal returns This transaction has been reconciled.
List journals
GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals&page_size=50
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals&page_size=50' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals&page_size=50", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Listing journals requires permission to view journals.
See Pagination.
The list is the journal header. It does not include journal lines. System journals are omitted. A role limited to the user's own records returns only journals that user created. A limit to specific bank accounts does not apply to this list.
journals_contact_type is Customer or Supplier when the journal has one contact line, and empty otherwise. journals_contact_id is that contact's id.
journals_account_id, account_id, account_name, journals_category_id, category_name, journals_method, and journals_reference are present and empty. A manual journal does not store a bank account or a category on the header.
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key. The array matches List invoices |
Default sort_by | journals_id |
| Sort fields | journals_id, journals_code, journals_date, journals_amount, journals_status, journals_created_at, journals_updated_at |
| Filter fields | journals_status, journals_code, journals_date, journals_amount, journals_notes, journals_created_by, journals_project_id, journals_contact_type, journals_contact_id |
Example response
{
"success": true,
"message": "Journals fetched successfully",
"result": {
"records": [
{
"journals_id": 123,
"journals_uuid": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"journals_code": "JV-0001",
"journals_date": "2026-09-09",
"journals_status": "Cleared",
"journals_contact_type": "Customer",
"journals_contact_id": 8,
"journals_method": null,
"journals_reference": null,
"journals_notes": "Month-end adjustment",
"journals_account_id": null,
"account_id": null,
"account_name": null,
"journals_category_id": null,
"category_name": null,
"journals_created_by": 11,
"journals_currency": 1,
"journals_created_at": "2026-09-09 10:30:00",
"journals_amount": "$100.00"
}
],
"page_info": {
"next_page_token": "...",
"has_next_page": true,
"has_prev_page": false,
"page_size": 50
}
}
}
Errors
Permission Denied
Get journal details
GET {workspace_url}/?app=ealsuite_api/v1/journals/{id}
- cURL
- JavaScript
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals/{id}' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals/{id}", {
method: "GET",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Requires journal view access. Users limited to their own records get Journal not found when this journal is outside that scope. Bank-account limits do not apply. System journals are omitted and also return Journal not found.
Query
| Parameter | Value |
|---|---|
include_attachments | Set to 1 to include attachments. Omit it and the response has no attachments key |
attachments matches List invoices. Do not store url permanently.
The result uses the create journal body keys, plus code. Dates are as stored on the journal. Line debit and credit are unformatted decimal strings in the journal currency. A contact line account is customer_{id} or supplier_{id}. A ledger line account is the leaf account id. code is the journal number. serial_code_id is always null (the series is not stored on the journal). transaction_id is the journal id from create result and from the path. service_catalogue is always 0 (create accepts it, but it is not stored on the journal).
Example response
{
"success": true,
"message": "Journal details fetched successfully",
"result": {
"notes": "Month-end adjustment",
"lines": [
{
"account": 45,
"debit": "100.00",
"credit": "0.00",
"description": "Rent accrual"
},
{
"account": "customer_8",
"debit": "0.00",
"credit": "100.00",
"description": "Customer share"
}
],
"date": "2026-09-09",
"currency": 1,
"currency_rate": 1,
"project_id": 3,
"cost_center": 2,
"service_request": 9,
"service_catalogue": 0,
"term_id": 4,
"terms": "Internal entry",
"serial_code_id": null,
"transaction_id": 123,
"code": "JV-0001"
}
}
Errors
Journal not foundPermission Denied
Delete a journal
DELETE https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals/123
- cURL
- JavaScript
curl -X DELETE 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals/123' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'
const response = await fetch("https://yoursite.ealsuite.com/?app=ealsuite_api/v1/journals/123", {
method: "DELETE",
headers: {
Authorization: "Bearer <personal_access_token>",
SelectedBranchId: "<numeric_branch_id>",
},
});
const data = await response.json();
console.log(data);
Deleting a journal requires permission to delete journals. There is no request body. Users limited to their own records get Permission Denied when this journal is outside that scope. A system journal cannot be deleted.
The same checks as deleting a manual journal in the app apply: a reconciled journal cannot be deleted, a journal whose contact amount has been used cannot be deleted, and a transaction lock on accounts for the journal date blocks the delete.
Example response
{
"success": true,
"message": "JV-0001 deleted successfully",
"result": 123
}
result is the deleted journal id.
Errors
journal id is requiredJournal not foundPermission DeniedSystem Journals cannot be deletedThis transaction has been reconciled{code} cannot be deleted as amount is usedThis is a system generated delivery challan journal. Cannot be deleted manually.Refund related transactions cannot be delete. Delete the Refund TransactionUnable to process the request since <b>Transaction Lock is enabled for this module for the date you've selected.</b>Remove applied landing cost to delete Expense