Skip to main content
POST
https://api.dintero.com/v1
/
accounts
/
{aid}
/
wallets
/
cards
/
{card_id}
/
rotate-pin
Rotate Pin
curl --request POST \
  --url https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pin": {
    "format": {
      "length": 36,
      "prefix": "DINCARD:",
      "symbols": true,
      "numbers": true,
      "characters": true,
      "barcode": false
    }
  }
}
'
{
  "pin": {
    "format": {
      "length": 36,
      "prefix": "DINCARD:",
      "symbols": true,
      "numbers": true,
      "characters": true,
      "barcode": false
    },
    "pin": {
      "value": "012345",
      "barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.dintero.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication (token authentication) should be used for accessing the API.

Use Get Token to get an access token for client credentials. Pass the token in the request header:

Authorization: Bearer {access_token}

where the access_token is JSON Web Tokens (JWT).

Path Parameters

aid
string<^[PT]{1}\d{8}$>
required

An id that uniquely identifies the account.

Required string length: 9
card_id
string
required

The card id you have defined for the card. (must not have trailing or leading spaces)

Maximum string length: 255

Body

application/json
pin
object
required

How the PIN should be generated.

Response

Pin rotated

pin
object
required

How the PIN should be generated.