GET
/
v0
/
ledgers
/
{ar_ledger_id}
/
receivables
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/ledgers/{ar_ledger_id}/receivables \
  --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": {},
      "lines": [
        {
          "id": "CNmWM3X6AcvRdEwZKxq4bL",
          "ledger_id": "CNmWM3X6AcvRdEwZKxq4bL",
          "tags": [
            {
              "id": "UjL3BQnEaJtecuC7CUeDk",
              "name": "Sprinter - 1ab-c23",
              "tag_group_id": "NCB2xo5S1yQbNgyWskXpwG"
            }
          ],
          "description": "Veterinarian Consultation",
          "amount": 10237.23,
          "adjusted_amount": 328.13,
          "adjustments": [
            {
              "id": "8Qr7YJtqo2YYux7yUduRa4",
              "receivable_line_id": "8Qr7YJtqo2YYux7yUduRa4",
              "description": "Partial Refund",
              "datetime": "2023-11-07T05:31:56Z",
              "amount": 137.54,
              "metadata": {},
              "files": [
                {
                  "id": "CNmWM3X6AcvRdEwZKxq4bL",
                  "file_name": "credit.pdf"
                }
              ]
            }
          ]
        }
      ],
      "files": [
        {
          "id": "CNmWM3X6AcvRdEwZKxq4bL",
          "file_name": "invoice.pdf"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

ar_ledger_id
string
required

The AR ledger ID

Query Parameters

expand
enum<string>[] | null

Comma-separated list of expandable paths.

Available options:
lines
limit
integer | null
default:50

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

Required range: 1 <= x < 101
page_token
string | null

Response

200
application/json
Successful Response
next_page_token
string | null
required

The token to use to request the next page

Example:

"ikal0NEVfMhF8dJf4yQ6KQZmGD"

prev_page_token
string | null
required

The token to use to request the previous page

Example:

"vuA7JeKI5c6FLnPt5JfRcZcJxW"

records
object[]
required

A list of receivables