Path: api/v1/accounting/gl
This API is JSON:API compliant.
This endpoint supports the following methods:
GET
This endpoint requires an OAuth bearer token, and returns errors in a standard shape. See API Conventions for authentication, error responses and paging, which apply to every endpoint.
The resource type for this endpoint is GLAccount
The identifier is accno
Attributes
The GLAccount resource type attributes are as follows:
| Attribute | Type | Description |
|---|---|---|
| accCode | string | The GL account code. |
| accName | string | The GL account name. |
| accNature | string | Whether the account is a debit or credit nature account. |
| accType | string | The account type. |
| active | boolean | Whether the account is active. |
| classification | string | The account classification. |
| control | boolean | Whether the account is a subledger control account. |
| currencyCode | string | The currency code. |
| expense | boolean | Whether the account is an expense PO account. |
| taxCode | string | The tax code. |
Path: api/v1/accounting/gl/113 Response: This example shows the maximum set of fields the endpoint can return, all populated. A real response only contains the data that applies to that record, so fields that are empty or not relevant are omitted — do not assume every field shown here will be present in every response.
Example GET (Return specific)
{
"data": {
"id": "113",
"type": "GLAccount",
"attributes": {
"accCode": "1-1313",
"accName": "SOH - Sales #13",
"accType": "Detail",
"classification": "Asset",
"accNature": "Debit",
"active": true,
"expense": false,
"control": true,
"taxCode": "GST",
"currencyCode": "AUD"
},
"links": {
"self": "/api/v1/accounting/gl/113"
}
}
}