draft status and must proceed through your configured approval workflow before payment can be initiated.
Request
POST https://api.cleo-pay.com/v1/payables
Include your bearer token and set the content type on every request:
Request Body Parameters
object
required
The counterparty for this payable. Cleo Pay will match against existing contacts by email, or create a new contact record if no match is found.
number
required
Total invoice amount expressed in cents. Must be
1 or greater (e.g. pass 10000 for $100.00). If you also supply items, ensure this value equals the sum of all items[].totalCents to avoid reconciliation discrepancies.string
Payment due date in
YYYY-MM-DD format (e.g. "2024-08-15"). Optional. When omitted, the payable is created without a due date.string
Invoice issue date in
YYYY-MM-DD format (e.g. "2024-07-15"). Optional. Defaults to the creation date when omitted.string
Your own invoice or purchase-order reference number (e.g.
"INV-1042"). Optional. This value is stored as-is and surfaced in the dashboard alongside the system-generated publicId.string
Free-text memo or description for this payable (e.g.
"Q3 software licensing fees"). Optional.array
Structured line items that make up the invoice. Optional. Each element represents one line on the invoice.
Example Request
Response
A successful request returns HTTP201 Created with the full PayableDetail object, including all line items as stored.
string
Internal opaque identifier for the new payable. Use this when calling other endpoints that reference a specific payable.
string
Stable public identifier shown in the Cleo Pay dashboard.
string
Initial lifecycle status of the payable. Newly created payables always start as
draft.string
Initial payment status. Always
none for newly created payables.number
Total invoice amount in cents, as provided in the request.
number
Amount paid so far, in cents. Always
0 for newly created payables.number
Outstanding balance in cents. Equal to
totalAmountCents for newly created payables.string | null
Payment due date in
YYYY-MM-DD format, or null if not provided.string | null
Invoice issue date in
YYYY-MM-DD format, or null if not provided.string | null
Your custom reference number as stored, or
null if not provided.string | null
Memo or description as stored, or
null if not provided.object
Resolved contact record associated with this payable.
array
Line items attached to this payable, as stored.