Step 2: update a card's PIN

You can also update a card's PIN at any point using the following request.

info

You can choose to omit the pin parameter, in which case we'll automatically generate one for you.

SandboxProduction
Copy
Copied
curl -i -X PUT \
  'https://api-sandbox.equalsmoney.com/v2/cards/{cardId}/pin?accountId={accountId}&personId={personId}' \
  -H 'Authorization: ApiKey {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "pin": "2612"
  }'
Copy
Copied
curl -i -X PUT \
  'https://api.equalsmoney.com/v2/cards/{cardId}/pin?accountId={accountId}&personId={personId}' \
  -H 'Authorization: ApiKey {apiKey}' \
  -H 'Content-Type: application/json' \
  -d '{
    "pin": "2612"
  }'

If your request is successful, you'll receive a 200 response containing the updated pin.

Copy
Copied
{
  "success": true,
  "pin": "2612"
}

Next