Skip to main content

MPay cash-out

Partner cashout

The partner generate an offline QR code that contains the following json

ParameterTypeDescription
shopstringthe shop uuid
agentstring(optional) Mobile number of the agent/cashier performing the transaction
amountfloatThe amount to cashout by the customer
request_idstring(optional) The partner request id
timestringISO 8601 string representing the time the sale was completed

Sample Json:

{
"operation": "MPayCashOut",
"amount": 100.15,
"agent": "agent-id",
"shop": "30d0d335-e9cb-492a-8c46-be0221408787",
"request_id": "f8080959-554e-4cc5-89b1-f10c616d5858",
"time": "2025-04-07T17:20:30+01:00"
}

After the customer success the cashout, we perform a callback to the partner

Authentication

  • Token authentication
HeaderDescription
ApiKeyThe authentication header provided by the partner

Or as a querystring that the partner provide us

the default callback scheme is a POST request to the callback url

ParameterTypeDescription
shop_idstringthe shop uuid
statusstringthe status of the transaction (pending / approved / rejected)
reasonstringthe reason of rejection
agentstring(optional) ID of the agent/cashier performing the transaction
amountfloatThe amount to cashout by the customer
request_idstringThe unique ID representing the request
timestringISO 8601 string representing the time the sale was completed
feestringthe calculated fee for the transaction

Example request body

{
"shop_id": "30d0d335-e9cb-492a-8c46-be0221408787",
"agent": "agent-id",
"request_id": "c3921462-b840-45ad-880e-65d824a8c3e0",
"time": "2025-04-07T17:20:30+01:00",
"amount": 100.15,
"status": "rejected",
"reason": "Technical Error",
"fee": "3.00"
}