Skip to main content
POST
https://api.dintero.com/v1
/
accounts
/
{aid}
/
wallets
/
cards
/
batch
Batch create cards
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"
    }
  ]
}
'
{
  "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..."
        }
      }
    }
  ]
}

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

Body

application/json

card details

cards
object[]
required
Maximum array length: 1000
options
object

Options for the cards to create

Response

Cards created

cards
object[]
required