How it goes
A cart in, the address of OSuite’s pay page back. The cart is a draft invoice, its totals with GST but no number and in no return, until the customer pays on the business’s own gateway; then it is posted, the payment recorded, the invoice sent, and the customer taken to successUrl with ?checkout=<id>&invoice=<id>. A cart left unpaid for a day closes (status expired, webhook checkout.expired); its draft is kept a week, so a payment the bank confirms late is still billed (webhook checkout.paid), then taken back.
Start one
curl -X POST https://YOUR-OSUITE/api/v1/checkout \
-H "Authorization: Bearer $OSUITE_TOKEN" \
-H "Idempotency-Key: order-1001" \
-H "Content-Type: application/json" \
-d '{"customer":{"name":"Anita Shah","email":"anita@example.in","stateCode":"27"},"reference":"Order 2041","items":[{"description":"LED panel 18W","hsn":"9405","qty":2,"price":450,"gstRate":12}],"successUrl":"https://patilstore.in/thanks","cancelUrl":"https://patilstore.in/cart"}'
Send the customer to checkout.url.
OSuite takes payment on the business’s own gateway account, connected under Connections › Payment gateways: Razorpay, Cashfree, PayU, PayPal, Stripe, Instamojo, CCAvenue, PhonePe, Paytm and, in the Gulf, Telr, N-Genius, Tabby and Tamara. It is the same account the business already has, so no new KYC. Razorpay takes payment from customers abroad once international payments are on in the Razorpay account and, in OSuite, Connections › Payment gateways › Razorpay has customers abroad ticked. A customer abroad pays in the invoice’s currency (USD, EUR…) on a gateway the business has connected that takes it, such as PayPal, Stripe, or Razorpay with international payments turned on in the Razorpay account and in OSuite (it charges USD and pays the business in rupees); Instamojo takes rupees only. The pay page offers only those that fit, and a checkout no connected gateway can take payment for is refused with 422 and the usual error body ({ error, fieldErrors: { currency } }). Autopay (mandates) is set up on a recurring invoice in OSuite, not through this API.
Before you ship
On your success page, call GET /api/v1/checkout/{id} with the checkout id from the address and ship only when its status is paid. The customer may close the tab before they get back, so listen for the checkout.paid webhook too, and ship on whichever comes first.
A test key’s checkout shows Pay (test) and issues nothing.
Failed and pending payments
A payment that fails brings the customer back to the pay page, which says so and offers Pay again. One the bank is still confirming holds the Pay buttons for 15 minutes so the customer is not charged twice, and the page keeps checking by itself.
A cart still unpaid after a day closes: checkout.expired. A payment confirmed later in the week still bills it: checkout.paid, even after expired. Treat checkout.paid as final whenever it comes.
Also as Markdown. See the API reference for every field.