aid_cards_cardid_rotate_pin_post
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
}
}
}
'import requests
url = "https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin"
payload = { "pin": { "format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": True,
"numbers": True,
"characters": True,
"barcode": False
} } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pin: {
format: {
length: 36,
prefix: 'DINCARD:',
symbols: true,
numbers: true,
characters: true,
barcode: false
}
}
})
};
fetch('https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin"
payload := strings.NewReader("{\n \"pin\": {\n \"format\": {\n \"length\": 36,\n \"prefix\": \"DINCARD:\",\n \"symbols\": true,\n \"numbers\": true,\n \"characters\": true,\n \"barcode\": false\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pin\": {\n \"format\": {\n \"length\": 36,\n \"prefix\": \"DINCARD:\",\n \"symbols\": true,\n \"numbers\": true,\n \"characters\": true,\n \"barcode\": false\n }\n }\n}")
.asString();{
"pin": {
"format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": true,
"numbers": true,
"characters": true,
"barcode": false
},
"pin": {
"value": "012345",
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
}
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}cards
Rotate Pin
Rotate or add new pin to card
scopes:
- admin:wallets
- write:wallets
POST
https://api.dintero.com/v1
/
accounts
/
{aid}
/
wallets
/
cards
/
{card_id}
/
rotate-pin
aid_cards_cardid_rotate_pin_post
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
}
}
}
'import requests
url = "https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin"
payload = { "pin": { "format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": True,
"numbers": True,
"characters": True,
"barcode": False
} } }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pin: {
format: {
length: 36,
prefix: 'DINCARD:',
symbols: true,
numbers: true,
characters: true,
barcode: false
}
}
})
};
fetch('https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin"
payload := strings.NewReader("{\n \"pin\": {\n \"format\": {\n \"length\": 36,\n \"prefix\": \"DINCARD:\",\n \"symbols\": true,\n \"numbers\": true,\n \"characters\": true,\n \"barcode\": false\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dintero.com/v1/accounts/{aid}/wallets/cards/{card_id}/rotate-pin")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pin\": {\n \"format\": {\n \"length\": 36,\n \"prefix\": \"DINCARD:\",\n \"symbols\": true,\n \"numbers\": true,\n \"characters\": true,\n \"barcode\": false\n }\n }\n}")
.asString();{
"pin": {
"format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": true,
"numbers": true,
"characters": true,
"barcode": false
},
"pin": {
"value": "012345",
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
}
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}Authorizations
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
An id that uniquely identifies the account.
Required string length:
9The card id you have defined for the card. (must not have trailing or leading spaces)
Maximum string length:
255Body
application/json
How the PIN should be generated.
Show child attributes
Show child attributes
Response
Pin rotated
How the PIN should be generated.
Show child attributes
Show child attributes