Skip to main content

Simulation

You can simulate actions in test mode that usually aren’t within your control in live mode.

Card Programs Simulation

You can simulate a card program going live.

Sample Request
curl https://api.allawee.com/simulation/card-programs/:id/go-live
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{}'
-X POST

Cards Simulation

You can simulate several steps in a card authorization flow.

You can simulate sending the card authorization request check.

Sample Request
curl https://api.allawee.com/simulation/cards/:id/request-authorization/check
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{
"channel": "atm",
"mcc": "string",
"merchantDescriptor": "string"
}'
-X POST
Request Body ParameterRequired?Description
channelYesThe payment channel. This can be `atm`, `pos`, `online`, or `in-app`.
mccNoThe merchant’s MCC.
merchantDescriptorNoThe merchant’s name and location.

You can simulate sending the card authorization request capture.

Sample Request
curl https://api.allawee.com/simulation/cards/:id/request-authorization/capture
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{
"amount": 0,
"fees": 0,
"channel": "atm",
"mcc": "string",
"merchantDescriptor": "string"
}'
-X POST
Request Body ParameterRequired?Description
amountYesThe transaction amount to be debited from the card.
feesYesThe transaction fee to be debited from the card.
channelYesThe payment channel. This can be `atm`, `pos`, `online`, or `in-app`.
mccNoThe merchant’s MCC.
merchantDescriptorNoThe merchant’s name and location.

You can simulate updating the card authorization request capture.

Sample Request
curl https://api.allawee.com/simulation/cards/:id/request-authorization/update-capture
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{
"amount": 0,
"fees": 0,
"updateAmount": 0,
"updateFees": 0,
"channel": "atm",
"mcc": "string",
"merchantDescriptor": "string"
}'
-X POST
Request Body ParameterRequired?Description
amountYesThe transaction amount to be debited from the card.
feesYesThe transaction fee to be debited from the card.
updateAmountYesUpdate the transaction amount to be debited from the card.
updateFeesYesUpdate the transaction fee to be debited from the card.
channelYesThe payment channel. This can be `atm`, `pos`, `online`, or `in-app`.
mccNoThe merchant’s MCC.
merchantDescriptorNoThe merchant’s name and location.

You can simulate sending a card authorization request reverse capture.

Sample Request
curl https://api.allawee.com/simulation/cards/:id/request-authorization/reverse-capture
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{
"amount": 0,
"fees": 0,
"channel": "atm",
"mcc": "string",
"merchantDescriptor": "string"
}'
-X POST

Payments Simulation

You can simulate receiving a bank transfer payment.

Sample Request
curl https://api.allawee.com/simulation/payments/pay-in
-H "Authorization: Bearer YOUR_SECRET_KEY"
-H "Content-Type: application/json"
-d '{
"method": "string",
"accountNumber": "0123456789"
}'
-X POST
Request Body ParameterRequired?Description
methodYesThe payment method.
accountNumberYesThe recipient account number.