Decaf
Contenido

Referencia de la API/Links de cobro: paga a un teléfono o email

Links de cobro: paga a un teléfono o email

Envía a alguien sin cuenta bancaria, sin billetera y sin cuenta Decaf. Los fondos se retienen hasta que el destinatario abre el link, verifica su número y elige cómo recibir entre los métodos que funcionan en su país. El pago pasa de awaiting_claim a claimed a succeeded; los links no reclamados vuelven a tu saldo. La verificación de recepción te dice antes de enviar si una persona en ese país puede ser pagada.

Create a payout

POST/payouts

One transfer to one recipient on one channel. Pass a saved recipient_id or an inline recipient. Either source_amount or destination_amount. quote_id is optional; without it the payout is priced at execution.

Parámetros

  • Idempotency-Keyheaderstringopcional
CampoTipoobligatorioNotas
recipient_idstringopcional
recipientInlineRecipientopcional
channelstringobligatorio
quote_idstringopcional
source_amountAmountopcionalDecimal string. Up to two decimals for fiat, six for USDC.
destination_amountAmountopcionalDecimal string. Up to two decimals for fiat, six for USDC.
referencestringopcional
memostringopcionalTravels with the payment where the rail supports it.
messagestringopcionalClaim links only. Shown to the recipient.

Solicitud

{
  "recipient_id": "rcp_9d1a",
  "channel": "spei_mxn",
  "quote_id": "qt_5m2n",
  "source_amount": "1000.00",
  "reference": "INV-2026-0912",
  "memo": "Freight, week 37"
}

Respuesta 201

{
  "id": "po_1b7e",
  "status": "submitted",
  "channel": "spei_mxn",
  "recipient_id": "rcp_9d1a",
  "source_amount": "1000.00",
  "source_currency": "USDC",
  "destination_amount": "16865.35",
  "destination_currency": "MXN",
  "rate": "16.86535",
  "fees": {
    "provider": "0.50",
    "decaf": "5.00",
    "total": "5.50",
    "currency": "USDC"
  },
  "reference": "INV-2026-0912",
  "estimated_arrival": "2026-09-16T15:20:00Z",
  "provider_reference": null,
  "attempts": 1,
  "created_at": "2026-09-16T15:01:12Z"
}

Errores: 400 validation_error, channel_unavailable, amount_out_of_range; 402 insufficient_balance; 409 idempotency_conflict; 410 quote_expired

Ejemplos: Create a payout

curl -X POST https://sandbox.api.decaf.so/v1/payouts \
  -H "Authorization: Bearer $DECAF_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"recipient_id":"rcp_9d1a","channel":"spei_mxn","quote_id":"qt_5m2n","source_amount":"1000.00","reference":"INV-2026-0912","memo":"Freight, week 37"}'

Check whether a phone or email can receive

GET/recipients/check

Says before sending whether a person in that country can receive, and by which methods.

Parámetros

  • typequeryenum: phone, emailobligatorio
  • numberquerystringopcional
  • addressquerystringopcional

Respuesta 200

{
  "receivable": true,
  "country": "MX",
  "methods": [
    "spei_bank",
    "decaf_wallet"
  ],
  "kyc_required_for": [
    "spei_bank"
  ]
}

Obtén acceso

Construye contra el sandbox esta semana.

Cuéntanos los corredores que necesitas y a quién pagas. Las claves de sandbox las emite una persona.