Mock Transaction
https://sandboxapi.onbrails.com/api/v1/virtualcards/mock-transaction (opens in a new tab)
Mock card transaction (Sandbox only)
Body Parameters
Parameter | type | Required |
---|---|---|
cardId | string | ✅ |
amount | string | ✅ |
type Defaults to deduct | string | ✅ |
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"
}