This endpoint should be consumed in 2 scenarios:
To generate an invoice, you will need to provide your schedule PPID. Note that the invoice details will be returned if already generated for this PPID.
{
"Content-Type": "application/json"
"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.xxxxx"
}
{
"ppid": "TX10xxxxxx02"
}
{
"has_error": false,
"message": "Operation succeeded.",
"data": [
{
"ppid": "TX10xxxxxx02",
"amount_payable": 300000,
"payment_due_date": "2024-05-30 15:45:23",
"account_name": "John Doe Limited",
"account_number": 0123456789,
"bank_name": "Wema Bank",
"invoice_status": "PENDING",
"created_by": "John Doe",
"created_on": "2024-05-20 15:45:23"
}
]
}
This response indicates that everything went well and your schedule has uploaded successfully uploaded. This process also triggers an email with your invoice, carrying same information as in the above response.
Field | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
has_error | Indicates whether or not the request results in an error | ||||||||||||||||||
message | The operation response message | ||||||||||||||||||
data |
Contains the invoice details to be used for making payment.
|