How to pay out

From your account balance to a bank account, PIX, or mobile payment, with the price locked before you pay.

A payout leaves your balance and reaches a beneficiary: the account of the person or business you're paying. The full flow:

capabilities customersender beneficiary quote payout webhookpayout.completed

Check what the country requires

curl "$CAIBO_API/v1/capabilities?product=payout&currency=PEN" \
  -H "Authorization: Bearer $CAIBO_API_KEY"

beneficiary_fields tells you which account details you need; customer_fields, which sender details. See What you can do.

Register the sender, if the country requires it

Some countries require knowing who is sending. The sender is one of your customers:

curl "$CAIBO_API/v1/customers" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: cliente-crm-8812" \
  -H "Content-Type: application/json" \
  -d '{
    "external_id": "crm-8812",
    "type": "individual",
    "country": "PE",
    "display_name": "Carlos Mendoza",
    "profile": {
      "first_name": "Carlos",
      "last_name": "Mendoza Rojas",
      "date_of_birth": "1988-04-12",
      "identity_document_type": "DNI",
      "identity_document": "41234567",
      "identity_document_country": "PE",
      "address": { "city": "Lima", "country": "PE" }
    }
  }'

Register the beneficiary

curl "$CAIBO_API/v1/beneficiaries" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "bank_transfer",
    "currency": "PEN",
    "customer_id": "cus_01m3sgb02af7nb0jf73vwv2sd4",
    "holder": "Rosa Elena Quispe Mamani",
    "details": {
      "cci": "00219100123456780123",
      "document_number": "45678912",
      "first_name": "Rosa Elena",
      "last_name": "Quispe Mamani"
    }
  }'

You register it once and pay it as many times as you want. details is never returned. See Beneficiaries.

Lock the price

curl "$CAIBO_API/v1/quotes" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: cotizacion-orden-5531" \
  -H "Content-Type: application/json" \
  -d '{ "source_currency": "USDT", "destination_currency": "PEN", "method": "bank_transfer", "amount": "350.00", "amount_side": "destination" }'
{
  "id": "quo_01m3sgaz0000000000000000",
  "status": "open",
  "method": "bank_transfer",
  "source": { "currency": "USDT", "principal": "100.000000", "platform_fee": "0.500000", "tenant_markup": "0.000000", "total": "100.500000" },
  "destination": { "amount": "350.00", "currency": "PEN" },
  "rate": "3.500000000000000000",
  "created_at": "2026-10-18T14:00:10Z",
  "expires_at": "2026-10-18T14:01:40Z"
}

amount_side: destination fixes what the beneficiary receives; source, what leaves your balance. The quote is valid until expires_at. See Quotes.

Pay

curl "$CAIBO_API/v1/payouts" \
  -H "Authorization: Bearer $CAIBO_API_KEY" \
  -H "Idempotency-Key: pago-orden-5531" \
  -H "Content-Type: application/json" \
  -d '{ "beneficiary_id": "ben_01m3sgazybenxvqfw0h5bnszk4", "quote_id": "quo_01m3sgaz0000000000000000", "description": "Order 5531" }'

It responds 201 with status: processing: the funds (source.total) are reserved and the payout is on its way.

Get the result

You receive payout.completed when the beneficiary has received the money, or payout.failed with a failure_code if it couldn't be paid; in that case the funds return to your available balance. See Payouts.

Without a quote

You can also pay without quoting first: send source_currency, amount, and amount_side instead of quote_id, and the payout is quoted when it's created.

Sur cette page