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
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | yes | Amount the payer will pay in the selected local currency. |
currency | string | yes | One of GHS, KES, NGN, TZS, UGX or ZMW. |
description | string | no | Up 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
| Status | error | Meaning |
|---|---|---|
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 400 | valid_amount_required | amount must be a positive number. |
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 400 | unsupported_card_currency | Choose GHS, KES, NGN, TZS, UGX or ZMW. |
| 422 | amount_below_fee | The amount must be greater than its collection fee. |
| 503 | checkout_encryption_unavailable | Secure card checkout is not configured. |