Skip to main content
GET
/
accounts
Get company accounts
curl --request GET \
  --url https://openapi.pleo.io/v1/accounts \
  --header 'Authorization: Bearer <token>'
{
  "metadata": {
    "pageInfo": {
      "pageSize": 123,
      "totalCount": 123,
      "nextPageOffset": 123
    }
  },
  "accounts": [
    {
      "id": "<string>",
      "name": "<string>",
      "accountCategoryId": "<string>",
      "hidden": true,
      "accountNumber": "<string>",
      "taxCodeId": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Open API Bearer token

Query Parameters

pageOffset
number

This is the pagination offset value. The record number you would like to start from. This offset value starts at 0.

Example:

"150"

pageSize
number

The number of accounts to return for each page.

Example:

"10"

Response

Accounts has been returned

metadata
object
required

Additional metadata including pagination information

accounts
object[]