API reference
The Cryptonly merchant API is a JSON over HTTPS API. Call it from your backend only, never from a browser or mobile app.
New to the API? Start with the Quickstart.
Base URLs
Section titled “Base URLs”| Environment | Base URL |
|---|---|
| Production | https://api-merchant.cryptonly.net |
| Sandbox | https://sandbox-api-merchant.cryptonly.net |
The two environments are fully separate, with their own dashboards, API keys, and signing keys. See Sandbox environment.
Organizations and accounts
Section titled “Organizations and accounts”Your organization can hold several accounts, each with its own balances.
- API keys and webhook signing keys belong to an account. Create them under Accounts → account → Settings → Security. Requests authenticated with a key operate on that account.
- Default webhook URLs belong to the organization. Configure them under Settings → Integration.
- The API key determines the account, so requests never take an
accountId. To work with several accounts, use a separate key for each.
Authentication
Section titled “Authentication”Send your API key in the x-tenant-api-key header:
x-tenant-api-key: YOUR_API_KEYSee Authorization for creating keys and scopes.
Requests and responses
Section titled “Requests and responses”- Send request bodies as JSON with
Content-Type: application/json. - Create requests take an
orderId, your own reference and the idempotency key. - Errors return a JSON body with a stable
codeand a human-readablemessage. See HTTP status codes. - Each API key can make up to 200 requests per minute. Beyond that, the API returns
429.
The OpenAPI reference lists every endpoint with its request and response fields.
Related pages
Section titled “Related pages”AuthorizationAPI keys for server-to-server requests
OpenAPI referenceEvery endpoint and field
WebhooksPayment notifications sent to your server
HTTP status codesError format and codes