Skip to main content
POST
Create a gateway payment order for an invoice

Body Parameters

Example Request

Response

Returns the payment order details including the gateway public key needed for the client-side checkout.
The gateway field indicates which payment provider is configured for the tenant. Possible values are razorpay or stripe. Use the returned key to initialize the corresponding client-side checkout SDK.
This is a public endpoint used by the checkout flow. The key returned is the gateway’s publishable/public key, safe to use on the client side.

Errors

See Errors for the error envelope and the full code taxonomy.

Authorizations

Authorization
string
header
required

Body

application/json
invoice_id
string<uuid>
required

Response

Gateway order.

Gateway payment order. Field names are capitalized because the gateway port struct is serialized verbatim.

ID
string

Gateway order ID.

Amount
integer<int64>

Amount in the lowest currency unit.

Currency
string
Receipt
string

Receipt reference (the invoice number).