Skip to main content

Get Invoice Account Code List API

Introduction​

Returns sales category / ledger sub-account rows used when assigning account codes on invoices: InvoiceService.getAllSalesCategories(tenantId) as a Gson JSON array of LedgerSubAccount.

Source: InvoiceHomePageAPI.getInvoiceAccountCodeList (@Path("invoicehome")).

See also: Invoice Home — all endpoints.


HTTP Endpoint​

PropertyValue
URL/rest/invoicehome/getInvoiceAccountCodeList/{userName}/{authKey}
MethodGET
Producestext/plain (entity is a JSON array string)

Path Parameters​

ParameterTypeRequiredDescription
userNameStringYesAuth username.
authKeyStringYesAuth key.

Authentication​

ConditionHTTP status
Invalid credentials401 Unauthorized (Access-Control-Allow-Origin: *)
Success200 OK

Success Response​

Code: 200 OK

Body: Top-level JSON array, for example:

[
{
"id": 1,
"accountCode": "...",
"description": "...",
"...": "LedgerSubAccount fields per Gson"
}
]

Headers: Access-Control-Allow-Origin: *


Example Request​

GET /rest/invoicehome/getInvoiceAccountCodeList/alice/secretKey HTTP/1.1
Host: {base}