AI agent? Open an account with POST /api/v1/merchant/signup (no captcha) or connect over MCP: MCP for AI agents
API key and first request
Get a key in the cabinet
Partner cabinet → Integration → “Get API key”. The key looks like smk_abcdefghij_plus48chars and is shown once. If it is lost, issue a new one: the previous key becomes invalid immediately.
Add one header
Authorization: Bearer your_key.
Verify access
Request the balance. A JSON response with data means the key was accepted.
{
"data": [
{
"asset_id": "usdt", // always usdt — there is no other balance
"available_atomic": "15000000", // 15 USDT in minor units (6 decimals)
"available": "15", // the same value in decimal form
"held_atomic": "0", // reserved for unfinished payouts
"held": "0"
}
]
}
If the request failed
Response
Cause
401 unauthorized
The key is missing, contains a space, or is truncated. Bearer must be followed by the full smk_… identifier.
401 wrong_key_type
An exchange Partner API key spx_… was sent instead of the merchant key smk_… (Integration).
401 key_inactive
The key was revoked: a new key was issued, but the request still uses the previous one.
Five rules
Most integration errors come from breaking one of these rules.
1. Send amounts as strings
Pass either amount — a decimal string: "0.001", "15" — or amount_atomic — an integer in minor units: "100000" for 0.001 BTC. Use exactly one field. Responses always include both forms: amount sits next to amount_atomic.
example
"amount": "0.001" // valid
"amount_atomic": "100000" // also valid
// both at once — 422
2. Take asset_id only from /assets
Allowed codes: usdt, btc, xmr. Arbitrary values and blockchain-explorer ids are rejected with 422.
A unique attempt id. If the connection drops and the result is unknown, repeat the request with the same key: the original result is returned and a second operation is not created. Required for POST /invoices, POST /payments, POST /payouts/preview, POST /payouts.
example
Idempotency-Key: order-42-payment // first attempt → 201, created
Idempotency-Key: order-42-payment // retry → 200, same resource
Idempotency-Key: order-42-payment // different amount → 409 conflict
4. Empty fields are omitted
Null and empty strings are not included. An unpaid payment has no actual_amount, credited_amount, or fee. Check whether the key exists, not its value.
expired does not mean the transfer will never arrive. The address is monitored for about 6 more hours, and a late transfer is credited. Final statuses with a credit: confirmed, confirmed_underpaid, confirmed_overpaid.
Scenarios
Each scenario covers the full cycle: request order, response shape, and field meaning. Comments in JSON examples are for explanation and are not present in real responses.
Accepting payments
Customer pays BTC for a 60 USD order
Order order-42. You need about 60 USDT; at a BTC price of about 60,000 the expected customer amount is 0.001 BTC.
1
Get the list of available assets
The response returns the asset code and decimals — the number of digits after the decimal point.
{
"data": [
{
"asset_id": "btc", // ← use this in later requests
"symbol": "BTC", // for display to the user
"network": "bitcoin", // used in payouts
"decimals": 8, // 1 BTC = 100000000 atomic units
"price_usd": "60000", // indicative, not for quoting
"payout_min_usd": "1.5" // payout minimum in USD for this coin; follows the network fee
},
{
"asset_id": "usdt",
"symbol": "USDT",
"network": "TRON",
"decimals": 6,
"price_usd": "1.00"
}
]
}
2
Lock the rate for 10 minutes
Locks the rate while the customer is on the payment page. No payment or address is created on this step: only a quote is calculated. The response is the USDT amount to be credited for 0.001 BTC.
Expected BTC amount from the customer. Sent as a string, not a number.
Idempotency-Key
Optional: no operation is created. You may send it to reuse the same quote.
response
{
"data": {
"credit_lock_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
// ← save for the next step
"asset_id": "btc",
"expected_amount": "0.001", // expected amount from the customer
"expected_amount_atomic": "100000",
"credit_usdt": "59.4", // ← amount that will be credited
"credit_usdt_atomic": "59400000",
"expires_at": "2026-08-11T17:20:00+00:00"
// ← after this time credit-preview is invalid
}
}
Show the customer expected_amount — how much BTC to send.
3
Create the payment and get the address
This step creates the payment and returns the deposit address. Do not send the amount in this request — it is already set in credit-preview in step 2.
Id from the credit-preview response. If the lock has expired, the API returns 422 — request a new preview.
external_id: "order-42"
Your order number. Used to find the payment later and to avoid two payments for one order.
Idempotency-Key
Required. Use a stable unique value, for example the order number with a suffix.
response
{
"data": {
"payment_id": "pay_01HZX...", // ← id for status checks
"external_id": "order-42", // order number from the request
"asset_id": "btc",
"expected_amount": "0.001",
"credit_usdt": "59.4",
"status": "awaiting_deposit", // waiting for the transfer
"channel": "api",
"deposit_address": "bc1qexampledepositaddress000000000",
// ← address to show the customer
"expires_at": "2026-08-11T18:00:00+00:00",
"created_at": "2026-08-11T17:00:00+00:00"
}
}
If the network requires a memo, the response includes deposit_memo. A transfer without the memo will not be credited — show both fields.
4
Wait for payment
Poll the payment every 10–30 seconds. Status follows awaiting_deposit → detected → processing → confirmed.
Tell the customer the network is TRC20. USDT sent on another network will not be credited to this address.
Customer sent less than requested
0.001 BTC was expected, 0.0009 arrived — for example the customer wallet deducted the network fee from the amount.
1
Check the payment
If less than expected_amount arrived but the amount is still enough to credit, status is confirmed_underpaid and credited_amount is below the quote. If the amount is too small, nothing is credited.
{
"data": {
"payment_id": "pay_01HZX...",
"status": "expired", // window expired
"asset_id": "btc",
"expected_amount": "0.001",
"deposit_address": "bc1qexampledepositaddress000000000",
"expires_at": "2026-08-11T18:00:00+00:00"
// actual_amount and credited_amount are absent — no transfer arrived
}
}
2
Customer paid late
If the transfer arrives in the extra monitoring window, the payment still moves to confirmed. Do not delete the order on expired: mark it overdue and keep polling.
Do not issue a new address immediately after expired: the customer may already be sending to the previous one. We still wait for the transfer for another 6 hours.
Permanent address per customer (static wallet)
An address that never changes: give one to each of your users (customer_ref) or put yours into a plugin. Any amount sent to it is credited to your balance as its own payment, less the fee. No invoice and no amount beforehand.
1
Get or create the address
The same asset, network and customer_ref always return the same address: 201 the first time, 200 after. Safe to call on every page view. Networks: GET /static-addresses/networks.
USDC or USDT on Polygon. Also: USDT on TRC20, ERC20, BEP20.
customer_ref
Your user id. Optional: without it you get one address of the store for that network.
label
Optional, up to 120 characters: your name for the address. Returned in label and in the static_deposit.* webhooks; a later request with another label renames it.
btc · ltc · eth · trx
Coins: asset btc, ltc, eth (Ethereum) or trx (TRON). Any amount worth from min_amount (USD) is credited in USDT at the rate when the network confirms the transfer, less the network fee and fee_bps; conversion is market_rate in the address and in /networks. An EVM address also takes ETH, a TRON address TRX.
Show the customer the coin and the network. An EVM address (0x…) is the same on every EVM network: a supported coin of another EVM network in the networks list is credited too. Transfers under min_amount are recorded but not credited.
2
Receive the credit
Each confirmed transfer is a separate payment with status confirmed and a payment.credited webhook (signed as usual). The static_address block names the address, your customer_ref and the transaction on its network.
A transfer is credited once (network + transaction + log index). Transfers of an address: GET /static-addresses/{address_id}/deposits.
3
Webhooks of the transfer
Besides payment.credited, every transfer to a permanent address sends static_deposit.detected (seen on the network, still confirming) and then static_deposit.credited (on your balance). Endpoints subscribed to payment.credited get both.
Key points
static_deposit.detected
A transfer to a permanent address was seen on the network and is waiting for confirmations (not credited yet).
data
static_address_id, address, customer_ref, label, network, token, amount, tx_hash, explorer_url (the sender network, not NEAR).
static_deposit.credited
Only in static_deposit.credited: payment_id, credited_amount and fee. Credit your user here.
price_usd · amount_usd · network_fee
For a coin (conversion market_rate): amount is in the coin; price_usd is the rate it was credited at, amount_usd its worth, network_fee what the network costs, credited_amount the USDT you got.
Do not treat a permanent address as an invoice: there is no expected amount and no expiry. Credit your user with credited_amount.
Only the coins on the networks list are detected. Any other token sent to the address is not credited automatically: write to support to recover it.
Invoices
A USD invoice with a hosted pay page. The customer picks a network; you are credited in USDT. USDT on TRC20, ERC20 and BEP20 is offered at any amount; BTC, ETH, LTC and TRX can also be offered on smaller invoices when the network fee allows; other coins, on invoices from $8.
A 15 USD invoice paid in USDT
Order order-15. The merchant creates a USD invoice and sends the customer a pay page link.
1
Create the invoice
The invoice locks the USD amount, who pays the fee, and returns pay_url. No address yet.
Order amount in USD as a string — not amount_atomic. Prices in another currency: send price_amount + price_currency instead (below).
fee_on
merchant — you pay the fee, the customer sees 15.00. customer — the customer pays the fee.
Idempotency-Key
Required. A retry with the same key returns the same invoice.
partner_ref
Optional. The Partner ID of the integrator who set up your integration (SnapEX Pay referral program). It binds your account to that partner once; leave it out if you integrate yourself.
success_url
Optional, http(s), up to 2048 characters. Where the "Back to the store" button on the payment page leads after payment. If not set, the store URL from the cabinet is used. There is no automatic redirect, only the button: confirm the order by the invoice.paid webhook, not by a visit to this URL.
cancel_url
Optional, http(s), up to 2048 characters. Where the same button leads if the invoice expired or was not paid in full (partially_paid). If not set, success_url is used, then the store URL from the cabinet.
expires_in
Optional. Invoice lifetime in seconds: 60 to 86400, default 1800 (30 minutes). The expiry time is the expires_at field in the response.
description
Optional, up to 255 characters. Order description: the customer sees it on the payment page; it is returned in the description field.
asset_id
Optional. A method code from methods (for example, usdt.trc20): the invoice is created with this network and address already selected, as after step 2. Without it the customer picks the network on pay_url.
environment
Optional. live (default) — a real invoice, test — the test contour.
lock_method
Optional, true or false (default false). Only together with asset_id; without it — error 422. The customer cannot change the coin on pay_url: the payment page has no "Change method" button and no list of other coins. You can still change the coin yourself with POST /invoices/{id}/methods (step 2). The response has the method_locked field.
price_amount, price_currency
Instead of amount_usd, for prices in another currency: price_amount (a string) and price_currency (ISO 4217 code: EUR, GBP, RUB…). SnapEX Pay converts at its current rate (ECB, refreshed hourly) when the invoice is created; amount_usd in the response is the converted amount, price_amount, price_currency and price_rate (USD per 1 unit) keep what was used. A retry with the same Idempotency-Key returns the same invoice, even if the rate has moved. No rate for the currency — error 422 on price_currency. Current rates: GET /rates?currency=EUR.
A code from methods: usdt.trc20, usdt.erc20 or usdt.bep20 (paid to our own addresses). USDT on other networks (usdt_solana, usdt_ton, …) and other coins come from the same list. BTC, ETH, LTC and TRX can also be in methods on smaller invoices when the network fee allows; other coins are in methods on invoices from $8 (test invoices — at any amount).
payment.address
Show only this address and amount. Memo and Tag are not used.
method_locked
true — the invoice was created with lock_method: the customer cannot change the coin on pay_url. This call with your API key still works for such an invoice.
An underpay does not close the invoice: status underpaid, same address waits for the rest (USDT — 72 hours). If the rest does not arrive in time, the invoice ends as partially_paid.
Note
Do not name internal routes in the customer UI. The pay page shows only address, amount and network.
There is no refund API. A second completed transfer is a separate credit, not a reversal of the first.
A 699 RUB invoice paid by SBP QR
Order order-16. A shop priced in roubles: the customer pays by QR from a Russian bank app, the merchant is credited USDT.
1
Create the invoice locked to roubles
pay_url opens straight on the SBP QR for exactly 699 RUB: no method list, no conversion on the customer side.
Roubles by SBP QR. Off by default for every merchant; live invoices: switched on per merchant by SnapEX support on request (t.me/snapex_pro), the status is in the cabinet: Invoices → «RUB by SBP QR» — until then error 422 «RUB by QR is not enabled for this merchant». It is also offered in methods of any invoice of such a merchant (the USD amount at the provider rate).
price_amount, price_currency
A RUB price is paid exactly (kopecks round up to a whole rouble); with fee_on customer the service fee is added on top. Any other currency or amount_usd is paid at the provider rate. Outside the provider limits (per payment) — error 422 with the limits, no invoice is created.
lock_method
Optional. With asset_id rub the customer sees only the QR. Without it the customer may still pick rub or a coin on pay_url.
customer_ip
Optional. The buyer’s IP: the QR provider wants it. Without it, the IP of your request is passed.
payment.rub
amount — roubles to pay; link — the SBP link (qr.nspk.ru): a QR of it and the «Open in bank app» button; page true — a payment page link instead; image — a QR picture when there is no link; rub_per_usdt — the rate the payment is credited at. address holds the same QR content.
credit_usd
USDT you get: the roubles at rub_per_usdt (the provider’s commission and conversion cost are already in it) less the SnapEX Pay service fee.
The QR lives 20 minutes (the invoice is held open at least that long). If it runs out unpaid while the invoice is open, the customer gets a new QR on pay_url at the then current rate.
2
The bank confirms the payment
The credit comes only from the QR provider’s confirmation, once: repeated notifications change nothing.
The QR carries the amount: a payment of another amount is held for manual review and does not close the invoice. A provider that confirms a partial payment closes the invoice as partially_paid.
Note
Do not show the customer the provider name or the rate: the page shows the amount in roubles, the QR and the bank button.
There is no refund API for roubles. Only rub: no payouts in roubles.
Payouts
Outbound transfers from your USDT balance.
Send the customer 15 USDT as BTC
amount is how much is debited from your balance, not how much the recipient gets. The recipient amount is returned by preview.
1
Check available balance
Use available, not available plus held. Held is reserved for unfinished payouts and cannot be spent.
USDT debit from your balance. This is not the recipient amount.
destination_asset_id
Recipient asset. Code from GET /assets.
destination_network
Recipient network. For BTC — bitcoin. Take it from network in GET /assets.
destination_address
Recipient address. Verify it before sending: the transfer cannot be cancelled.
Idempotency-Key
Required. Use a separate key for preview.
response
{
"data": {
"preview_id": "c3d4e5f6-7890-abcd-ef12-34567890abcd",
// ← id for the next step
"from_asset_id": "usdt",
"from_amount": "15", // amount debited
"to_asset_id": "btc",
"to_amount": "0.000221", // ← amount the recipient gets
"fee_amount": "0.000019", // fee in BTC, already included
"expires_at": "2026-08-11T17:20:00+00:00"
// ← execute before this time
}
}
Show to_amount to the user as the amount they will receive. If the amount is not acceptable, do not execute the preview: it expires at expires_at.
3
Execute the payout
This step debits and sends. Repeat the address and network in the request — this prevents substitution between steps.
Transfer failed; the reserve is usually released back to the balance.
status: manual_review
Result is ambiguous. Wait for review; do not create another payout.
transaction_hash / transaction_url
Transaction on the recipient's network and its explorer link (never NEAR). The field is absent until the hash is known; it can appear a few minutes after completed — read the payout again.
The operation already existed; the original object is returned.
response
{
"data": {
"payout_id": "payout_01HZX...", // ← same id as in the first response
"external_id": "wd-77",
"debit_amount": "15",
"status": "processing", // status may have changed while waiting
"created_at": "2026-08-11T17:10:00+00:00"
}
}
HTTP 201 — the operation was created in this request. HTTP 200 — it already existed. Both codes mean success.
2
If parameters changed
Repeating the same key with a different amount or address is rejected. This prevents parameter mismatch.
Conflict: the key is already bound to another operation.
What to do
If this is a new payout, use a new Idempotency-Key.
response
{
"error": {
"code": "conflict",
"message": "Idempotency-Key was used with different parameters."
}
}
Note
Generate the key once and store it with the order. Generating a new key before every send disables duplicate protection.
On HTTP 429, retry with the same key after a few seconds.
Webhooks
When an invoice, deposit, payout, conversion or the balance changes, SnapEX sends a POST request to your URL. A webhook is a signal, not the source of truth: verify the signature and, for important decisions, re-read the object via the API.
Setup
Set the URL in the cabinet
Partner cabinet → Integration → “Webhook” card: enter the URL and press “Save”. One URL per account; it receives every event type from the table below.
Store the signing secret
On the first save the cabinet shows the secret whsec_… once. Keep it on your server only. Changing the URL later keeps the same secret.
URL requirements
An absolute https:// URL with a public host: no login:password in the URL, no localhost, and the host must not resolve to a private or reserved IP. The URL is checked on save and again before every delivery attempt.
What arrives
Header
Meaning
Webhook-Id
Unique event id (UUID), equal to id in the body. It does not change on retries or manual replays — deduplicate by it.
Webhook-Timestamp
Unix time in seconds when this attempt was sent. Every retry carries a fresh value and a fresh signature.
Webhook-Signature
v1= followed by the lowercase hex HMAC-SHA256 of the string “{Webhook-Timestamp}.{raw body}”. The key is the whole secret, whsec_ prefix included.
{
"id": "6f1c2a8e-3b4d-4f5a-9c7e-1a2b3c4d5e6f", // = Webhook-Id
"type": "invoice.paid", // event type, see the table below
"created_at": "2026-09-25T12:00:10+00:00", // when the event happened
"data": { // the object at the moment of the event
"invoice_id": "INV-8K2M1Q0P",
"environment": "live",
"amount_usd": "15.00",
"charge_usd": "15.00",
"credit_usd": "13.85",
"status": "paid",
"external_id": "order-15",
"paid_at": "2026-09-25T12:00:10+00:00"
}
}
data depends on the type: invoice.* — the invoice in the same shape as GET /invoices/{id} (attempts is empty, the current attempt is in payment); payment.* — the deposit (payment_id, external_id, status, amounts); payout.* — the payout (payout_id, external_id, status, amounts); conversion.* — the conversion (conversion_id, status, amounts); balance.changed — asset_id, entry_type, available_atomic and held_atomic after the change. static_deposit.* — the transfer to a permanent address (static_address_id, address, customer_ref, label, network, token, amount, tx_hash, explorer_url; credited_amount and fee after the credit).
Event types
Event
Meaning
invoice.created
Invoice created; no payment method selected yet (open).
invoice.awaiting
A payment method was selected and the address issued (awaiting).
invoice.underpaid
Part of the amount arrived; the same address waits for the rest (underpaid).
invoice.paid
The full amount was paid and credited (paid, final). The only signal to ship the order.
invoice.partially_paid
The customer paid only part, the top-up window ended, the received part was credited to you (partially_paid, final).
invoice.expired
The invoice window ended without payment (expired, final).
invoice.extra_payment
Another transfer arrived after the invoice was paid; it is credited separately.
payment.created
A deposit was created.
payment.detected
The transfer was seen on the network but not credited yet.
payment.credited
The deposit was credited (one of the confirmed* statuses).
payment.expired
The deposit window expired.
payout.created
A payout was created and funds were reserved.
payout.processing
The payout is being sent.
payout.sent
Our transfer is on the recipient's network: transaction_url links it in the explorer; completed follows on confirmation.
payout.completed
Funds were delivered to the recipient. transaction_hash and transaction_url — the transaction on the recipient's network, when already known; otherwise read GET /payouts/{id} a few minutes later.
payout.failed
The payout failed.
conversion.completed
The conversion completed.
conversion.failed
The conversion failed fully or partially.
balance.changed
A balance entry was recorded: credit, reserve or debit.
static_deposit.detected
A transfer to a permanent address was seen on the network and is waiting for confirmations (not credited yet).
static_deposit.credited
A transfer to a permanent address was credited to the balance: credited_amount and fee are set.
Ship the order only on invoice.paid — it is sent only when the full amount was paid. invoice.underpaid and invoice.partially_paid mean the amount is incomplete.
Invoices created with environment=test are simulated: they go through the same statuses and send the same webhooks (data.environment = "test"), but never change the real balance.
Delivery and retries
Success is any 2xx response. Any other code, a timeout or a network error is a failure. The response body is not interpreted.
Timeouts: 5 s to connect, 15 s for the whole request.
Redirects are not followed: 301/302 counts as a failure. Set the final URL.
Up to 5 attempts per event: the first one, then retries about 10 s, 1 min, 5 min and 15 min after each failure. After the fifth failure automatic delivery stops. To invoice.created, invoice.awaiting, invoice.expired, payment.created, payment.expired a 4xx response (except 408, 425 and 429) is final and is not retried; all other events are retried on any non-2xx. The code is shown in “Webhook deliveries”.
The “Webhook deliveries” card on the same page lists event, HTTP code or error, time and attempt number. The “Replay” button sends the event again with the same Webhook-Id.
Delivery is at-least-once: one event may arrive several times, and events may arrive out of order (a retried event can come after a newer one).
Signature verification
Read the raw request body as bytes, before JSON parsing. Re-serialized JSON will not match the signature.
Compute HMAC-SHA256 over “{Webhook-Timestamp}.{raw body}” with your whsec_… secret as the key and hex-encode it.
Compare “v1=” + hex with the Webhook-Signature header using a constant-time function: hash_equals, crypto.timingSafeEqual, hmac.compare_digest.
Reject a Webhook-Timestamp that differs from your clock by more than 5 minutes (recommended). Retries carry a fresh timestamp, so this does not break them.
PHP
<?php
$secret = getenv('SNAPEX_WEBHOOK_SECRET'); // whsec_… from the cabinet
$body = file_get_contents('php://input'); // raw body, before JSON parsing
$timestamp = $_SERVER['HTTP_WEBHOOK_TIMESTAMP'] ?? '';
$signature = $_SERVER['HTTP_WEBHOOK_SIGNATURE'] ?? '';
$expected = 'v1='.hash_hmac('sha256', $timestamp.'.'.$body, $secret);
if (! ctype_digit($timestamp)
|| abs(time() - (int) $timestamp) > 300
|| ! hash_equals($expected, $signature)) {
http_response_code(400);
exit;
}
$event = json_decode($body, true);
// skip if this Webhook-Id was already processed; do the heavy work in a queue
http_response_code(200);
Node.js
const crypto = require('crypto');
const express = require('express');
const app = express();
const secret = process.env.SNAPEX_WEBHOOK_SECRET; // whsec_… from the cabinet
// raw body, before JSON parsing
app.post('/hooks/snapex', express.raw({ type: 'application/json' }), (req, res) => {
const timestamp = req.get('Webhook-Timestamp') || '';
const signature = Buffer.from(req.get('Webhook-Signature') || '');
const expected = Buffer.from('v1=' + crypto.createHmac('sha256', secret)
.update(timestamp + '.').update(req.body).digest('hex'));
const ok = /^\d+$/.test(timestamp)
&& Math.abs(Date.now() / 1000 - Number(timestamp)) <= 300
&& signature.length === expected.length
&& crypto.timingSafeEqual(signature, expected);
if (!ok) return res.sendStatus(400);
const event = JSON.parse(req.body.toString('utf8'));
// skip if this Webhook-Id was already processed; do the heavy work in a queue
res.sendStatus(200);
});
Python
import hashlib, hmac, os, time
from flask import Flask, abort, request
app = Flask(__name__)
SECRET = os.environ["SNAPEX_WEBHOOK_SECRET"].encode() # whsec_… from the cabinet
@app.post("/hooks/snapex")
def snapex_webhook():
body = request.get_data() # raw body, before JSON parsing
timestamp = request.headers.get("Webhook-Timestamp", "")
signature = request.headers.get("Webhook-Signature", "")
expected = "v1=" + hmac.new(SECRET, timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
if not (timestamp.isascii() and timestamp.isdigit()) \
or abs(time.time() - int(timestamp)) > 300 \
or not hmac.compare_digest(expected.encode(), signature.encode()):
abort(400)
event = request.get_json()
# skip if this Webhook-Id was already processed; do the heavy work in a queue
return "", 200
Handler checklist
Verify the signature over the raw body with a constant-time comparison; reply 400 if it does not match.
Reject requests with a Webhook-Timestamp older than 5 minutes.
Store processed Webhook-Id values and ignore repeats. Do not rely on order: compare the status in the event with what you already have.
Reply 2xx quickly, well within 15 seconds, and do the heavy work asynchronously.
After a webhook you may re-read the object via the API to confirm it: GET /invoices/{id}, GET /payments/{id}, GET /payouts/{id}.
Statuses
The “final” badge means the status will not change. The only exception is expired deposits: a late transfer can still arrive.
Deposits
Status
Meaning
What to do
awaiting_deposit
Address issued, waiting for the transfer
Show the customer the address and amount
detected
Transfer seen on the network, not credited yet
Wait. Do not close the order
processing
Converting to USDT
Wait
confirmed
Expected amount arrived, funds credited
Close the order
final
confirmed_underpaid
Less than expected arrived, within the allowed range
Check credited_amount and decide if it is enough
final
confirmed_overpaid
More than expected arrived, credited per credit-preview
Close the order. Contact support about the excess
final
confirmed_mismatch
Kept for compatibility
Not set on new payments
final
manual_review
Manual review required
Wait for review; do not create a second payment
expired
Payment window expired, address is monitored for ~6 h more
Do not delete the order; keep polling
failed
Provider-side failure
Create a new payment
final
cancelled
Payment cancelled
Create a new payment
final
refunded
Refunded by the provider
Reconcile the balance; contact support if it does not match
final
Invoices
Status
Meaning
What to do
open
Invoice created, payment method not selected
Give the customer pay_url or select asset_id yourself
awaiting
Address issued, waiting for the transfer
Show the address and amount; poll the status
underpaid
Part of the amount arrived; same address
Ask the customer to send the rest to this address
paid
The first full transfer was credited
Close the order
final
partially_paid
The customer paid only part, the top-up window ended, the received part was credited to you
Do not ship as a paid order; settle the rest with the customer
final
expired
The invoice window ended
Create a new invoice
final
Payouts
Status
Meaning
What to do
reserved
Funds reserved for the payout
Wait
submitting
Submitted to the provider
Wait
processing
Provider is sending on-chain
Wait
completed
Funds delivered to the recipient
Done
final
manual_review
Result is ambiguous
Do not create another payout; wait for review
failed
Transfer failed; the reserve is usually released
Check the balance; retry with a new Idempotency-Key if needed
final
Errors
A successful response is always in data. An error is always in error. There are no other envelopes.
error shape
{
"error": {
"code": "validation_error", // machine-readable code, see the table below
"message": "The request is invalid.",
"details": { // not always present
"destination_address": ["The destination address field is required."]
// key is the field that failed validation
}
}
}
HTTP
code
When
What to do
401
unauthorized
Key missing or invalid
Check the Authorization: Bearer smk_… header in full, with no spaces or line breaks
401
wrong_key_type
A Partner (exchange) API key spx_… was sent
Use the merchant key smk_… from the cabinet: Integration. The spx_ key from the Partner API page does not work here
401
key_truncated
The key is cut off or masked (…, *, too short)
Copy the full smk_… key (63 characters) from Integration, not the masked value
401
key_inactive
Key revoked
The previous key was revoked. Use the current key from the cabinet
401
key_expired
Key expired
Issue a new key
404
not_found
Id not found or belongs to another merchant
Use payment_id or payout_id from your own response
409
conflict
Idempotency-Key is bound to another operation, or external_id is already used
For a new operation use a new key. For a retry use the same key and the same parameters
422
validation_error
Invalid fields, expired credit-preview, insufficient balance, or missing Idempotency-Key
See details for the field and the reason
429
rate_limited
Rate limit exceeded
Retry later with the same Idempotency-Key
500
internal_error
Internal server error
Retry later with the same Idempotency-Key. If it persists, contact support and include X-Request-Id