Use this POST request to initiate a payment for an existing invoice.
{{base_url}}/api-services/v1/invoice/dopay
Headers
Parameter Name | Value | Mendatory | Description |
---|---|---|---|
apikey | String | Yes | your API key (provided by RichattPay) |
Body
The value provided in commission
is the fee retrieved when you call the Get Fee API.
{
"invoice_reference": "0055CFG123",
"amount": 938.0,
"paiment_date": "2024-08-23T10:00:00Z",
"external_id":"OIUYTRERTYUYT87659",
"phone_number":"47000125",
"codeService":"INVOICE_PAYOUT",
"commision":5
}
Example of successful response
Examples of error response
Status(
Status(531)
{
"code": 531,
"msg": "The invoice commission is incorrect",
"error": "bad_commission",
"data": null
}