POST
/
v0
/
payable-files
curl --request POST \
  --url https://api.sandbox.teal.dev/v0/payable-files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'teal-instance-id: <teal-instance-id>' \
  --form 'ap_ledger_id=<string>' \
  --form 'payable_id=<string>'
{
  "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

Body

multipart/form-data
ap_ledger_id
string
required

The AP ledger ID

payable_id
string
required

The Payable ID

file
file
required

A file to be associated with the payable.

Response

201
application/json
Successful Response
id
string
required
Example:

"CNmWM3X6AcvRdEwZKxq4bL"

file_name
string | null
required

The file name

Example:

"bill.pdf"