Public developer API

POST /v1/collections/card-checkout

Creates a one-hour Dutch API-hosted card checkout session for a supported African card currency. The payer completes card entry on the hosted page; do not send PAN or CVV to this API endpoint.

Access

A project-specific API key (Authorization: Bearer dapi_live_...) and its Business ID (X-Business-Id). Rate limited per business (120 calls a minute by default).

Requires an Idempotency-Key header.

Requires an Idempotency-Key header. Retrying with the same key returns the original session.

Supported currencies: GHS, KES, NGN, TZS, UGX and ZMW. The payer must use a card issued in the country matching the selected currency.

The card collection fee is 2.5% of the payment amount; the amount minus this fee is credited to the business wallet after authenticated status verification.

The hosted page sends card data to Dutch API for processing. PAN and CVV are never persisted; payer contact details are stored with the collection record. Dutch API therefore remains in card-data scope; confirm the required PCI DSS controls before enabling live traffic.

This API endpoint creates local-currency card sessions only. USD card payments remain available through dashboard-created payment links.

Body

FieldTypeRequiredDescription
amountnumberyesAmount the payer will pay in the selected local currency.
currencystringyesOne of GHS, KES, NGN, TZS, UGX or ZMW.
descriptionstringnoUp to 140 characters shown on the hosted checkout page.

Example request

curl --request POST \
  --url 'https://production.dutchapi.co/v1/collections/card-checkout' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
  --header 'Idempotency-Key: collections-0001'

Response 201

{
  "data": {
    "id": "a0f2c5b4-7f6d-4c8f-a9f1-62aef8e734d1",
    "object": "card_checkout",
    "status": "active",
    "amount": 1000,
    "currency": "GHS",
    "fee": 25,
    "netAmount": 975,
    "checkoutUrl": "https://production.dutchapi.co/pay/long-secure-token",
    "expiresAt": "2026-11-25T10:00:00.000Z"
  }
}

Errors

StatuserrorMeaning
400idempotency_key_requiredSend an Idempotency-Key header.
400valid_amount_requiredamount must be a positive number.
403insufficient_scopeThis project key is not allowed to do that.
400unsupported_card_currencyChoose GHS, KES, NGN, TZS, UGX or ZMW.
422amount_below_feeThe amount must be greater than its collection fee.
503checkout_encryption_unavailableSecure card checkout is not configured.

Related references

Browse the complete endpoint directory, the developer portal and the security and controls guide.