Virtual Card Service
Introduction
Instead of issuing vouchers on paper when customers returns items or issuing plastic gift cards, you can issue virtual cards that can be used in all channels. Virtual cards will have balance and expiring dates.
Creating new virtual card when customers returns some items or buying a Gift card:
- You can create a new card by using endpoint here: https://docs.dintero.com/api.html#operation/aid_cards_post
In this example we are creating a Voucher with amount of NOK 500,00 that will expire in 1 year with a token that has prefix
VOUCH:
and length of 16 digits
{
"metadata": {
"order_id": "xk39592f",
"return_reason": "not happy with the jacket"
},
"amount": 50000,
"currency": "NOK",
"card_id": "e1f114e5-e295-4e28-9dcb-6eb361288712",
"customer_id": "3288922",
"expires_at": "2019-08-24T14:15:22Z",
"card_token": {
"format": {
"length": 16,
"prefix": "VOUCH:",
"symbols": false,
"numbers": true,
"characters": false,
"barcode": true
},
"expires_after_transaction": false,
"expires_in": 31536000
}
}
Response:
{
"id": "fd194162-e550-4ef7-8414-f20b3d74eae4",
"card_id": "e1f114e5-e295-4e28-9dcb-6eb361288712",
"customer_id": "3288922",
"expires_at": "2019-08-24T14:15:22.000Z",
"metadata": {
"order_id": "xk39592f",
"return_reason": "not happy with the jacket"
},
"created_by": "7b9d0039-ee37-43aa-ba48-e018659399fc",
"created_at": "2022-11-11T17:12:25.288Z",
"amount": 50000,
"currency": "NOK",
"amount_available": 50000,
"amount_balance": 50000,
"card_token": {
"id": "262d6039-838e-4356-a976-466e8e89aa40",
"ref_id": "e1f114e5-e295-4e28-9dcb-6eb361288712",
"created_at": "2022-11-11T17:12:25.288Z",
"created_by": "7b9d0039-ee37-43aa-ba48-e018659399fc",
"expires_in": 31536000,
"expires_after_transaction": false,
"metadata": {},
"format": {
"qr": false,
"length": 16,
"prefix": "VOUCH:",
"barcode": true,
"numbers": true,
"symbols": false,
"characters": false
},
"token": {
"barcode_128": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaQAAACOCAYAAAB+DHzRAAAABmJLR0QA/wD/AP+gvaeTAAAS4UlEQVR4nO3caUxUZ/sG8OsAwiADyNK6ixUXVFCqVq0koqBiXXChWrW1bsQ1TfCDuBTTpDZt9Y1WbbXE1LoltS6VNLhQcMOl7satIu67xh0VWeX+f2jmlHFmnDkD/fu8b65fwod5znPu85zzjHPNnEVNRARERERvmMebHgARERHAQCIiIkUwkIiISAkMJCIiUgIDiYiIlMBAIiIiJTCQiIhICQwkIiJSAgOJiIiU4OVqR03TrF5b/oMHS/ur/+GDo3ZndZ3VdzQOR3WdLXe2XXfb3V1eXftT1eNV1ePnbNyuvp/cPa6u1nV1XI4Y3b677c7qVve8Gj0u1T0Pzrb7b/17c3d7ztZ3xN33pbP6rn5uGv18cLR9dz+nX8VfSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBRERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREpgIBERkRIYSEREpAQGEhERKYGBREREStBERN70IIiIiPgLiYiIlMBAIiIiJTCQiIhICQwkIiJSAgOJiIiUwEAiIiIlMJCIiEgJDCQ3bdu2DZqmoVevXg77JCY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WpdTi4ScNi7dq1omma1KxZUz7++GOZPHmyNGvWTL9gX/lmB8t4wsPDpWfPnjJw4EBp06aNvp1JkybZ1B84cKCEhYVJv379ZMCAAVK3bl0BIM2aNbP71P7Bgwdl/PjxMn78eP1/kQgPD9fbli5d6nb9goICadWqlQCQsLAwmTBhgkycOFHCw8MFgLRp00aePXtmtc6WLVvE09NT/Pz8ZMyYMTJ27Fgxm83i4eEhGRkZVn2Tk5NF0zSJiIiQPn36SN++ffX3gp+fn+zatavKx0dE5MqVK+Lh4SF169aVsrIyu33cGY8782tkvtypb2R/3ZlfMoaBVE02btyov/FXrlz52r7r1q2TmJgY8fPzEz8/P+nSpYvVbeOVlZWVyaJFi6Rz584SEhIiwcHB0qlTJ5k/f77VrbyVlZeXy/Lly6Vr164SFBQkJpNJmjZtKhMnTpTz58/r/f4/AklEJDs7W+Lj4/VfgREREfLll1/afJvfs2ePTJkyRaKjo6V27dri7e0tTZo0kd69e8v69evt1l69erV06tRJatWqJSaTSVq2bCmff/65za9DizVr1rz2NveBAwdWqf6TJ09k1qxZ0q5dO/0XZPv27SUtLU2ePn1qd53du3dLXFycmM1mMZvN0r17d9mxY4dNv6ysLBk8eLC888474u/vLzVq1JCwsDAZN26c5OfnV8vxERGZOXOmAJCZM2c67OPOeNyZXyPz5U59I/sr4t78kus0ERF3T/cRERFVF97UQERESmAgERGREhhIRESkBAYSEREpgYFERERKYCAREZESGEhERKQEBhIRESmBgUREREr4P2e4XjAfL+utAAAAAElFTkSuQmCC",
"value": "VOUCH:6391980597531378"
}
}
}
The token value is VOUCH:6391980597531378
.
The token value and the barcode can be printed on paper receipts with the amount, or sent via SMS or email. Its up to you to handle the distribution of the code. NB! This value should be kept secret.
Its also possible to create a token that only can be used once by setting the value "card_token.expires_after_transaction": true
. You can also limit how long a token can be valid by setting the value "card_token.expires_in": 300
(5 minutes).
List the cards on Customer Profile via My Page or in the checkout process
List Customers Virtual Cards by using endpoint: https://docs.dintero.com/api.html#tag/customers/operation/aid_customers_cid_cards_get
Check the balance
https://docs.dintero.com/api.html#tag/customers/operation/aid_customers_cid_card_cid_get
Using a Virtual Card:
In-Store
- Customers shows the token via barcode (can be the via paper receipts, email with barcode, SMS etc) or CardID
- Cashier scans the barcode
- Point of sale creates a https://docs.dintero.com/api.html#operation/aid_cards_transactions_post.
Online / in-App
- Alt A) Logged in Customers can see their own Virtual cards and choose which card to pay with. Alt B): Customers enters their Card ID in the checkout.
- eCommerce or your App creates a https://docs.dintero.com/api.html#operation/aid_cards_transactions_post.