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

FieldTypeRequiredDescription
firstNamestringyesCardholder given name.
lastNamestringyesCardholder family name.
emailstringyesCardholder email address.
phonestringyesPhone in international format.
countrystringyesTwo-letter country code.
statestringyesState, province or region.
citystringyesCity.
addressstringyesResidential street address.
zipCodestringyesPostal code (use 00000 where there is none).
idTypestringyesGovernment ID type: National_ID, Passport or Driving_License.
idNumberstringyesNumber 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

StatuserrorMeaning
400idempotency_key_requiredSend an Idempotency-Key header.
403insufficient_scopeThis project key is not allowed to do that.
400cardholder_details_requiredA required cardholder contact, address or ID field is missing or invalid; the message names the field.
409cardholder_already_existsThis cardholder already exists for the business.
422cardholder_verification_requiredThe provider rejected the cardholder details.
503cardholder_setup_uncertainSetup could not be confirmed; contact support before retrying.

Related references

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