Skip to main content

Reference data API

Form details​

Get form details​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/form-details&module=invoice
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/form-details&module=invoice' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Returns the create-body field list for one module so a client can render a form. Each post_variable is the JSON key for that module's create call. Table-backed values are not inlined; call related_endpoint with the same Bearer token and SelectedBranchId, then POST the row id as that field.

Requires permission to create the matching resource. module=invoice with retail_invoice=1 requires permission to create retail invoices. module=payment requires type=customer or type=supplier and permission to create that payment type. A missing role returns Permission Denied. module=invoice returns that branch's invoice custom fields. retail_invoice=1 returns the retail invoice set. module=credit_note returns that branch's credit note custom fields. module=sales_order returns that branch's sales order custom fields. module=quote returns that branch's quote custom fields. module=purchase_bill returns that branch's purchase bill custom fields. module=debit_note returns that branch's debit note custom fields. module=purchase_order returns that branch's purchase order custom fields. module=item returns that branch's item custom fields. Other modules return custom_fields as an empty array. upload_fields is always an empty array.

Query

ParameterRequiredTypeDescription
moduleYesstringinvoice, credit_note, sales_order, quote, purchase_bill, debit_note, purchase_order, payment, transfer, expense, deposit, journal, item, customer, or supplier
retail_invoiceNo0 or 1Only with module=invoice. 1 checks retail-invoice create permission
typeWhen module is paymentstringcustomer or supplier

Each entry in fields uses these keys. Nested items, additional_expenses, lines, and item_expenses add a fields array of the same shape.

KeyDescription
labelForm label
column_typetext, textarea, number, date, dropdown, lookup, array, object, or multiselect
post_variableCreate JSON key
mandatoryMatches the create body Required column
optionsClosed lists only (status, p/f, Published/Draft)
formatDate fields use the branch date format from Get config
valueDefault when create already defaults the field
related_endpointPublic GET to load {id, name} rows. Not present on scalars
related_paramsParent field names to substitute into a lookup path, for example cheques { "account_id": "from" }

Example response

