Headers
SHA-512 HMAC signature of the request payload using the API secret
1
"5e73d044c44d733fcf819ad3409aaaddca840d421b69cb0b04e2c750fc62ece7526d36296237663ad1f06f62a730c0466516507196b3ce6567493cc52a7cf63d"
UNIX timestamp when the request was created (in seconds)
"1712336881"
Body
NGN
, USD
20
The number of days until the invoice is due
0 < x <= 1800
30
Whether to automatically finalize the invoice, invoice will be in draft state if this is false
true
The URL to call when the invoice is paid
"https://example.com/callback"
The URL to redirect to when the invoice is paid
"https://example.com/return"
The tax rates to apply to the invoice
["txr_1"]
The maximum number of installments the customer can pay in, only required when acceptPartialPayments is true
3
Additional metadata for the invoice
{ "customer_id": "123", "order_id": "456" }
Response
Invoice created successfully
draft
, open
, paid
, partially_paid
, cancelled
NGN
, USD
The number of the invoice
"0001"
The total amount due for the invoice in smallest currency unit
x > 0
100000
The total amount paid for the invoice in smallest currency unit
x > 0
100000
The total inclusive tax amount for the invoice in smallest currency unit
x > 0
10000
The total exclusive tax amount for the invoice in smallest currency unit
x > 0
10000
The tax rates applied to the invoice
["tax_rate_1"]
The URL to the hosted invoice payment page
"https://invoicing.paycashless.com/inv_123"
The maximum number of installments the customer can pay in
3