Utopia PaymentsDocs

Utopia Payments API

Accept one-time payments and renewing subscriptions from your own website.

Your server creates a checkout session and redirects the customer to its checkout_url. They pay on Utopia's secure hosted page, then come back to your return_url. A signed webhook tells your server the outcome, so you can fulfil the order even if the customer closes the tab.

Base URLhttps://utopia-payments.com/api/v1
FormatJSON over HTTPS
AmountsInteger minor units: 34900 is AED 349.00
IdsPrefixed by type: pay_, cks_, sub_, pdt_, cus_
SpecOpenAPI 3.1 document

How a payment works

  1. Your server calls POST /checkout_sessions with what the customer is buying.
  2. You redirect the customer to the session's checkout_url.
  3. The customer pays on the hosted checkout and returns to your return_url.
  4. Utopia sends payment.succeeded to your webhook endpoint, and you fulfil the order.

Start here

On this page