curl --request POST \
--url https://api.sandbox.saalal.com/v1/cards/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"card_user_reference": "141cdcbb-df5b-4a40-b8fa-739415f1f66c",
"card_brand": "visa",
"card_type": "virtual"
}'
{
"message": "Card currently being generated",
"statusCode": 200,
"data": {
"card": {
"reference": "d282e4a6-1fb6-4827-a6ae-a780263287d7",
"card_number": null,
"card_brand": "Visa",
"card_type": "virtual",
"cvv2": null,
"expiry": null,
"balance": 0,
"status": "issuing"
}
}
}
curl --request POST \
--url https://api.sandbox.saalal.com/v1/cards/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"card_user_reference": "141cdcbb-df5b-4a40-b8fa-739415f1f66c",
"card_brand": "visa",
"card_type": "virtual"
}'
{
"message": "Card currently being generated",
"statusCode": 200,
"data": {
"card": {
"reference": "d282e4a6-1fb6-4827-a6ae-a780263287d7",
"card_number": null,
"card_brand": "Visa",
"card_type": "virtual",
"cvv2": null,
"expiry": null,
"balance": 0,
"status": "issuing"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.