Sets a PIN during the card order flow. This endpoint will be accessible for partners that require to set a PIN during the card order flow.
Please follow this guide to use this endpoint.
To use this endpoint, make sure to set the api token and the card order id in the headers.
Security
UserToken
Optional UUID for correlating requests across systems. If provided, Wise echoes it back in the response. Maximum 36 characters. Learn more.
Example:f47ac10b-58cc-4372-a567-0e02b2c3d479
- Production Environmenthttps://twcard.wise.com/twcard-data/v1/sensitive-card-data/preset-pin
- Sandbox Environmenthttps://twcard.wise-sandbox.com/twcard-data/v1/sensitive-card-data/preset-pin
curl -i -X POST \
https://twcard.wise.com/twcard-data/v1/sensitive-card-data/preset-pin \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-External-Correlation-Id: f47ac10b-58cc-4372-a567-0e02b2c3d479' \
-H 'x-tw-twcard-order-id: 142' \
-d '{
"keyVersion": 1,
"encryptedPayload": "eyJhbGciOiJSU0..."
}'OK - PIN set successfully.
Headers
Echoed back when X-External-Correlation-Id was included in the request. Learn more.
Example:"f47ac10b-58cc-4372-a567-0e02b2c3d479"
Response
{ "cardOrderId": "142" }