Index | Conventions

api/v1/accounting/gl

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:

AttributeTypeDescription
accCodestringThe GL account code.
accNamestringThe GL account name.
accNaturestringWhether the account is a debit or credit nature account.
accTypestringThe account type.
activebooleanWhether the account is active.
classificationstringThe account classification.
controlbooleanWhether the account is a subledger control account.
currencyCodestringThe currency code.
expensebooleanWhether the account is an expense PO account.
taxCodestringThe tax code.

Example GET (Return specific)

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.

{
    "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"
        }
    }
}