{
"success": true,
"message": "Form details fetched successfully",
"result": {
"module": "invoice",
"create_path": "POST /invoice",
"fields": {
"customer_id": {
"label": "Customer",
"column_type": "lookup",
"post_variable": "customer_id",
"mandatory": true,
"related_endpoint": "GET /customers"
},
"invoice_date": {
"label": "Date",
"column_type": "date",
"post_variable": "invoice_date",
"mandatory": false,
"format": {
"type": "date",
"date_format": "DD/MM/YYYY"
}
},
"retail_invoice": {
"label": "Retail Invoice",
"column_type": "dropdown",
"post_variable": "retail_invoice",
"mandatory": false,
"options": [
{ "id": 0, "name": "No" },
{ "id": 1, "name": "Yes" }
],
"value": 0
},
"catid": {
"label": "Catalogue",
"column_type": "number",
"post_variable": "catid",
"mandatory": false
},
"status": {
"label": "Status",
"column_type": "dropdown",
"post_variable": "status",
"mandatory": false,
"options": [
{ "id": "Published", "name": "Published" }
],
"value": "Published"
},
"sales_person": {
"label": "Sales Person",
"column_type": "lookup",
"post_variable": "sales_person",
"mandatory": false,
"related_endpoint": "GET /users",
"value": 11
},
"items": {
"label": "Items",
"column_type": "array",
"post_variable": "items",
"mandatory": true,
"related_endpoint": "GET /items?type=invoice",
"fields": [
{
"label": "Item",
"column_type": "lookup",
"post_variable": "item_id",
"mandatory": true,
"related_endpoint": "GET /items?type=invoice"
},
{
"label": "Quantity",
"column_type": "number",
"post_variable": "item_quantity",
"mandatory": true
},
{
"label": "Rate",
"column_type": "number",
"post_variable": "item_rate",
"mandatory": true
},
{
"label": "Line Discount",
"column_type": "number",
"post_variable": "item_line_discount",
"mandatory": true
},
{
"label": "Tax Id",
"column_type": "lookup",
"post_variable": "items_tax_id",
"mandatory": true,
"related_endpoint": "GET /tax-options"
},
{
"label": "Tax Rate",
"column_type": "number",
"post_variable": "items_taxrate",
"mandatory": true
},
{
"label": "Tax Name",
"column_type": "text",
"post_variable": "items_taxname",
"mandatory": true
}
]
},
"record_id": {
"label": "Record Id",
"column_type": "number",
"post_variable": "record_id",
"mandatory": false
},
"adjustment": {
"label": "Adjustment",
"column_type": "number",
"post_variable": "adjustment",
"mandatory": false,
"value": 0
},
"currency_rate": {
"label": "Currency Rate",
"column_type": "number",
"post_variable": "currency_rate",
"mandatory": false,
"value": 1
},
"payment_terms": {
"label": "Payment Terms",
"column_type": "lookup",
"post_variable": "payment_terms",
"mandatory": false,
"related_endpoint": "GET /payment-terms"
},
"discount_method": {
"label": "Discount Method",
"column_type": "object",
"post_variable": "discount_method",
"mandatory": false,
"fields": [
{
"label": "Type",
"column_type": "dropdown",
"post_variable": "type",
"mandatory": true,
"options": [
{ "id": "Line Wise", "name": "Line Wise" },
{ "id": "Bill Wise", "name": "Bill Wise" }
]
},
{
"label": "Before Tax",
"column_type": "dropdown",
"post_variable": "before_tax",
"mandatory": true,
"options": [
{ "id": true, "name": "Yes" },
{ "id": false, "name": "No" }
]
}
]
},
"is_tax_inclusive": {
"label": "Tax Inclusive",
"column_type": "dropdown",
"post_variable": "is_tax_inclusive",
"mandatory": false,
"options": [
{ "id": 0, "name": "No" },
{ "id": 1, "name": "Yes" }
]
},
"title": {
"label": "Title",
"column_type": "text",
"post_variable": "title",
"mandatory": false
},
"bill_discount": {
"label": "Bill Discount",
"column_type": "number",
"post_variable": "bill_discount",
"mandatory": false,
"value": 0
},
"bill_discount_type": {
"label": "Bill Discount Type",
"column_type": "dropdown",
"post_variable": "bill_discount_type",
"mandatory": false,
"options": [
{ "id": "p", "name": "Percent" },
{ "id": "f", "name": "Fixed" }
],
"value": "f"
},
"serial_code_id": {
"label": "Serial Code",
"column_type": "lookup",
"post_variable": "serial_code_id",
"mandatory": false,
"related_endpoint": "GET /serial-code?type=invoice"
},
"additional_expenses": {
"label": "Additional Expenses",
"column_type": "array",
"post_variable": "additional_expenses",
"mandatory": false,
"fields": [
{
"label": "Category",
"column_type": "lookup",
"post_variable": "category_id",
"mandatory": true,
"related_endpoint": "GET /additional-expense-categories?module=invoice"
},
{
"label": "Amount",
"column_type": "number",
"post_variable": "amount",
"mandatory": true
}
]
},
"billing_street": {
"label": "Billing Street",
"column_type": "textarea",
"post_variable": "billing_street",
"mandatory": false
}
},
"upload_fields": [],
"custom_fields": {
"invoices_294": {
"label": "PO Number",
"column_type": "text",
"post_variable": "invoices_294",
"mandatory": false
},
"invoices_295": {
"label": "Priority",
"column_type": "dropdown",
"post_variable": "invoices_295",
"mandatory": false,
"options": [
{ "id": "Express", "name": "Express" },
{ "id": "Standard", "name": "Standard" }
],
"allow_new_option": false
},
"invoices_297": {
"label": "Linked customer",
"column_type": "lookup",
"post_variable": "invoices_297",
"mandatory": false,
"lookup_module": "customer",
"options_endpoint": "GET /custom-field-options?field=invoices_297"
}
}
}
}

fields also includes the other address overrides and the remaining line item keys (item_unit, item_discount_type, item_foc, warehouse_id, and the tax-group extras). Use those post_variable names on Create or update an invoice. Other module values use that resource's create body.

