GET
/
v0
/
ledgers
/
{ap_ledger_id}
/
payables
/
{payable_id}
curl --request GET \
  --url https://api.sandbox.teal.dev/v0/ledgers/{ap_ledger_id}/payables/{payable_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'teal-instance-id: <teal-instance-id>'
{
  "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
    }
  ],
  "files": [
    {
      "id": "CNmWM3X6AcvRdEwZKxq4bL",
      "file_name": "bill.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

payable_id
string
required

The Payable ID

ap_ledger_id
string
required

The AP ledger ID

Response

200
application/json
Successful Response
id
string
required
Example:

"INV-001"

ledger_id
string
required
Example:

"CNmWM3X6AcvRdEwZKxq4bL"

datetime
string
required

The datetime that the invoice was created

due_datetime
string
required

The datetime that the invoice is due

lines
object[] | null
required

Expandable. The line items of the payable.

metadata
object | null

Metadata associated with the payable.

files
object[] | null

The files associated with the payable.