API errors and endpoints
Every error is an RFC 7807 problem document with a stable code. Branch on the code, show detail to people. Examples and the request console are in the API reference.
Error catalog
Authentication
| Code | HTTP | Meaning and what to do |
|---|---|---|
authentication_failed | 401 | The API key, session or wallet signature is missing, invalid, expired or not allowed for this endpoint. The detail says which. Send a valid API key as "Authorization: Bearer sk_..." for store endpoints, or sign in again in the dashboard. Do not retry with the same credentials. |
unsupported_chain | 422 | Sign-in was requested for a chain id that Stablevoy does not support. Switch the wallet to one of the networks listed by GET /v1/networks and request a new challenge. |
current_session | 409 | DELETE /v1/sessions/{id} was called with the session the request itself was made in. Sign out of this session with POST /v1/auth/logout, which also clears the browser cookies. |
wallet_key_public | 422 | The wallet is a public test account (Hardhat, Anvil or Ganache) whose private key anyone can read, so it cannot sign in: anyone could enter the account. Sign in with a wallet only you control. |
Request validation
| Code | HTTP | Meaning and what to do |
|---|---|---|
validation_failed | 400 | The request body, query or path does not match the schema. The issues list names each field and the problem. Fix the fields named in issues. Unknown fields are rejected too, so send only the documented ones. |
bad_request | 400 | The request could not be read, for example malformed JSON. Send a well-formed JSON body with "Content-Type: application/json". |
payload_too_large | 413 | The request body is larger than the API accepts (64 KB). Send a smaller body; no endpoint needs more. |
unsupported_media_type | 415 | The body is not JSON. Send the body as JSON with "Content-Type: application/json". |
invalid_address | 422 | A value is not a valid address: an EVM address is 0x followed by 40 hex characters, a Tron address is Base58 starting with T and has a valid checksum. Send the full address as your wallet shows it. |
Invoices and amounts
| Code | HTTP | Meaning and what to do |
|---|---|---|
invalid_amount | 422 | The amount is not a positive whole number of US cents. Send amountUsdCents as an integer, for example 1999 for $19.99. |
amount_below_minimum | 422 | The amount is below the store minimum or the platform minimum. limitUsdCents is the minimum that applies. Raise the amount to at least limitUsdCents, or lower the store minimum in the dashboard (not below the platform minimum). |
amount_above_store_limit | 422 | The amount is above the maximum set for this store. limitUsdCents is that maximum. Lower the amount, or raise the store maximum in the dashboard (up to the cap of the account, invoiceRange of the store shows the range that applies). |
amount_above_platform_cap | 422 | The amount is above the cap per invoice of this account: the platform cap, unless a higher or lower one was set for the account on request. limitUsdCents is the cap that applies. Split the payment, or ask for a higher cap for your account through the contact form, naming the largest single payment you need in US dollars. |
invalid_external_reference | 422 | The external reference (your order id) is empty or too long. Send a reference of 1 to 200 characters, or leave it out. |
invalid_invoice_filter | 400 | A list or summary filter is not valid: a date that is not YYYY-MM-DD, createdFrom after createdTo, an empty or too long search, or a summary with no period, with both a period and dates, or longer than 92 days. Send dates as YYYY-MM-DD with createdFrom not after createdTo, and a search of 1 to 200 characters. For a summary send either period or both dates, at most 92 days apart; ask for a longer range in parts. |
invalid_return_url | 422 | The return URL is not an absolute https URL without credentials, is too long, or points to an IP address, localhost or an internal name. Send a full https URL of your shop such as https://shop.example/order/123, at most 2048 characters. |
return_url_off_site | 422 | The return URL of the invoice is not on the store website: after paying, the buyer may only be sent back to a page of the store's own domain. Use a page of the store website, or another host of the same domain (for example api.shop.example next to shop.example). Check the website in the store settings. |
return_url_without_website | 422 | The invoice has a return URL, but the store has no website to check it against. Set the store website in the dashboard (store settings), or create the invoice without a return URL; the store default return URL is used then. |
conflict | 409 | The Idempotency-Key was already used with different parameters, or the object was changed by another request at the same time (for example a payment arrived while the invoice was being cancelled). Reuse a key only to retry the exact same request; use a new key for a new invoice. After a change at the same time, read the object again and decide on its current state. |
invoice_not_payable | 409 | The invoice no longer waits for a payment: it is paid, being confirmed, on hold, expired or cancelled. Read the invoice again for its status; do not send a payment for it from the payment page. |
invoice_not_cancellable | 409 | Only an invoice that is still waiting for its first payment can be cancelled. This one has a payment seen on chain, or it is paid, expired, underpaid or on hold. Nothing was changed. Read the invoice for its status and handle it as it is, for example refund the buyer yourself if the order is no longer wanted. |
invalid_invoice_lifetime | 422 | expiresInMinutes of an invoice, or the invoice lifetime of a store, is not a whole number of minutes from 15 to 10080 (7 days). Send a value within the bounds, or leave it out: an invoice then uses the store default, and a store without one the platform default. |
store_disabled | 422 | The store is disabled and cannot create invoices. Enable the store in the dashboard. |
open_invoice_limit_reached | 422 | The store already has as many unpaid invoices awaiting payment as it is allowed (GET /v1/limits, openInvoicesPerStore). Cancel invoices you no longer need or let them expire, then create the new one. |
currency_not_supported | 422 | The currency is not one of the supported ISO 4217 codes (GET /v1/currencies lists them). Price the invoice in a listed currency, or in USD with amountUsdCents. |
invalid_price | 422 | The amount is not a positive whole number of the smallest unit of its currency, or it is too large. Send amount as an integer in minor units: 1999 for 19.99 EUR, 1500 for 1500 JPY (GET /v1/currencies gives the exponent of each currency). |
invalid_exchange_rate | 422 | The exchange rate is not a plain decimal above 0 with at most 10 decimal places, or it is implausibly large. Send usdPerUnit as US dollars for one unit of the currency, for example "1.0834" for EUR. |
exchange_rate_unavailable | 503 | No usable exchange rate for the currency right now: the market rate is missing or older than allowed, and the store has no rate of its own for it. The detail names the currency. Retry later, price the invoice in USD, or set the store's own rate for that currency in the dashboard. GET /v1/currencies shows which currencies are usable. |
Subscriptions
| Code | HTTP | Meaning and what to do |
|---|---|---|
subscription_not_cancellable | 409 | The subscription is already cancelled or ended, so it cannot be cancelled. Nothing was changed. Read the subscription for its status; a cancelled or ended subscription takes no further periods. |
invalid_interval | 422 | interval is not one of day, week, month or year, or intervalCount is out of its range: day 1 to 365, week 1 to 52, month 1 to 24, year 1 to 5. Send a supported interval with a count in its range, for example month and 3 for a quarterly subscription. |
invalid_subscription_end | 422 | endsAfter and endsAt were both sent, endsAfter is not a whole number from 1 to 1000, or endsAt is not after the start of the first period. Send at most one of them: endsAfter for a number of periods, or endsAt for a date after startsAt. Leave both out for a subscription that runs until it is cancelled. |
invalid_subscription_start | 422 | startsAt is in the past or more than one year ahead. Leave startsAt out to start the first period now, or send a future moment within one year (for a trial). |
invalid_payment_window | 422 | paymentWindowMinutes is not a whole number of minutes from 15 to 10080 (7 days), or it is longer than the shortest possible period of the subscription. Send a window within the bounds and shorter than one period, or leave it out: each period invoice then uses the store default lifetime, and a store without one the platform default. |
subscriptions_unavailable_with_plugin | 409 | The store is connected to a plugin (WooCommerce, Easy Digital Downloads or WHMCS). Its webhooks go to the plugin, which does not handle subscriptions yet, so the store bills no subscriptions. Nothing was created. Create the subscriptions in a separate store whose webhooks go to your own code. |
store_has_subscriptions | 409 | The store bills running subscriptions, and the plugins do not handle subscriptions yet, so a plugin cannot be connected to it or get a key in it. Nothing was changed. Connect the plugin to a separate store, or cancel the subscriptions of this store first. |
Stores, API keys and webhooks
| Code | HTTP | Meaning and what to do |
|---|---|---|
invalid_store_name | 422 | The store name is empty or too long. Use 1 to 100 characters. |
store_limit_reached | 422 | The account already has as many stores as it is allowed. Use an existing store, archive one you no longer use (archived stores do not count), or ask us for more through the contact form. |
store_archived | 409 | The store is archived: it is read only and cannot create invoices, get keys, be connected or change its settings. Its data and invoices stay, and invoices issued before the archive still get paid. Restore the store in the dashboard first, or use another store. |
store_already_archived | 409 | The store is already archived. Nothing was changed. Read the store again; restore it if you want it back. |
store_not_archived | 409 | The store is not archived, so there is nothing to restore. Nothing was changed. Read the store again for its state. |
store_payout_address_not_set | 409 | The store has no payout address of its own for this network family: it already pays out to the account address. Nothing was changed. Read the store again: payoutSources says which address each family uses. |
store_archive_limit_reached | 422 | The account already keeps as many archived stores as it is allowed (maxArchivedStores in GET /v1/me). Restore an archived store you still need, or keep using the store instead of archiving it. |
no_networks | 422 | A store must accept payments on at least one network. Enable at least one network for the store. |
invalid_limits | 422 | The store invoice limits are not valid: below the platform minimum, above the cap of the account (the platform cap unless another one was set for the account), or the minimum is above the maximum. Pick limits inside the range of the account, minimum not above maximum. GET /v1/limits gives the platform range; a store with a cap set for its account shows it in invoiceRange. |
invalid_website_url | 422 | The store website is not an absolute https URL without credentials, or is too long. Send the shop address as https://..., at most 2048 characters. |
invalid_webhook_url | 422 | The webhook URL is not https, uses a port other than 443, contains credentials, uses an IP address or a local name, or is too long. Use a public https address with a domain name, such as https://shop.example/wp-json/stablevoy/v1/webhook. Deliveries to addresses that resolve to private networks are refused as well. |
webhook_not_configured | 422 | The action needs a webhook URL and the store has none. Set the webhook URL first, then send a test event or rotate the secret. |
webhook_paused | 409 | The store's webhook endpoint failed for a day and is paused; events wait for it and a single redelivery would only wait too. Fix the endpoint, then press Resume (POST /v1/stores/{id}/webhook/resume) or send a test event; a successful test resumes it. |
invalid_key_name | 422 | The API key name is empty or too long. Use 1 to 60 characters. |
key_limit_reached | 422 | The store already has as many active keys of this integration as it is allowed (GET /v1/limits, apiKeysPerStore): one per plugin, a few AI assistants, a few for your own code. Revoke a key you no longer use on the Integrations tab of the store, then create the new one. |
invalid_connect_request | 422 | The shop connection link is malformed: the shop, return and webhook addresses must be https on one public domain, and the return address must be the plugin settings page. Start the connection again from the plugin settings in WordPress (Connect to Stablevoy). Do not edit the link. |
invalid_connect_code | 400 | The connection code is unknown, expired, already used, or does not belong to this shop. Click Connect to Stablevoy in the plugin settings again. A code works once and for 10 minutes. |
store_linked_to_other_site | 409 | The store already sends its webhooks to another site, and a store serves one site. Create a new store for this shop, or disconnect the other site first: Disconnect in its plugin, or Disconnect next to that shop on the Integrations tab of the store. |
store_connected_other_platform | 409 | Another Stablevoy plugin on the same site (for example WooCommerce next to Easy Digital Downloads) is already connected to this store, and a store serves one plugin. Create a separate store for this plugin. |
Payout address
| Code | HTTP | Meaning and what to do |
|---|---|---|
payout_address_not_set | 422 | The account has no payout address for any network the store accepts, so payments would have nowhere to go. Set the payout address for the network family of an enabled network (EVM or Tron) in the dashboard, then create invoices. To check before going live, read networksWithoutPayout on GET /v1/store: when it lists every enabled network, invoices are refused. |
address_not_checksummed | 422 | The payout address has no valid checksum (EIP-55 mixed case on EVM networks, Base58Check on Tron), so a typo could not be detected. Copy the address exactly as your wallet shows it. |
payout_address_unacknowledged | 422 | The EVM payout address is not a regular wallet on every network (an EIP-7702 delegation or a smart contract wallet), and what is there now differs from what the account confirmed, or was never confirmed. The EVM networks are left out of new invoices while it stays that way; this error comes when the store has no other network to offer. Open the dashboard, review the payout address network by network and confirm it, or change it to a regular wallet, then create the invoice again. To check before going live, read evmPayoutStatus and evmNetworksBlocked on GET /v1/store; a store.payout_attention webhook tells when it changes. |
payout_profile_changed | 409 | What is at the payout address changed between the review (step 1) and the confirmation (step 2), so the signed message no longer describes it. Start the payout change again, review the address and sign the new message. |
payout_address_unverifiable | 503 | The payout address could not be checked on every EVM network right now, so it was not saved. Try again in a minute. |
payout_address_key_public | 422 | The payout address is a public test account (Hardhat, Anvil or Ganache, EVM or its Tron form) whose private key anyone can read: bots take anything sent to it within seconds. Use a payout wallet only you control. |
Networks and tokens
| Code | HTTP | Meaning and what to do |
|---|---|---|
unsupported_network | 422 | The network key is not one Stablevoy supports here. Use a key from GET /v1/networks that is enabled for the store. |
unsupported_token | 422 | The token is not accepted on that network. Use a token listed for the network in GET /v1/networks. |
networks_unavailable | 503 | Every network enabled for the store is degraded right now, so a payment could not be watched safely. Retry in a few minutes. GET /v1/health shows the state of each network. |
tron_transfer_invalid | 422 | The Tron transfer was refused: the signed transaction is not exactly the payment of this invoice, or the Tron network rejected it. The detail says why, for example not enough TRX for the network fee. Fix what the detail names, for example top up TRX in the paying wallet, and start the payment again from the payment page. |
tron_node_unavailable | 503 | The Tron node could not build or send the transfer right now, or answered with something that is not this payment. Nothing was sent. Try again in a minute, or pay by sending the exact amount to the address shown on the payment page. |
Contact form
| Code | HTTP | Meaning and what to do |
|---|---|---|
invalid_contact_topic | 422 | The topic is not one of the offered ones. Choose a topic from the form. |
invalid_contact_name | 422 | The name is empty or longer than 100 characters. Enter a name of 1 to 100 characters. |
invalid_contact_email | 422 | The email address is not valid, so we could not reply. Enter the address you want the reply at. |
invalid_contact_message | 422 | The message is shorter than 20 or longer than 5,000 characters. Write 20 to 5,000 characters. |
human_check_failed | 422 | The Cloudflare Turnstile check did not confirm a person, or its token was already used or minted for another form. Needed by every sign-in (the challenge step) and by the contact form. Let the check finish on the page and try again; reload the page if it keeps failing. If an ad or tracker blocker is on, allow challenges.cloudflare.com for this site. |
human_check_unavailable | 503 | The human check could not be verified right now, so the message was not accepted. Try again in a minute. |
General
| Code | HTTP | Meaning and what to do |
|---|---|---|
not_found | 404 | The resource or endpoint does not exist, or belongs to another account (we never reveal which). Check the id and the URL, and that the API key belongs to the right store. |
telegram_not_connected | 409 | Telegram notifications are not connected to this account, so there is nothing to change or disconnect. Nothing was changed. Press Connect Telegram on the Security page of the dashboard first. |
rate_limited | 429 | Too many requests from this client in a short time, too many sign-in attempts from this network in the last hour, the store created too many invoices in the last minute, or it used up its hourly allowance of test events or redeliveries. Wait and retry with backoff. The Retry-After header says how long. |
maintenance | 503 | Stablevoy is under maintenance. The answer comes from the web server in front of the API, so no request reached it and nothing was changed. Payments already sent on chain are safe and are credited afterwards. Retry after the Retry-After header (usually a few minutes). Show the customer that payments are paused for a moment instead of an error. |
internal_error | 500 | Something failed on our side. The error was logged and we are alerted. Retry later. For invoice creation, retry with the same Idempotency-Key so no duplicate is made. |
Endpoints
Invoices
Create invoices and read their status and payments. The main thing a shop integration does.
| POST | /v1/invoicesCreate an invoice | API key |
| GET | /v1/invoicesList invoices | API key |
| POST | /v1/stores/{storeId}/invoicesCreate an invoice for a store (dashboard) | Merchant session |
| GET | /v1/stores/{storeId}/invoicesList invoices of a store (dashboard) | Merchant session |
| GET | /v1/invoices/summarySummarize invoices | API key |
| GET | /v1/invoices/{invoiceId}Get an invoice | API key or Merchant session |
| POST | /v1/invoices/{invoiceId}/cancelCancel an invoice | API key or Merchant session |
| GET | /v1/stores/{storeId}/checkout-funnelPayment page funnel of a store | API key or Merchant session |
| GET | /v1/store/checkout-funnelPayment page funnel of the API key's store | API key |
| GET | /v1/invoices/{invoiceId}/checkout-trailPayment page trail of an invoice | API key or Merchant session |
Subscriptions
Subscriptions billed by invoice: every period the buyer gets an ordinary invoice to pay, made on schedule.
| POST | /v1/subscriptionsCreate a subscription | API key |
| GET | /v1/subscriptionsList subscriptions | API key |
| POST | /v1/stores/{storeId}/subscriptionsCreate a subscription for a store (dashboard) | Merchant session |
| GET | /v1/stores/{storeId}/subscriptionsList subscriptions of a store (dashboard) | Merchant session |
| GET | /v1/subscriptions/{subscriptionId}Get a subscription | API key or Merchant session |
| POST | /v1/subscriptions/{subscriptionId}/cancelCancel a subscription | API key or Merchant session |
Checkout
Public data behind the hosted payment page, and the Tron payment it builds and sends for a mobile wallet.
| GET | /v1/checkout/invoices/{invoiceId}Payment page data | Public |
| POST | /v1/checkout/invoices/{invoiceId}/stepsRecord a step of the payment page | Public |
| POST | /v1/checkout/invoices/{invoiceId}/payout-mismatchReport a payout wallet the shop did not vouch for | Public |
| POST | /v1/checkout/invoices/{invoiceId}/tron/transferBuild the Tron payment for a mobile wallet | Public |
| POST | /v1/checkout/invoices/{invoiceId}/tron/broadcastSend the signed Tron payment | Public |
Stores
Stores with their networks, limits, website and webhook.
| POST | /v1/stores/{storeId}/payout-address/challengeStart a store payout wallet change | Merchant session |
| POST | /v1/stores/{storeId}/payout-address/confirmConfirm a store payout wallet change | Merchant session |
| POST | /v1/stores/{storeId}/payout-address/remove/challengeStart using the account payout wallet again | Merchant session |
| POST | /v1/stores/{storeId}/payout-address/remove/confirmConfirm using the account payout wallet again | Merchant session |
| GET | /v1/storesList stores | Merchant session |
| POST | /v1/storesCreate a store | Merchant session |
| GET | /v1/storeThe API key's store | API key |
| GET | /v1/stores/{storeId}Get a store | API key or Merchant session |
| PATCH | /v1/stores/{storeId}Update a store | Merchant session |
| POST | /v1/stores/{storeId}/archiveArchive a store | Merchant session |
| POST | /v1/stores/{storeId}/restoreRestore an archived store | Merchant session |
| POST | /v1/connect/grantsApprove connecting a shop | Merchant session |
| POST | /v1/connect/exchangeExchange a connection code | Public |
| POST | /v1/connect/app-grantsApprove an app on this computer | Merchant session |
| POST | /v1/connect/app-exchangeExchange an app connection code | Public |
Currencies
Currencies an invoice can be priced in, the market exchange rates, and a store's own fixed rates.
| GET | /v1/currenciesList currencies and market rates | Public |
| GET | /v1/stores/{storeId}/currenciesList currencies and rates of a store | API key or Merchant session |
| POST | /v1/stores/{storeId}/exchange-ratesSet the store's own rate | Merchant session |
| DELETE | /v1/stores/{storeId}/exchange-rates/{currency}Remove the store's own rate | Merchant session |
API keys
Keys for server-to-server calls, one store each.
| GET | /v1/stores/{storeId}/api-keysList API keys | Merchant session |
| POST | /v1/stores/{storeId}/api-keysCreate an API key | Merchant session |
| DELETE | /v1/stores/{storeId}/api-keys/{keyId}Revoke an API key | Merchant session |
| DELETE | /v1/store/api-keys/currentRevoke the calling API key | API key |
Webhooks
Signing secret, test events, delivery history and redelivery.
| POST | /v1/stores/{storeId}/webhook-secret/rotateRotate the webhook secret | Merchant session |
| POST | /v1/stores/{storeId}/webhook/testSend a test webhook | Merchant session |
| POST | /v1/stores/{storeId}/webhook/resumeResume a paused webhook endpoint | Merchant session |
| GET | /v1/stores/{storeId}/webhook/limitsGet webhook action limits | Merchant session |
| GET | /v1/stores/{storeId}/webhook-eventsList webhook events | Merchant session |
| GET | /v1/stores/{storeId}/webhook-events/{eventId}Get a webhook event | Merchant session |
| POST | /v1/stores/{storeId}/webhook-events/{eventId}/redeliverRedeliver a webhook event | Merchant session |
Account
The signed-in merchant, setup progress and the payout wallet.
| POST | /v1/key-leaks/{leakId}/dismissDismiss a leak notice | Merchant session |
| POST | /v1/telegram/linkStart connecting Telegram | Merchant session |
| DELETE | /v1/telegram/linkDisconnect Telegram | Merchant session |
| PATCH | /v1/telegram/settingsChoose what goes to Telegram | Merchant session |
| GET | /v1/meCurrent account | Merchant session |
| GET | /v1/me/onboardingSetup progress | Merchant session |
| POST | /v1/me/payout-address/challengeStart a payout wallet change | Merchant session |
| POST | /v1/me/payout-address/confirmConfirm a payout wallet change | Merchant session |
| GET | /v1/unmatched-transfersList unmatched transfers | API key or Merchant session |
| POST | /v1/unmatched-transfers/{transferId}/assignAssign an unmatched transfer to an invoice | Merchant session |
Auth
Sign-In with Ethereum and sessions for the dashboard and apps.
| POST | /v1/auth/siwe/challengeStart sign-in | Public |
| POST | /v1/auth/siwe/verifyFinish sign-in | Public |
| POST | /v1/auth/refreshRefresh the session | Public |
| POST | /v1/auth/logoutSign out | Public |
| GET | /v1/sessionsList sessions | Merchant session |
| DELETE | /v1/sessions/{sessionId}Sign out a session | Merchant session |
| POST | /v1/sessions/revoke-othersSign out all other sessions | Merchant session |
System
Health, limits, pricing, networks, this document and the contact form.
| GET | /v1/healthService health | Public |
| GET | /v1/limitsPlatform limits | Public |
| GET | /v1/pricingPricing | Public |
| GET | /v1/networksNetworks and tokens | Public |
| GET | /v1/errorsError catalog | Public |
| GET | /v1/openapi.jsonOpenAPI document | Public |
| POST | /v1/contactContact the team | Public |
Use it in other tools
In Postman: Import, then drop both files, or Import, Link and paste the OpenAPI URL. Put your API key into the apiKey variable. Insomnia, Bruno and Swagger UI import the same URL. Every error code is explained in the error catalog.