Public developer API
POST /v1/cards/users
Creates a provider cardholder from the cardholder name, contact details, address and government ID. The ID is passed to the card provider for verification and is not stored by Dutch API.
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.
Send an Idempotency-Key header. If the provider outcome is uncertain, the request is held for support review to prevent duplicate cardholders.
Body
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | yes | Cardholder given name. |
lastName | string | yes | Cardholder family name. |
email | string | yes | Cardholder email address. |
phone | string | yes | Phone in international format. |
country | string | yes | Two-letter country code. |
state | string | yes | State, province or region. |
city | string | yes | City. |
address | string | yes | Residential street address. |
zipCode | string | yes | Postal code (use 00000 where there is none). |
idType | string | yes | Government ID type: National_ID, Passport or Driving_License. |
idNumber | string | yes | Number of that government ID. Sent to the card provider for verification; not stored by Dutch API. |
Example request
curl --request POST \
--url 'https://production.dutchapi.co/v1/cards/users' \
--header 'X-Business-Id: YOUR_BUSINESS_ID' \
--header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
--header 'Idempotency-Key: cards-0001' \
--header 'Content-Type: application/json' \
--data '{"firstName":"Ada","lastName":"Obi","email":"ada@example.com","phone":"+237670000000","country":"CM","state":"Littoral","city":"Douala","address":"1 Main Street","zipCode":"00000"}'
Response 201
{
"data": {
"id": "cu_2e1f4b",
"firstName": "Ada",
"lastName": "Obi",
"name": "Ada Obi",
"email": "ada@example.com",
"status": "active"
}
}
Errors
| Status | error | Meaning |
|---|---|---|
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 400 | cardholder_details_required | A required cardholder contact, address or ID field is missing or invalid; the message names the field. |
| 409 | cardholder_already_exists | This cardholder already exists for the business. |
| 422 | cardholder_verification_required | The provider rejected the cardholder details. |
| 503 | cardholder_setup_uncertain | Setup could not be confirmed; contact support before retrying. |