Cards
Generate card
Generate Card
With the Create Virtual Card API, you can create virtual cards that your customers can use instantly once the card has been created/issued and funded.
To generate a card, make a POST request to the endpoint:
{{baseurl}}/cards/generate
These are the parameters of the request body.
Field | Data Type | Description |
---|---|---|
amount | number >=1 | Required. This specifies the amount of money to be loaded onto the virtual card. It must be a number greater than or equal to 1. |
customerId | String | Required. This identifies the customer who will be using the card. |
type | String: value virtual | Required. This indicates the type of card being created. The only valid value currently supported is “virtual” |
brand | Object: default visa | This specifies the brand of the virtual card. By default, the card will be a VISA brand |
reference | String | Required. Unique reference code to identify a bank account. |
Your request payload should look like this:
{
"customerId": "string",
"brand": "VISA",
"reference": "string",
"amount": 1,
"type": "virtual"
}