POST
/
v0
/
ledgers
/
{ap_ledger_id}
/
payables

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

modified-by
string | null

An optional identifier for audit logging.

Path Parameters

ap_ledger_id
string
required

The AP ledger ID

Body

application/json
id
string
required

The ID of the payable. Must be unique per ledger.

Minimum length: 1
datetime
string
required

The datetime that the payable was created

due_datetime
string
required

The datetime that the payable is due

lines
object[]
required

The line items of the payable

metadata
object | null

Any metadata that you would like to associate with the payable.

Response

201 - application/json
id
string
required
ledger_id
string
required
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.