Sets a physical card PIN

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Problem statement

Partners need a way to change the PIN of an already issued physical card. The public API exposes the card PIN change flow, but the client must send the PIN in encrypted form.

Executive Summary

This endpoint exposes PATCH /v1/corporate-cards/{cardId}/pin.

It is intended for authenticated partners. The public API accepts the encrypted PIN, verifies card ownership, and changes the card PIN for the authenticated card owner.

The public request contains only one field:

  1. Encrypt the PIN with the public key provided during onboarding.
  2. Use RSA with OAEP padding.
  3. Base64-encode the encrypted bytes.
  4. Send the result as pinEncrypted.

Integration model

StepMethodEndpointPurpose
1. Encrypt PINClient-sideN/AEncrypt the new card PIN before sending it to Altery
2. Submit changePATCH/v1/corporate-cards/{cardId}/pinChange the PIN for the authenticated card
3. Verify resultResponseBase API responseCheck whether the change completed successfully

Request details

FieldRequiredDescription
cardIdYesCard identity in the URL path.
pinEncryptedYesEncrypted card PIN. Encrypt the PIN with the public key provided during onboarding using RSA with OAEP padding, then base64-encode the encrypted bytes before sending the request.

The request model does not accept a plaintext PIN. See Sending encrypted pin in ChangePin request for a client-side example.

Examples

Change the card PIN

{
  "pinEncrypted": "QmFzZTY0RW5jcnlwdGVkRGF0YQ=="
}

Request path

PATCH /v1/corporate-cards/11111111-2222-3333-4444-555555555555/pin

Card lifecycle notes

The API validates the request, checks that the caller can act on the card, and applies the PIN change for the authenticated card owner.

Encryption notes

Use the public key shared during onboarding to encrypt the PIN before sending it to Altery. The encrypted bytes should be encoded as base64 and placed in pinEncrypted.

Security

[!WARNING]
pinEncrypted still represents a sensitive cardholder secret. Encrypt the PIN on the client side and send it only over HTTPS. Do not log the plaintext PIN or the decrypted value.

[!NOTE]
The public API never expects a raw PIN payload.

Timeout: 2 seconds.

Path Params
uuid
required

Card identity.

Body Params

Encrypted PIN request.

Request of set physical card pin

string
required
length ≥ 1

Card PIN. Provided value cannot be all the same or sequential digits. The field value is encrypted with a key Algorithm: AES-CBC-PKCS7PADDING. Encoding: UTF8. Key: pre-exchanged public key.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json