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
At least 1. Required with
contactId. With payableId, optional: it defaults to what is still owed, and a smaller amount makes a partial payment.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.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.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.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".Dwolla only.
STANDARD or NEXT_AVAILABLE. The business’s default applies when omitted. Choosing a speed needs clearing selection turned on for the business.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.400 validation_error instead of being dropped. Unknown fields answer 400 validation_error too.
Examples
Response
201:
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_unconfirmedmeans the payment may still go through. Every retry with that key answers409 payment_unconfirmed. Look for the payment withGET /v1/paymentsbefore you send it again under a new key.