aid_cards_batch_post
curl --request POST \
--url https://api.dintero.com/v1/accounts/{aid}/wallets/cards/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cards": [
{
"card_id": "<string>",
"type": "gift_card"
}
]
}
'import requests
url = "https://api.dintero.com/v1/accounts/{aid}/wallets/cards/batch"
payload = { "cards": [
{
"card_id": "<string>",
"type": "gift_card"
}
] }
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({cards: [{card_id: '<string>', type: 'gift_card'}]})
};
fetch('https://api.dintero.com/v1/accounts/{aid}/wallets/cards/batch', 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/batch"
payload := strings.NewReader("{\n \"cards\": [\n {\n \"card_id\": \"<string>\",\n \"type\": \"gift_card\"\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/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cards\": [\n {\n \"card_id\": \"<string>\",\n \"type\": \"gift_card\"\n }\n ]\n}")
.asString();{
"cards": [
{
"card_id": "<string>",
"amount": 50000,
"currency": "NOK",
"originated_by": "<string>",
"customer_id": "<string>",
"name": "<string>",
"type": "gift_card",
"status": "unused",
"pin": {
"format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": true,
"numbers": true,
"characters": true,
"barcode": false
},
"pin": {
"value": "012345",
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
}
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"metadata": {
"order_id": "xk39592f"
},
"amount_balance": 50000,
"amount_available": 50000,
"amount_funds": 50000,
"amount_drawdown": 50000,
"amount_pending": 50000,
"amount_reserved": 50000,
"active_from": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"card_token": {
"expires_in": 2,
"format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": true,
"numbers": true,
"characters": true,
"barcode": false
},
"expires_after_transaction": true,
"token": {
"value": "DINCARD:6ccfec5d-3a53-47de-910a-97d6dda22e5f",
"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": [
{}
]
}
}cards
Batch create cards
Batch create cards. The cards created from the batch operation will
all have zero balance and status inactive. They all need to be
activated before use.
scopes:
- admin:wallets
- write:wallets
POST
https://api.dintero.com/v1
/
accounts
/
{aid}
/
wallets
/
cards
/
batch
aid_cards_batch_post
curl --request POST \
--url https://api.dintero.com/v1/accounts/{aid}/wallets/cards/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cards": [
{
"card_id": "<string>",
"type": "gift_card"
}
]
}
'import requests
url = "https://api.dintero.com/v1/accounts/{aid}/wallets/cards/batch"
payload = { "cards": [
{
"card_id": "<string>",
"type": "gift_card"
}
] }
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({cards: [{card_id: '<string>', type: 'gift_card'}]})
};
fetch('https://api.dintero.com/v1/accounts/{aid}/wallets/cards/batch', 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/batch"
payload := strings.NewReader("{\n \"cards\": [\n {\n \"card_id\": \"<string>\",\n \"type\": \"gift_card\"\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/batch")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"cards\": [\n {\n \"card_id\": \"<string>\",\n \"type\": \"gift_card\"\n }\n ]\n}")
.asString();{
"cards": [
{
"card_id": "<string>",
"amount": 50000,
"currency": "NOK",
"originated_by": "<string>",
"customer_id": "<string>",
"name": "<string>",
"type": "gift_card",
"status": "unused",
"pin": {
"format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": true,
"numbers": true,
"characters": true,
"barcode": false
},
"pin": {
"value": "012345",
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..."
}
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"metadata": {
"order_id": "xk39592f"
},
"amount_balance": 50000,
"amount_available": 50000,
"amount_funds": 50000,
"amount_drawdown": 50000,
"amount_pending": 50000,
"amount_reserved": 50000,
"active_from": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"card_token": {
"expires_in": 2,
"format": {
"length": 36,
"prefix": "DINCARD:",
"symbols": true,
"numbers": true,
"characters": true,
"barcode": false
},
"expires_after_transaction": true,
"token": {
"value": "DINCARD:6ccfec5d-3a53-47de-910a-97d6dda22e5f",
"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": [
{}
]
}
}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:
9Body
application/json
card details
Response
Cards created
Show child attributes
Show child attributes
Last modified on June 23, 2026
⌘I