Issue a card
/v1/cardsRequires an API client bearer token.
Issues a card for the given cardholder under the specified card product. Requires an Idempotency-Key header. Emits card.created.
Parameters
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
Example
curl -X POST https://api.rigid.fi/v1/cards \
-H "Authorization: Bearer $RIGID_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"card_product_id": "uuid",
"cardholder_id": "uuid"
}'Responses
201Issued card.
+ show properties− hide properties
One of
mcc_allow
mcc_deny
country_allow
country_deny
channel_allow
channel_deny
per_txn_cap
per_day_cap
per_day_amount_cap
400Validation error — including kyc_required (KYC not complete), or a missing/blank Idempotency-Key header
401Authentication required
403Forbidden — the caller may not act on this programme, or (code `live_mode_card_read_only`) live mode refuses a new card issuance, pending scheme certification
404Card product or cardholder not found
409Idempotency-Key reused with a different payload
500Internal server error