contactId. Payments support optional scheduling, partial amounts, and accelerated clearing speeds.
Base URL
Authentication
All requests must include a Bearer token in theAuthorization header.
Request Body
The ID of an existing payable to pay. Use this when paying against a specific invoice or bill. Mutually exclusive with
contactId — provide exactly one.The ID of a contact to pay directly, without a pre-existing payable. A payable is automatically generated. Mutually exclusive with
payableId — provide exactly one.Payment amount in US cents. Must be at least
1.- When using
contactId: required. - When using
payableId: optional. Defaults to the remaining unpaid balance on the payable. You may specify a partial amount to make a partial payment.
The ID of the payer bank account to debit. Retrieve available bank account IDs from
GET /v1/bank-accounts.A memo or note to attach to the auto-generated payable. Applies only when using
contactId mode. Ignored when payableId is provided.A custom reference number for the auto-generated payable, up to 21 characters. Applies only when using
contactId mode. Ignored when payableId is provided.The ID of a category to assign to the auto-generated line item. Applies only when using
contactId mode. Ignored when payableId is provided.Requested ACH clearing speed. Accepted values:
STANDARD, NEXT_AVAILABLE.The
NEXT_AVAILABLE clearing speed requires that accelerated clearing be enabled on your account. Contact your Cleo Pay account manager to enable this feature.A future date on which to execute the payment, formatted as
YYYY-MM-DD. The payment will be initiated at 9:00 AM New York time on that date.Constraints:- Must be at least tomorrow’s date (no same-day scheduling).
- Not supported for payments that are in
heldstatus.
The
description, customNumber, and categoryId fields are only meaningful when initiating a payment with contactId. They configure the payable that Cleo Pay automatically creates on your behalf. These fields have no effect when payableId is supplied.Response
Returns aCreatePaymentResponse object with HTTP status 201 Created.
The ID of the payable associated with this payment. When using
contactId mode, this is the ID of the automatically generated payable.Array of one or more
Payment objects created for this request. The amountCents values across all objects sum to the total requested amount.Large payment amounts may be automatically split into multiple
Payment objects by Cleo Pay. Always treat the payments array as potentially containing more than one entry.Example Requests
Example Response
201
For very large payment amounts, Cleo Pay may split the transaction into multiple
Payment objects. The amountCents values across all entries in the payments array will always sum to the total amount you requested.