Customer Portal

Create checkout for an invoice

Changed on

Initiates a payment session with the configured payment provider. Returns a checkout URL to redirect the customer to.

post/api/portal/customers/{externalId}/invoices/{invoiceId}/checkout

Request

Path parameters

externalIdstring required

Customer external ID

invoiceIdstring required

Invoice ID

Response

Checkout URL and payment details

checkoutUrlstring required
paymentIdstring required
providerstring required
expiresAtstring required

Example response

{
  "checkoutUrl": "https://paystack.com/pay/abc123",
  "paymentId": "clxpay123",
  "provider": "paystack"
}

Changes