customerId with created: false.card block to register the customer and store a first card in one call (same fields as Store a card). The card is validated first, so a bad card creates no customer.| code | HTTP | message | when |
|---|---|---|---|
| 26 | 400 | Field messages, for example pan must be a valid card number of 12 to 19 digits | Fix the request. |
| 66 | 404 | Card not found | Unknown token or PAN, or not yours. |
| 67 | 400 | Card is Removed / Card is Blocked / Card has expired | Card cannot be used. |
| 68 | 400 | This card is already linked to another customer | PAN stored for another of your customers. |
| 21 | 400 | Card could not be stored, please try again | Temporary issue. Retry. |
curl --location 'https://merchantapi-dev.vantpay.io/api/v1/cards/customers' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Signature-Version: 2' \
--header 'X-Signature: {{signature}}' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "jane@example.com",
"firstName": "Jane",
"lastName": "Doe",
"phoneNumber": "08012345678"
}'{
"isSuccessful": true,
"code": "00",
"message": "Operation successful",
"data": {
"customerId": "CUSdaa52de",
"email": "jane@example.com",
"firstName": "Jane",
"lastName": "Doe",
"phoneNumber": "08012345678",
"createdAt": "2026-11-08T10:12:05",
"created": true
}
}