How to collect

You open a pay-in, show your customer the instructions, they pay, and the money lands in your balance.

To collect, you create a funding account. Caibo opens it with the local bank and returns the instructions you show your customer: a PIX code, an account to transfer to. When the bank confirms the payment, we credit it to your balance and notify you.

POST /v1/funding-accounts 201 pending webhook funding_account.active with instructions Shows the instructions Pays webhook payin.completed GET /v1/balances Your system Caibo Pay Your customer

Two ways to collect

For each method and currency, Capabilities tells you which one applies (collection):

collectionHow you request itWhat it's for
paymentWith amountA one-time payment for an exact amount: an order, an invoice. It closes once it's paid.
accountWithout amountAn account that accepts any deposit, of any amount, while it stays open.

If you request the wrong one, the API tells you: 422 amount_required (that pay-in needs an amount) or 422 one_payment_unavailable (that pay-in doesn't accept an amount).

The payer pays the order, and nothing else

In a one-time payment, what your customer sees is exactly your order amount: a 1,000.00 PEN order is paid with 1,000.00 PEN. If the bank charges a fee to receive, Caibo covers it; your customer never sees it or pays it.

Some methods carry a Caibo fee per payment (PayPal and Zelle). Your customer still pays exactly the order amount; the fee comes off what you're credited, and capabilities shows it in fee_bps and fee_fixed. See Collect with PayPal and Zelle.

Funding account statuses

statusWhat it means
pendingWe're opening it with the bank.
activeReady: instructions contains what the payer needs.
failedIt couldn't be opened; failure_code tells you why. No instructions are shown.
closedIt no longer accepts deposits. A one-time payment closes when its pay-in completes.
EventWhen
funding_account.activeThe account is ready, with its instructions.
funding_account.failedIt couldn't be opened.
payin.completedA payment came in and was credited to your balance.
payin.failedA payment didn't go through (for example, it expired unpaid).

Where the money ends up

Each pay-in is credited to your balance in its settlement_currency: the settlement currency that capabilities indicates (settlement_asset) or the one you choose from settlement_currencies. There's no intermediate stage: the money is recorded only once the bank confirms, and at that point it's already available.

Sur cette page