contactId, and payments sent with contactId go to that contact. The same contact id appears as contact.id on payables and as customer.id on invoices.
Contact types
Status
GET /v1/contacts returns active and archived contacts by default. Pass status=revoked to list revoked ones.
Payment direction
Paying a contact, or billing one with
contactId, needs bidirectional or can_pay. Invoicing a contact needs bidirectional or can_be_paid. Otherwise the call answers 409 contact_not_payable (for bills and payments) or 400 validation_error (for invoices).
Can this vendor be paid?
A vendor’s bank is not equally reachable on both rails.paymentReadiness answers per rail:
A bank linked through Plaid stores masked numbers only, so Cleo Pay cannot pay into it. That vendor reads
{ "dwolla": true, "cleoPay": false }. A bank entered as full routing and account numbers can be paid on both rails. An archived or revoked contact is ready on neither.
When a vendor has no bank on file yet, or has not accepted their invitation, a payment to them is held until they do. A held payment can only be funded from a bank. Paying such a vendor from the Cleo Pay balance is refused: validation_error when you pay a bill, contact_not_payable when you pay the contact directly. See Payments.
Bank and tax details
Reads show masks only.bankAccount.accountNumber, bankAccount.routingNumber and taxInfo.taxId are write-only. You can send them on create. No endpoint returns them, under any scope.
Other fields
Duplicate guard
POST /v1/contacts compares the new contact’s emails and display name with the business’s existing contacts. A match answers 409 duplicate_contact, naming the possible duplicates. Send "allowDuplicates": true to create the contact anyway.
Example
Events
Contacts sendcontact.created, contact.updated, contact.archived and contact.unarchived. See Webhooks.