API Overview
The Soap API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. A payment involves three distinct entities — the checkout the customer completes, the charge representing each payment attempt, and an optional review. Checkouts, Charges and Reviews explains how they relate, the charge status lifecycle, and why one checkout can have several charges.Getting Started
Soap onboarding is invite-only — there’s no public self-serve signup. To get started with the Soap API, you’ll need to:- Request access to get a Soap account set up
- Create an API key in the dashboard
- Make your first API request
Authentication
Every Soap API request is authenticated with a bearer token sent asAuthorization: Bearer <credential>:
Bearer . Soap’s dashboard issues two separate credentials, and using the wrong one for an endpoint will fail:
A missing, unknown or inactive API key returns
401. The key is checked before the request body is read:
POST /api/v1/device_pings returns 422:
POST /api/v1/checkouts, POST /api/v1/customers, PATCH /api/v1/customers/{id}, POST /api/v1/kyc/upsert, POST /api/v1/device_pings), a body that is empty, malformed, or JSON but not an object returns 400 with "code": "invalid_json", except a malformed body sent with Content-Type: application/json, which the web framework answers with a plain 400 and no code (see Errors). For these errors branch on the status and code, not on the error text; the client-secret 422 has no code. Error responses never echo your request body.
Don’t confuse the business client secret above with the unrelated
client_secret field returned in the POST /api/v1/checkouts response body (and used in the wallet URL, e.g. ?clientSecret=...). That per-checkout value identifies a single checkout session for the wallet — it is not an Authorization credential and is not the same secret discussed here.Managing API keys
Business admins manage API keys in the Soap Dashboard under Developer → API Keys.- Shown once. The full key is displayed only right after you create it. Copy it into your server’s secret manager before closing the dialog. Afterwards the dashboard shows only a hint such as
key_...AbCd, with when the key was created and last used. Soap stores a one-way hash of the key, so neither you nor Soap can see it again. If you lose a key, create a new one. - Rotation with a 24-hour grace period. Creating a new key does not break your integration: every key you already had keeps working for up to 24 hours, then stops. A key that was already due to stop sooner, from an earlier rotation, keeps its earlier time. The dashboard shows when each old key stops. Deploy the new key within that window.
- Revoke. Revoking a key stops it immediately, grace period or not. Do this if a key may have leaked, or once your servers have moved to the new key.
{ "error": "API key not found." }.

