Skip to content

Delete Cardholder Draft ​

Deletes a cardholder draft — one whose registration has not completed (registration_status=0). Registered cardholders cannot be deleted.

Endpoint ​

ItemValue
MethodPOST
Path/api/v1/openapi/cardholder/delete
AuthHMAC
Idempotency KeyRequired via Idempotency-Key header

Request Fields ​

FieldTypeRequiredDescription
cardholder_idstring✅chd_<id> of the draft
json
{ "cardholder_id": "chd_1025" }

Response Fields ​

FieldTypeDescription
cardholder_idstringEchoed
deletedboolAlways true on success
json
{
  "code": 0,
  "message": "Success",
  "data": { "cardholder_id": "chd_1025", "deleted": true }
}

Common Errors ​

HTTPcodeerror_keyDescription
20040000openapi_invalid_cardholder_idcardholder_id missing or malformed
40440400cardholder_not_foundNo such cardholder on your account — also returned when the draft was already deleted
20040000cardholder_only_draft_deletableThe cardholder is registered (or its registration just completed)
20040000cardholder_busyAnother operation on this cardholder is in progress — retry shortly with a new Idempotency-Key
20050000cardholder_provider_unavailable / cardholder_service_not_configuredTemporarily unavailable / not enabled — retry later with a new key; the draft is not deleted
20050000openapi_cardholder_failedServer error

Plus the shared Idempotency-Key, auth (401) and rate-limit (429) errors.

Notes ​

  • After deletion the draft's external_id is free again: a later /cardholder/create with the same external_id creates a new cardholder.
  • Files referenced by a deleted draft stay bound to it and cannot be referenced by another cardholder (cardholder_file_in_use) — upload them again.
  • Instead of deleting and re-creating, you can usually fix a draft with /cardholder/update, which retries the registration.

Released under MIT-equivalent terms.