CleonPay

API: Payouts

Send money to an individual, to a card or a bank account.

A payout goes to a recipient, so a recipient is created first. That separation is deliberate: recipient details are sealed at rest and reused, and the payout request itself carries no personal data.

Create a recipient

POST /v1/payout-recipients

Stores who is being paid. A card recipient is created from the card number and the recipient’s date of birth and address (the scheme requires them for a card payout).

Send an Idempotency-Key header. Retrying with the same key returns the original result rather than creating a second one. See idempotency.

Body parameters

FieldTypeDescription
type
required
string card or bank_account.
first_name
required
string As held by the bank. Up to 35 characters.
last_name
required
string As held by the bank. Up to 35 characters.
card_number string Card recipients (required): the card, 12–19 digits. Encrypted at rest. No expiry date is needed.
date_of_birth string Card recipients (required): YYYY-MM-DD.
iban string Bank recipients: the account, in IBAN form (SEPA).
bic string Bank recipients: required outside SEPA reach.
sort_code string Bank recipients: six digits, UK Faster Payments.
account_number string Bank recipients: eight digits, UK Faster Payments.
address_line1 string Street and number, up to 50 characters. Required by card and SEPA rails.
city string Up to 25 characters. Required by card and SEPA rails.
postal_code string Up to 10 characters. Required by card and SEPA rails.
country_subdivision string State or province: its code (NSW, ON, NY) or full name. A card issued in Australia, Canada, New Zealand or the United States is paid only with it, so send it whenever the card or the recipient is from one of these countries.
last4 string Last four digits, for your own reporting only.
scheme string visa, mastercard or amex.
country string Two-letter ISO 3166 code.
email string Optional, used by some rails for notification.
date_of_birth string YYYY-MM-DD. Required by some rails for sanctions screening.
reference string Your own identifier for this recipient.

Request

curl https://api.cleonpay.com/v1/payout-recipients \
  -H "Authorization: Bearer ck_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "type": "card",
    "first_name": "Sofia",
    "last_name": "Almeida",
    "country": "PT",
    "card_number": "5555555555554444",
    "date_of_birth": "1992-04-07",
    "address_line1": "Rua das Flores 12",
    "city": "Lisboa",
    "postal_code": "1100-001",
    "reference": "order-1001"
  }'

Response

{
  "id": "6d4ff39f-72fb-44c4-9e13-9c724683d40a",
  "object": "payout_recipient",
  "type": "card",
  "scheme": "mastercard",
  "last4": "4444",
  "created_at": "2026-08-21T15: 02: 19.441Z"
}

A card payout needs the card_number, plus the recipient’s date_of_birth and address — the scheme requires them. The card’s expiry date is not needed; if your integration still sends expiry_month and expiry_year, they are accepted as before, so you can remove them whenever suits you. Vendor tokens and paying back to an earlier payment are not available for card payouts today.

Send a payout

POST /v1/payouts

Sends money to a recipient over the rail you choose.

Send an Idempotency-Key header. Retrying with the same key returns the original result rather than creating a second one. See idempotency.

Body parameters

FieldTypeDescription
recipient_id
required
string From the call above.
method
required
string A rail from GET /v1/payout-methods, for example card_payout or sepa_credit_transfer.
amount
required
integer Minor units.
currency
required
string Three-letter ISO 4217 code.
reference string Your own identifier for this payout. Each payout needs its own: a reference another payout already holds is refused with reference_already_used (409). A failed payout frees its reference, so a retry can use it again.
metadata object Stored and returned unchanged. With named balance accounts enabled, metadata.balance_account selects the account the payout (and its fee) draws from; unset or main is your default balance. An account that is not funded in the key’s environment is refused with balance_account_not_found. In the sandbox, metadata.simulate picks the outcome so you can rehearse every webhook: fail (a bank payout is accepted, then fails with simulated_failure; a card payout is declined at creation), return (completes, then comes back as payout.returned) or timeout (the bank's answer is slow: the payout stays submitted, then completes by webhook). Without it a sandbox payout completes. A recipient with the last name Gomes is always declined.
webhook_url string Optional. An HTTPS URL to send this payout’s events to, instead of your dashboard endpoint. Signed with your account signing secret. See Webhooks.

Request

curl https://api.cleonpay.com/v1/payouts \
  -H "Authorization: Bearer ck_live_..." \
  -H "Idempotency-Key: payout-2026-0001" \
  -H "Content-Type: application/json" \
  -d '{
    "recipient_id": "6d4ff39f-72fb-44c4-9e13-9c724683d40a",
    "method": "card_payout",
    "amount": 2500,
    "currency": "EUR",
    "reference": "PAYOUT-2026-0001"
  }'

Response

{
  "id": "9a2c1e77-3b41-4e0a-9f18-0c5b2d7e6a33",
  "object": "payout",
  "status": "sent",
  "amount": 2500,
  "currency": "EUR",
  "method": "card_payout",
  "recipient_id": "6d4ff39f-72fb-44c4-9e13-9c724683d40a",
  "reference": "PAYOUT-2026-0001",
  "balance_account": "main",
  "metadata": {},
  "failure": null,
  "returned": null,
  "livemode": true,
  "created_at": "2026-08-21T15: 04: 52.118Z",
  "completed_at": null
}

balance_account is the balance account the payout and its fee were taken from: main unless the request named one in metadata.balance_account. It is on every payout, so you can tell your accounts' payouts apart.

Retrieve a payout

GET /v1/payouts/{id}

Returns one payout. A returned payout carries a returned object with a stable code and a reason.

Response

{
  "id": "9a2c1e77-3b41-4e0a-9f18-0c5b2d7e6a33",
  "object": "payout",
  "status": "returned",
  "returned": {
    "code": "returned_by_bank",
    "reason": "The recipient’s bank returned the payout. The amount has been credited back to your balance."
  },
  "completed_at": "2026-08-24T07: 31: 09.660Z"
}

returned is not failed. Failed means the money never left. Returned means it reached the recipient's bank and came back, sometimes days later, and your balance moved in between.

List payouts

GET /v1/payouts

Every payout on the account, newest first.

Query parameters

FieldTypeDescription
limit integer Between 1 and 100. Defaults to 25.
status string Filter to one status.
balance_account string Only payouts taken from this balance account, for example main or a named account.

Response

{
  "object": "list",
  "data": [ { "id": "9a2c1e77-...", "object": "payout", "status": "completed",
              "balance_account": "main" } ]
}

Available payout rails

GET /v1/payout-methods

The rails enabled on your account, with what each one reaches and how quickly.

Response

{
  "object": "list",
  "data": [
    {
      "method": "card_payout",
      "display_name": "Card payout",
      "recipient_type": "card",
      "typical_speed": "Instant",
      "can_be_returned": false
    }
  ]
}

On every request

HeaderDescription
Authorization Bearer <api key>. The key decides whether you are in sandbox or live; the host is the same either way.
Content-Type application/json on every request with a body.
Idempotency-Key On every creating request. Up to 255 characters, unique per operation, valid for 24 hours.

Errors follow one shape across every endpoint, described in errors.