custom_fields is keyed by post_variable (invoices_{id} for invoices, creditnote_{id} for credit notes, salesorder_{id} for sales orders, quotes_{id} for quotes, purchasebill_{id} for purchase bills, debitnote_{id} for debit notes, purchases_{id} for purchase orders, items_{id} for items). Send an invoice key on POST /invoice, a credit note key on POST /credit-note, a sales order key on POST /sales-order, a quote key on POST /quote, a purchase bill key on POST /purchase-bill, a debit note key on POST /debit-note, a purchase order key on POST /purchase-order, and an item key on POST /item. read_only is true for autogenerate and formula fields; do not send them. Dropdown and multiselect entries include options. A date or time entry includes format. A 12H time or datetime value must include AM or PM (for example 02:30 PM). On create, an omitted date, time, or datetime key uses the field default (current stores now; empty stores null); sending "" stores null. Lookup and multiselect lookup entries include lookup_module and options_endpoint. Retail form details (retail_invoice=1) point options_endpoint at GET /custom-field-options?field=invoices_{id}&retail_invoice=1. Credit note form details point options_endpoint at GET /custom-field-options?field=creditnote_{id}. Sales order form details point options_endpoint at GET /custom-field-options?field=salesorder_{id}. Quote form details point options_endpoint at GET /custom-field-options?field=quotes_{id}. Purchase bill form details point options_endpoint at GET /custom-field-options?field=purchasebill_{id}. Debit note form details point options_endpoint at GET /custom-field-options?field=debitnote_{id}. Purchase order form details point options_endpoint at GET /custom-field-options?field=purchases_{id}. Item form details point options_endpoint at GET /custom-field-options?field=items_{id}.

Errors

  • module is required
  • Unsupported module. Supported modules: invoice, credit_note, sales_order, quote, purchase_bill, debit_note, purchase_order, payment, transfer, expense, deposit, journal, item, customer, supplier
  • type must be customer or supplier when module is payment and type is missing or invalid
  • Permission Denied

Custom field options​

List custom field options​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/custom-field-options&field=invoices_297
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/custom-field-options&field=invoices_297' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Returns the records a lookup or multiselect-lookup custom field accepts. field=invoices_{id} requires permission to create invoices. retail_invoice=1 requires permission to create retail invoices and reads a retail invoice field. field=creditnote_{id} requires permission to create credit notes and reads a credit note field. field=salesorder_{id} requires permission to create sales orders and reads a sales order field. field=quotes_{id} requires permission to create quotes and reads a quote field. field=purchasebill_{id} requires permission to create purchase bills and reads a purchase bill field. field=debitnote_{id} requires permission to create debit notes and reads a debit note field. field=purchases_{id} requires permission to create purchase orders and reads a purchase order field. field=items_{id} requires permission to create inventory items and reads an item field. Rows follow that lookup's access, including a role limited to the user's own records or to linked records, and a register lookup filter when the field has one. Soft-deleted items and leads are omitted.

Use Pagination. page_size defaults to 50 and cannot exceed 250. search_query matches the display name. Sort is id descending. Each record is { "id", "name" }.

Query

ParameterRequiredTypeDescription
fieldYesstringCustom field key from form details, such as invoices_297, creditnote_297, salesorder_297, quotes_297, purchasebill_297, debitnote_297, purchases_297, or items_297
retail_invoiceNo0 or 11 reads a retail invoice field. Omit or 0 reads a normal invoice field
page_tokenNostringNext page cursor
page_sizeNointegerDefault 50, maximum 250
search_queryNostringContains match on the display name

Example response

{
"success": true,
"message": "Custom field options fetched successfully",
"result": {
"records": [
{ "id": 101, "name": "CUS-001 - Northwind" }
],
"page_info": {
"next_page_token": null,
"has_next_page": false,
"has_prev_page": false,
"page_size": 50
}
}
}

Errors

  • field is required
  • Unknown custom field invoices_297
  • invoices_297 does not accept lookup options
  • Unknown custom field creditnote_297
  • creditnote_297 does not accept lookup options
  • Unknown custom field salesorder_297
  • salesorder_297 does not accept lookup options
  • Unknown custom field quotes_297
  • quotes_297 does not accept lookup options
  • Unknown custom field purchasebill_297
  • purchasebill_297 does not accept lookup options
  • Unknown custom field debitnote_297
  • debitnote_297 does not accept lookup options
  • Unknown custom field purchases_297
  • purchases_297 does not accept lookup options
  • Unknown custom field items_297
  • items_297 does not accept lookup options
  • invoices_297 lookup is not configured
  • creditnote_297 lookup is not configured
  • salesorder_297 lookup is not configured
  • quotes_297 lookup is not configured
  • purchasebill_297 lookup is not configured
  • debitnote_297 lookup is not configured
  • purchases_297 lookup is not configured
  • items_297 lookup is not configured
  • Lookup module is not supported
  • page_size exceeds maximum (250)
  • Query context changed. Restart from page 1.
  • page_token signature invalid (tampered)
  • Permission Denied

Additional expense categories​

List additional expense categories​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/additional-expense-categories&module=invoice
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/additional-expense-categories&module=invoice' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Leaf income or expense categories for additional expenses on a bill. id is the value for additional_expenses[].category_id. Only categories that are not parents are returned, ordered by name.

