GET
/
v0
/
ledgers
/
{ap_ledger_id}
/
payables
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/ledgers/{ap_ledger_id}/payables \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "next_page_token": "ikal0NEVfMhF8dJf4yQ6KQZmGD",
  "prev_page_token": "vuA7JeKI5c6FLnPt5JfRcZcJxW",
  "records": [
    {
      "id": "INV-001",
      "ledger_id": "CNmWM3X6AcvRdEwZKxq4bL",
      "datetime": "2023-11-07T05:31:56Z",
      "due_datetime": "2023-11-07T05:31:56Z",
      "metadata": {}
    }
  ]
}

Authorizations

Authorization
string
headerrequired

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

teal-instance-id
string
required

The Teal instance ID

Path Parameters

ap_ledger_id
string
required

The AP ledger ID

Query Parameters

limit
integer | null

The number of records to return. Max limit is 1000.

page_token
string

Response

200 - application/json
next_page_token
string | null
required

The token to use to request the next page

prev_page_token
string | null
required

The token to use to request the previous page

records
object[]
required

A list of payables