CleonPay

Accepting payments

One request shape for every method.

POST /v1/payments
FieldTypeNotes
methodstringRequired. See payment methods.
amountintegerRequired. Minor units. €10.50 is 1050.
currencystringRequired. ISO 4217, e.g. EUR.
countrystringCustomer's billing country (ISO 3166-1 alpha-2). Required by most local methods.
success_urlstringRequired. HTTPS.
error_urlstringRequired. HTTPS.
referencestringYour order id. Searchable.
customerobjectfirst_name, last_name, email, reference (your stable id for the customer), phone (international, with a space after the country code, e.g. +39 3331234567), citizenship_country (ISO 3166-1 alpha-2).
billingobjectThe customer's billing address: address, city, postcode, state. Its country is country.
metadataobjectReturned untouched on every read.
webhook_urlstringOptional. Send this payment's events here instead of your dashboard endpoint. See Webhooks.
paysafecard needs the payer's full details. Send country, billing (all four fields) and, in customer: reference, email, first_name, last_name, phone and citizenship_country. A payment missing any of them is refused with 422 method_requirements_not_met, listing each missing field.
BLIK needs the payer's contact details. BLIK is for customers in Poland, in PLN, from 25 to 7,000 PLN per payment. Send country PL and, in customer: email, first_name, last_name and phone (e.g. +48 512456665). The customer is redirected to approve the payment in their banking app.
Apple Pay and Google Pay by redirect. Where your account takes wallets on a hosted wallet page, send country, billing (address, city, postcode) and the customer's email, first_name and last_name. A payment missing any of them is refused with 422 method_requirements_not_met. Send the customer to the redirect_url as with any redirect method.
Amounts are integers in minor units. Sending 10.50 is rejected rather than interpreted. That is deliberate: silently reading it as ten and a half cents would undercharge by a factor of a hundred, and the error would surface in your bank statement rather than your logs.

Cards work exactly like everything else

A card payment returns a redirect_url too. It points at CleonPay's secure payment page, where the customer enters their card and pays without ever leaving it. Card numbers never touch your servers, which keeps you out of PCI DSS scope entirely. Your integration is identical for iDEAL and for Visa: create, redirect, wait for the webhook.

Let the customer choose: omit the method

Send the request without a method and the payment page shows every method enabled on your account (cards inline, local methods handing over to their banks) and collects anything the chosen scheme still needs. One URL, the whole catalogue. This is also what powers payment links.

Crypto on the payment page

If crypto is enabled on your account, a payment created without a method can also be paid in stablecoins. Nothing changes in your integration: the customer picks a network on the page, we show them the exact amount to send, and once the deposit confirms the payment becomes settled with "method": "crypto" and you receive the usual payment.settled webhook. Fulfil on that, as for a card.

Available for USD payments; EUR payments are available in sandbox. The payment keeps its own amount and currency; the stablecoin amount the customer sends is set by CleonPay.

Validation happens before the bank sees it

Scheme rules are enforced here, so you get a precise error instead of an opaque acquirer rejection.

{
  "error": {
    "type": "invalid_request_error",
    "code": "method_requirements_not_met",
    "message": "The request does not satisfy iDEAL's requirements.",
    "details": [
      { "code": "currency_not_supported", "field": "currency",
        "message": "iDEAL supports EUR, not GBP." },
      { "code": "country_not_supported", "field": "country",
        "message": "iDEAL is available to customers in NL, not GB." }
    ]
  }
}

Reading a payment

GET /v1/payments/{id}
GET /v1/payments

List accepts status, method, reference, limit and created_before for keyset pagination.