finance > G/L Account Service

Get G/L Accounts

Changed on

Get a list of G/L accounts with pagination. Supports filtering and replication.

get/{tenant}/{environment}/{company}/generalledger/account

Request

  • Base URL
    https://api.npretail.app
  • Auth
    API key in header x-np-api-key

Path parameters

tenantstring required

Your Entra Tenant ID. More details.

environmentstring required

Your Business Central Environment. More details.

companystring required

Your Business Central Company. More details.

Query parameters

numberstring

Filter by G/L Account number. Supports Business Central filter syntax.

categorystring

Filter by G/L Account category.

pageSizeinteger

The maximum number of accounts to return per page.

pageKeystring

The key for the next page of results, obtained from a previous response.

lastRowVersionstring

The last row version received, used for synchronization.

syncboolean

Enables synchronization mode, which sorts by rowVersion.

Headers

x-api-versionstring date

Used for API versioning. More details.

Response

Response with status 200

morePagesboolean required
nextPageKeystring required
nextPageURLstring required

Changes

    • breaking

      the response's body type changed from no type to object for status

    • warning

      deleted the header request parameter x-np-api-key

    • info

      the endpoint scheme security NPApiKeyAuthScheme was added to the API

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      api operation id get-accounts removed and replaced with finance_glaccount_getAccounts