By making a GET request to the following URL, the partner can check their balance.
{{base_url}}/api-services/v2/transaction/balance
Headers
Parameter Name | Value | Mendatory | Description |
---|---|---|---|
apikey | String | Yes | your API key (provided by RichattPay) |
Example of successful response
{
"code": 200,
"msg": "Successfully operation",
"error": false,
"data": {
"currency": "MRU",
"balance": 10000
}
}
Examples of error response
Status(403)
{"error":" The API key is missing or expired"}
Status(500)
{"error":"An error occurred. Please try again later "}