Invoices
Generate a checkout URL
Changed onInitiate 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
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status
- info