Invoices
Generate a checkout URL
Initiate a payment session with the configured payment provider (Stripe, Paystack, Flutterwave, or M-Pesa). Returns a checkout URL that redirects the customer to the provider's hosted payment page.
post/api/invoices/{id}/checkout
Path parameters
idstring required
Invoice ID
Request body
Example request
{
"callbackUrl": "https://myapp.com/payment/complete"
}Response
Checkout session created
Example response
{
"checkoutUrl": "https://paystack.com/pay/abc123",
"paymentId": "clxpay123",
"provider": "paystack"
}Changes
Changed in 1 of the 2 revisions of this API.4
- ○
the response property
checkoutUrlbecame required for the status200response-property-became-required
- ○
the response property
expiresAtbecame required for the status200response-property-became-required
- ○
the response property
paymentIdbecame required for the status200response-property-became-required
- ○
the response property
providerbecame required for the status200response-property-became-required
- ○