API Reference
Virtual Cards
Mock card transaction [POST]

Mock Transaction


https://sandboxapi.onbrails.com/api/v1/virtualcards/mock-transaction (opens in a new tab)

Mock card transaction (Sandbox only)

Body Parameters

ParametertypeRequired
cardIdstring
amountstring
type Defaults to deductstring

Request

Virtual Cards/Mock Transaction [POST]
curl --request POST \
   --url https://sandboxapi.onbrails.com/api/v1/virtualcards/mock-transaction \
   --header 'Authorization: Bearer API-KEY' \
   --header 'accept: application/json' \
   --header 'content-type: application/json' \
   --data '
{
"cardId": "string",
"amount": "string",
"type": "deduct"
}
'

Responses

🟢 200 - Result example
{
"status": true,
"message": "successfully mocked card transaction"
}