Query

ParameterRequiredTypeDescription
moduleYesstringinvoice, sales_order, quote, purchase_bill, purchase_order, or credit_note
qNostringCase-insensitive name filter. Omit or leave empty to return the full leaf list
moduleCategories returned
invoice, sales_order, quoteDirect Income and Indirect Income
purchase_bill, purchase_order, credit_noteDirect Expense and Indirect Expense

An invalid module returns module must be invoice, purchase_bill, purchase_order, sales_order, quote, or credit_note.

Example response

{
"success": true,
"message": "Categories fetched successfully",
"result": [
{
"id": 123,
"name": "Freight Charges Income"
}
]
}

Chart of accounts​

List chart of accounts​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/chart-of-accounts
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/chart-of-accounts' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Branch ledger accounts, including parent accounts, ordered by type then name. id is the account id for a journal line.

The same call lists the accounts for a manual journal line when leaf=1 and the four control accounts are excluded. Customers and suppliers on a journal line come from List customers and List suppliers. Send a numeric id for a ledger account, or customer_{id} / supplier_{id} for a contact.

Query

ParameterRequiredTypeDescription
qNostringCase-insensitive name filter. Omit or leave empty to return the full list
typeNostringComma-separated account types. Omit to return every type
leafNostring1 returns only accounts that are not parents. Omit or 0 includes parents
excludeNostringComma-separated account names to drop. A name that is not on the branch drops nothing

type values: Sales, Purchase, Direct Income, Direct Expense, Indirect Income, Indirect Expense, Fixed Asset, Current Asset, Loans (Liability), Current Liabilities, Capital Account, Suspense Account.

Journal line accounts:

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/chart-of-accounts&leaf=1&exclude=Sundry Debtors,Sundry Creditors,Advance Paid,Advance Received

An invalid type returns type must be a chart of account type. An invalid leaf returns leaf must be 0 or 1.

Example response

{
"success": true,
"message": "Chart of accounts fetched successfully",
"result": [
{
"id": 45,
"name": "Sales",
"type": "Sales",
"is_parent": false
}
]
}

Projects​

List projects​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/projects
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/projects' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Active projects for the current SelectedBranchId branch. Inactive projects are excluded. id is the value to send as project_id on a bill or expense.

Query

ParameterRequiredTypeDescription
customer_idNonumberWhen valid, that customer’s projects plus unassigned projects (project_customer_id empty). Omit to return all active projects on the branch
qNostringCase-insensitive name or code filter. Omit or leave empty to return the full matching list

An invalid customer_id returns customer_id is invalid.

Example response

{
"success": true,
"message": "Projects fetched successfully",
"result": [
{
"id": 15,
"name": "Warehouse Fit-out",
"code": "PRJ-015",
"parent_code": "PRJ-001"
}
]
}

parent_code is the parent project’s code, or null when there is no parent.


Service requests​

List service requests​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/service-requests
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/service-requests' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Service requests for the current SelectedBranchId branch. When the service request module is off, result is an empty array. id is the value to send as service_request on a bill or expense.

Query

ParameterRequiredTypeDescription
qNostringCase-insensitive code or name filter. Omit or leave empty to return the full list

Example response

{
"success": true,
"message": "Service requests fetched successfully",
"result": [
{
"id": 8,
"code": "SR-008",
"name": "On-site installation"
}
]
}

Cost centers​

List cost centers​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/cost-centers
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/cost-centers' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Cost centers assigned to the current SelectedBranchId branch. If the caller has a non-empty allowed-cost-center list, only those IDs are returned. id is cost_center_master_id, the value to send as cost_center on a bill or payment.

Query

ParameterRequiredTypeDescription
qNostringCase-insensitive name filter. Omit or leave empty to return the full allowed list

Example response

{
"success": true,
"message": "Cost centers fetched successfully",
"result": [
{
"id": 3,
"name": "Head Office"
}
]
}

Terms​

List terms​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/terms
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/terms' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Document terms (T&C) for the current SelectedBranchId branch and the given module. If the caller is listed on any term’s assignees, only those rows are returned; otherwise every term for that module is returned. id is terms_id, the value to send as term_id on a bill.

Query

ParameterRequiredTypeDescription
moduleYesstringModule the terms belong to. See allowed values below
qNostringCase-insensitive name filter. Omit or leave empty to return the full matching list

