| Field | Type | Description | Constraints |
|---|---|---|---|
pin | string | New PIN โ must be 4โ6 digits. Example: 1234 | Min length: 4 ยท Max length: 6 |
| Field | Type | Description | Notes |
|---|---|---|---|
card_id | string (uuid) | - | - |
customer_id | string (uuid) | - | - |
product_id | string | - | nullable |
card_type | string | - | nullable |
action | string | The operation performed: activate, freeze, unfreeze, cancel, replace, set_pin. Example: activate | - |
status | string | New card status after the operation. Example: active | - |
message | string | - | nullable |
task_id | string | Async task ID for operations processed in the background. | nullable |
performed_at | string (date-time) | - | - |
curl --location -g --request POST '{{baseUrl}}/api/v1/cards/a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11/pin/set' \
--header 'X-API-Key;' \
--header 'X-Signature;' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Body-Hash;' \
--header 'Content-Type: application/json' \
--data-raw '{
"pin": "1234"
}'{}