Update a cardholder
/v1/cardholders/{id}Requires an API client bearer token.
Updates cardholder identity fields. Requires an Idempotency-Key header and at least one field in the body. Once KYC has passed or the cardholder is attested, full_name/country lock against an actual change (422 identity_locked); email/phone stay mutable. A patch whose values already match the stored row is a no-op: 200, no write, no event. Emits cardholder.updated listing only the fields whose value actually changed.
Parameters
Path parameters
| Name | Required | Description |
|---|---|---|
| id | required |
Header parameters
| Name | Required | Description |
|---|---|---|
| Idempotency-Key | required | Client-chosen. An identical retry with the same key returns the stored response; reusing the key with a different payload returns 409. |
Request body
Optional. Rigid uses it for one thing: sending a 3-D Secure one-time code when the cardholder cannot be sent one by SMS. Rigid sends a cardholder nothing else. Without an email address, a challenge needs a passkey the cardholder has registered, or a phone number and SMS delivery; with none of these, a purchase that needs a challenge comes back unavailable (transStatus U). Omit it to leave it alone; send null to clear it.
Optional two-letter country code (ISO 3166-1 alpha-2), kept for your reference: nothing in the platform reads it. It locks with full_name once KYC has passed or the cardholder is attested, so set it before then if you want it on file. Omit it to leave it alone; send null to clear it.
Example
curl -X PATCH https://api.rigid.fi/v1/cardholders/{id} \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"full_name": "string",
"email": "email",
"phone": "string",
"country": "string"
}'Responses
200The updated cardholder.
The email address on file, or null when there is none.
The country code on file, or null when there is none.
400Validation error
401Authentication required
403Forbidden — the caller may not act on this programme, or (code `live_mode_card_read_only`) live mode refuses a cardholder edit, pending scheme certification
404Cardholder not found
409Idempotency-Key reused with a different payload
422Empty patch, or full_name/country patched after KYC passed or attestation (identity_locked)
500Internal server error