Allowed module values: invoice, pos_invoice, quote, sales_order, delivery_challan, pro_forma_invoice, lead_quote, purchase_order, purchase_bill, packing_slip, customer_payment, supplier_payment, expense, deposit, journal, credit_note, debit_note.

A missing or unknown module returns module is invalid.

Example response

{
"success": true,
"message": "Terms fetched successfully",
"result": [
{
"id": 4,
"name": "Default",
"terms": "Payment due within 15 days.",
"readonly": false,
"is_default": true
}
]
}

Payment terms​

List payment terms​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment-terms
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/payment-terms' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Payment terms for the current SelectedBranchId branch. There is no customer or user allow-list filter. id is payment_terms_id, the value to send as payment_terms on a bill. days is the due-date offset.

Query

ParameterRequiredTypeDescription
qNostringCase-insensitive name filter. Omit or leave empty to return the full list

Example response

{
"success": true,
"message": "Payment terms fetched successfully",
"result": [
{
"id": 1,
"name": "Net 15",
"days": 15,
"is_default": true
}
]
}

Tax options​

List tax options​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/tax-options
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/tax-options' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. No query parameters. Returns the tax dropdowns for the current SelectedBranchId branch, including which source-of-supply list each tax type uses.

taxes are the branch tax rates. id is the value to send as tax_id. taxes is empty when the branch tax system is No tax.

tax_types are fixed registration statuses, not records. Send the chosen string as tax_reg_type. For India the list is GST Registered - Regular, GST Registered - Composition, GST Unregistered, Consumer, Overseas, SEZ, and Deemed Exports. For a GCC country the list is Vat Registered, Non Vat Registered, GCC Vat Registered, GCC Non VAT Registered, and Non GCC. The United Arab Emirates also includes Vat Registered - Designated Zones and Non Vat Registered - Designated Zones. tax_types is empty outside India and GCC.

places_of_supply groups the source-of-supply dropdowns. Each group has tax_types (the statuses that show that dropdown), field (the body key to send), and options. A tax type that is missing from every group has no source-of-supply dropdown.

  • India: one group for all seven GST types. field is place_of_supply. Each option is { "name", "tin" }. Send name.
  • United Arab Emirates: Vat Registered, Non Vat Registered, and both designated-zone types use field emirate and the seven emirates. GCC Vat Registered and GCC Non VAT Registered use field gcc and the other GCC countries.
  • Other GCC countries: only GCC Vat Registered and GCC Non VAT Registered use field gcc. Vat Registered and Non Vat Registered are omitted; the save sets the branch country.
  • Non GCC is omitted. Outside India and GCC, places_of_supply is [].

The GCC list never includes the branch country. The example below is a Saudi Arabia branch.

Example response

{
"success": true,
"message": "Tax options fetched successfully",
"result": {
"taxes": [
{
"id": 1,
"name": "VAT 5%",
"rate": 5
}
],
"tax_types": [
"Vat Registered",
"Non Vat Registered",
"GCC Vat Registered",
"GCC Non VAT Registered",
"Non GCC"
],
"places_of_supply": [
{
"tax_types": [
"GCC Vat Registered",
"GCC Non VAT Registered"
],
"field": "gcc",
"options": [
"Kuwait",
"United Arab Emirates",
"Qatar",
"Bahrain",
"Oman"
]
}
]
}
}

Currencies​

List currencies​

GET https://yoursite.ealsuite.com/?app=ealsuite_api/v1/currencies
curl -X GET 'https://yoursite.ealsuite.com/?app=ealsuite_api/v1/currencies' \
-H 'Authorization: Bearer <personal_access_token>' \
-H 'SelectedBranchId: <numeric_branch_id>'

Any authenticated caller. Returns currencies assigned to the current SelectedBranchId branch. Omit include_inactive to receive only active currencies, the same list as the journal currency dropdown. Set include_inactive to 1 to include archived currencies as well. id is currencies_master_id, the value to send as currency. is_home is true for the branch home currency; that row is the default selection, and the currency rate is 1 for it. is_active is false when the currency is archived.

Query

ParameterRequiredTypeDescription
include_inactiveNobooleanSet to 1 to include archived currencies. Omit to return active currencies only

Example response

{
"success": true,
"message": "Currencies fetched successfully",
"result": [
{
"id": 1,
"name": "UAE Dirham",
"iso_code": "AED",
"symbol": "AED",
"decimal_places": 2,
"digit_group": 2,
"is_home": true,
"is_active": true
}
]
}