The Sovgate API lets your servers do what the Dashboard does: open checkout sessions, charge saved cards, refund payments, answer disputes, bill customers with invoices, subscriptions and usage, and follow your balance and payouts. It's organized around resources, uses ordinary HTTP methods and status codes, takes JSON bodies and answers in JSON.
How it works
| Topic | How it works |
|---|---|
| Authentication | Every request carries a secret or restricted key in the Authorization header. See Authentication. |
| Test and live | The key decides the mode. A test key reaches test data only; a live key, live data only. See Test mode. |
| Writes | Every request that creates, changes or deletes something carries an Idempotency-Key, so a retry never does it twice. See Idempotency. |
| Money | Amounts are whole numbers in the currency's smallest unit: 2500 with usd is $25.00. Payments are in US dollars. |
| Times | Timestamps are ISO 8601 in UTC, such as 2026-11-27T14:05:12Z. |
| IDs | Each object's ID starts with its kind: pay_ for a payment, cust_ for a customer, evt_ for an event. |
| Lists | Every list is paged. See Pagination. |
| Events | Sovgate tells your server what happened with webhooks. See Webhooks. |
What the API never does
- It never takes a card number. Cards are typed only on Sovgate's own payment pages, by your customers. A request with anything that looks like a card number, in any field, is refused.
- It never manages keys or webhook endpoints. Creating, rolling and expiring keys, and adding, changing or deleting webhook endpoints, need a person signed in to the Dashboard. A key can read endpoints, never write them.
- It never shows another business's data, or says whether a record exists in another mode.
- It never composes objects. A payment carries its customer's ID: fetch the customer with a second call.
Some Dashboard features aren't in the API at launch: batch refunds, customer imports, reports, Fraud defense rules and lists, payouts on request, and the team and account settings. A publishable key calls nothing yet.
Where to start
Quick start
Take your first test payment with a checkout session.
Authentication
Keys, restricted keys and permissions.
Create a checkout session
The way to get paid online.
Webhooks
Get told when a payment succeeds.
For how to use the Dashboard itself, see the Sovgate docs.