Skip to main content
Scope: payments:initiate  ·  Idempotency-Key: required Pays a bill (payableId) or a contact (contactId). Send exactly one. Copy the rail and source fields from GET /v1/funding-sources. The rules are in Funding sources.

Body

string
An approved bill to pay.
string
A contact to pay directly. Cleo creates the bill for you.
integer
At least 1. Required with contactId. With payableId, optional: it defaults to what is still owed, and a smaller amount makes a partial payment.
string
DWOLLA or CLEO_PAY. Optional: fundingSource alone means Cleo Pay, and a Dwolla bankAccountId alone means Dwolla. With none of the three, the business’s default rail applies.
string
Cleo Pay only. BALANCE pays from the Cleo Pay balance. BANK pulls from the linked bank first. Defaults to BALANCE on Cleo Pay. Not allowed with DWOLLA.BANK is not available through the API yet and answers 403 feature_unavailable.
boolean
Required as true with fundingSource: "BANK", once bank funding is available: your user accepted the ACH debit authorization for the linked bank. Not allowed with any other source.
string
A Dwolla bank to pay from, from GET /v1/funding-sources or GET /v1/bank-accounts. Required on Dwolla. Not allowed with fundingSource or paymentRail: "CLEO_PAY".
string
Dwolla only. STANDARD or NEXT_AVAILABLE. The business’s default applies when omitted. Choosing a speed needs clearing selection turned on for the business.
string
Dwolla only. A future date, YYYY-MM-DD, that runs at 9:00 AM New York time. At least tomorrow and within the business’s scheduling window. Not for a payment that would be held.
string
With contactId only. Memo on the bill Cleo creates.
string
With contactId only. Reference number, up to 21 characters.
string
With contactId only. Category for the bill’s line item.
A field the chosen rail would ignore answers 400 validation_error instead of being dropped. Unknown fields answer 400 validation_error too.

Examples

Response

201:
string
The bill this payment settles. With contactId, the bill Cleo created.
Payment[]
One or more payments. Cleo can split a large amount into several transfers; their amountCents add up to the total. Each payment carries status, paymentRail, fundingSource, heldReason, expectedArrivalDate, returnReason and dashboardUrl.

Retries

  • Resend with the same key and body after a timeout. You get the first answer.
  • A key reused with a different body answers 409 idempotency_conflict.
  • payment_unconfirmed means the payment may still go through. Every retry with that key answers 409 payment_unconfirmed. Look for the payment with GET /v1/payments before you send it again under a new key.
See Idempotency.

Errors