PUT
/
v0
/
ledgers
/
{ar_ledger_id}
/
receivables
/
{receivable_id}
curl --request PUT \
  --url https://api.sandbox.teal.dev/v0/ledgers/{ar_ledger_id}/receivables/{receivable_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --data '{
  "datetime": "2023-11-07T05:31:56Z",
  "due_datetime": "2023-11-07T05:31:56Z",
  "metadata": {}
}'
{
  "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

ar_ledger_id
string
required

The AR ledger ID

receivable_id
string
required

The Receivable ID

Body

application/json
datetime
string | null

The datetime that the receivable was created.

due_datetime
string | null

The datetime that the receivable is due.

metadata
object | null

Metadata associated with the receivable.

Response

200 - 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.

metadata
object | null

Metadata associated with the receivable.