Accept crypto, keep balances, send payouts and receive signed webhooks. All requests and responses are JSON (UTF-8); amounts are decimal strings. Successful responses wrap the payload in {"ok":true,"result":…}.
Send Authorization: Bearer cpk_… (or X-Api-Key). Keys are issued in the dashboard → API keys. Rate limits: 600 req/min per IP and 600 req/min per key; on excess you get 429 with Retry-After.
Two keys. The payment key cpk_… creates invoices and static wallets. The payout key cpk_pay_… only works with payouts, balance and history. Once a payout key exists, payouts via API require it — a leaked payment key cannot move money (403 payout_key_required). The reverse is enforced too: a payout key cannot create invoices (403 payout_key_only).
curl https://pay.pulses.exchange/api/v1/me -H "Authorization: Bearer cpk_XXXX"
For invoice and payout creation send Idempotency-Key (8–128 chars). A retry with the same key within 24 hours returns the original response with x-idempotent-replay: 1 instead of creating a duplicate. Reusing a key with a different body returns 409 idempotency_conflict.
curl -X POST https://pay.pulses.exchange/api/v1/invoices \
-H "Authorization: Bearer cpk_XXXX" -H "Content-Type: application/json" \
-H "Idempotency-Key: order-A-1001" \
-d '{"amount":"49.90","currency":"USD","order_id":"A-1001",
"currencies":["usdt_trc20","usdt_ton","btc"],
"callback_url":"https://shop.com/cpay/callback",
"success_url":"https://shop.com/thanks"}'
| Field | Notes |
|---|---|
amount * | positive decimal string |
currency | price currency: USD, EUR, RUB, USDT… (default USDT) |
order_id | your id, unique per merchant — repeated calls return the same invoice |
currencies | allowed payment directions, e.g. usdt_trc20. Empty = all enabled |
pay_currency | fix a single coin/network, customer skips the choice |
fee_payer | merchant (default) or payer — adds the service fee on top |
payer_source | Where the customer pays from: exchange (address from the exchange pool), wallet (wallet or service), or ask to ask on the payment page (the address is issued after the answer). With exchange or wallet the payment page does not ask. Default wallet. Returned in responses and webhooks. |
lifetime_min | 5–1440, default 60 |
description, customer_email, meta | text on the payment page, receipt email, arbitrary object returned in webhooks |
callback_url | https webhook URL for this invoice |
Redirect the customer to result.url. When pay_currency is fixed, the response also contains address, pay_amount and rate.
Pagination: limit up to 200, or cursor — read x-next-cursor from the response headers and pass it as ?cursor=… until the header stops coming. Same for payouts.
Refund sends the received amount back to the payer address. The amount is capped at received − service fee and the network fee is deducted from the refund. Live refunds require trusted IPs.
{"amount":"10.00"} // omit to refund the whole remaining amount
When a network watcher is temporarily down (for example the provider hit its quota), that network is excluded from new live invoices: it is missing from the returned currency list, and a request for that network alone returns network_unavailable. Test invoices (cpk_test_) are not affected.
Sandbox only (key cpk_test_…): marks a test invoice as paid, emulates the incoming transfer and sends the invoice.paid webhook — handy to run a store or bot end-to-end before going live. Body is optional: {"amount":"12.5"}, defaults to the invoice amount. The test invoice page also shows a “Test payment” button.
| status | final | meaning |
|---|---|---|
pending | no | waiting for payment |
confirming | no | transaction seen, waiting for confirmations |
partial | no | underpaid, customer can top up |
paid / paid_over | yes | paid in full / overpaid |
partial_final | yes | expired with a partial payment credited |
expired / cancelled | yes | no payment / cancelled |
hold | no | manual review (AML or late payment policy) |
refunded | yes | refund completed |
A permanent address per customer: every deposit is credited to your balance and delivered as wallet.deposit.
curl -X POST https://pay.pulses.exchange/api/v1/wallets \
-H "Authorization: Bearer cpk_XXXX" -H "Content-Type: application/json" \
-d '{"currency":"usdt_trc20","customer_id":"user-42"}'
Buyers do not need an account: https://t.me/pulsesapp?start=inv_<uuid> opens the bot and shows the invoice status (pending, paid, expired), the amount and an “Open payment page” button. The order number and merchant data are not exposed.
Send funds from your balance to any address. Idempotent via order_id. Live payouts require trusted IPs in the dashboard.
Send Idempotency-Key with POST /payouts and /payouts/batch: a retry with the same key and body returns the same result and does not create a second payout or batch.
Live payouts require a 2FA code: send x-2fa-code: 123456 with the current authenticator code. One code = one payout (or one batch); a replay is rejected with 409 totp_replay. No code → 401 totp_code_required; 2FA disabled → 403 totp_setup_required.
A live payout is not broadcast immediately: there is a 3-minute grace window (payout_delay_sec) during which it can still be cancelled with POST /payouts/{uuid}/cancel. The response carries send_after and cancellable_until; if the payout went to approval, the window starts after approval.
After an API key rotation, a password change or a password reset, live payouts are frozen (403 payouts_frozen) as an anti-takeover measure. Unfreeze in the dashboard on the Payouts page with a 2FA code; test payouts always work.
{"currency":"usdt_trc20","amount":"20","address":"T…","order_id":"w-1","is_subtract":true}
Fee = the fixed network fee for the coin (never less than the estimated network cost). A percentage surcharge applies only when configured for the platform. is_subtract subtracts the fee from the amount; otherwise it is added. Batch: POST /api/v1/payouts/batch up to 200 items.
Set auto_route: true to fill a shortfall in the target network with the same asset held in the merchant's other networks. Cross-network conversion is free for the merchant: Pulses Pay covers the bridge cost. The payout enters routing, reserves every source, waits until the full amount is credited to the target network and only then becomes pending. Cancellation is allowed before the swap starts (409 route_already_started afterwards); every unspent reserve is returned automatically if a route fails. POST /api/v1/payouts/calc with the same flag returns available, combined_available, route_ok, route_count and cross_fee.
GET /api/v1/balance
{"ok":true,"result":[{"currency":"usdt_trc20","asset":"USDT","network":"tron","available":"25.74","locked":"0"}]}
GET /api/v1/ledger?currency=&limit=&offset=
Every movement: invoice/wallet (credit), fee (service fee), sweep_fee (on-chain cost of moving the deposit off its address — capped at 50% of the credit), payout, payout_refund, adjust, refund, swap. The per-network cost comes from service settings and is charged once per credit. The ledger is append-only; each row carries balance_after.
If the invoice carries customer_email, the payer gets a receipt after payment in the language they used on the checkout page (RU/EN), with the order reference, amount, time and a transaction link.
We POST JSON to your callback URL and retry with backoff (up to 10 attempts: 10s, 30s, 2m, 10m, 30m, 1h, 3h, 6h, 12h, 24h). Verify the signature:
hex(HMAC_SHA256(webhook_secret, timestamp + "." + raw_body)) headers: x-cpay-timestamp, x-cpay-signature, x-cpay-event, x-cpay-delivery-id
x-cpay-delivery-id is unique per delivery — use it to deduplicate on your side.
Reject requests older than 300 seconds. Handle events idempotently by invoice uuid.
| event | When | type |
|---|---|---|
invoice.confirming | Payment seen on chain, waiting for confirmations | payment |
invoice.partial | Part of the amount received, the invoice can still be topped up | payment |
invoice.paid | Paid in full | payment |
invoice.paid_over | Paid with an overpayment | payment |
invoice.partial_final | Closed as underpaid: only part of the amount arrived | payment |
invoice.expired | Payment window expired | payment |
invoice.cancelled | Invoice cancelled | payment |
invoice.hold | Payment held for review (AML or manual check) | payment |
invoice.refunded | Refund completed | payment |
wallet.deposit | Incoming transfer to a static wallet address | wallet |
payout.sent | Transaction broadcast, txid is in the body | payout |
payout.done | Confirmed on chain, funds debited | payout |
payout.failed | Did not go out; error explains why | payout |
payout.refunded | Transaction never appeared on chain; the held amount is back on your balance (refunded, reason) | payout |
Payout flow: payout.sent → payout.done or payout.failed. If a transaction is not confirmed in time, the money stays locked while we reconcile it against the chain: confirmed → payout.done, absent for 72 hours → payout.refunded. Do not treat payout.failed alone as a balance change: the debit happens in payout.done, the return in payout.refunded (see ledger kinds payout and payout_refund).
Header x-cpay-event repeats the event; x-cpay-test: 1 marks test events — a live integration must ignore them. Delivery log with manual retry lives in the dashboard (API keys & webhooks) and over GET /cab/api/webhook-deliveries.
Webhooks originate from 109.120.135.9 — allowlist it if you filter inbound traffic. To replay a lost delivery, call POST /api/v1/invoices/{uuid}/resend (final statuses only: paid, paid_over, partial, hold, expired, cancelled); the dashboard has the same action on the webhooks screen.
In the dashboard under “Project settings → Additional webhooks” you can add up to 10 URLs, each with its own secret and event list (for example a dedicated URL for invoice.paid only). The primary callback_url keeps receiving every event.
Signatures use the same scheme with the endpoint’s own secret: hex(HMAC_SHA256(endpoint_secret, timestamp + "." + raw_body)). The secret is shown once when the endpoint is created. Deleting an endpoint stops new deliveries immediately; retries already queued are still attempted.
Schedule recurring invoices. Each cycle creates a normal invoice with order_id = <sub-uuid>-<cycle>, so payments and webhooks work as usual.
curl -X POST https://pay.pulses.exchange/api/v1/subscriptions \
-H "Authorization: Bearer cpk_XXXX" -H "Content-Type: application/json" \
-d '{"amount":"9.90","currency":"USD","interval_unit":"month","interval_count":1,
"title":"Pro plan","max_cycles":12,"customer_email":"[email protected]"}'
| Field | Notes |
|---|---|
interval_unit | day | week | month |
interval_count | 1–365 |
max_cycles | omit for unlimited |
| Endpoint | Purpose |
|---|---|
| GET/api/v1/rates | current USD rates for supported assets |
| POST/api/v1/quote | convert an amount: {"currency":"RUB","amount":"5000","pay_currency":"usdt_trc20"} |
| GET/api/v1/discounts | per-coin discounts configured for your account |
| POST/api/v1/payouts/calc | fee and total preview before sending: {"currency":"usdt_trc20","amount":"100"} |
| POST/api/v1/payouts/batch | up to 200 payouts in one request |
| POST/api/v1/wallets/{uuid}/block POST/api/v1/wallets/{uuid}/unblock | stop or resume crediting a static wallet |
| POST/api/v1/webhooks/verify | check a signature: {"timestamp":"…","body":"…","signature":"…"} |
| POST/api/v1/webhooks/test | send a test event to your callback URL |
GET /api/v1/wallets · /{uuid} | list static wallets or fetch one with its address and totals |
GET /api/v1/payouts · /{uuid} · POST /{uuid}/cancel | payout history or lookup by your order_id; cancel a payout that has not been sent yet |
GET /api/v1/currencies | currencies enabled for your account with minimums and payout fees |
Partial payments keep the invoice open for a top-up; a payment after expiry is credited as late or moved to hold according to your account policy. The aml field carries the screening result of incoming funds.
What the service does today, and how to move an integration over from another processor (Heleket is used as the example: different transport and signature, nearly identical fields).
| Capability | In the API |
|---|---|
| 18 payment routes: 10 coins across 8 networks | GET /api/v1/currencies; the payer picks coin and network on the checkout page |
| Fiat invoice with a locked rate | currency = RUB/USD/EUR/KZT…, lifetime 5–1440 minutes |
| Payer chooses the coin | to_currency, except_currencies, is_refresh |
| Per-coin discount | discount_percent per invoice, coin_discounts in project settings |
| Amount precision | accuracy_payment_percent 0–5 |
| Who pays the fee | fee_payer = merchant or payer; subtract for payouts |
| Underpay & overpay | statuses partial, partial_final, paid_over; underpay_tolerance_pct |
| Late payments | late_policy, late field, invoice.hold event |
| Payer data | customer_email (receipt), additional_data, meta |
| Test mode | test key, test:true objects, webhooks with x-cpay-test: 1 |
One address per customer: POST /api/v1/wallets, deposits arrive as wallet.deposit, block with /wallets/{uuid}/block, refund a blocked wallet from the dashboard.
| Capability | In the API |
|---|---|
| Single and batch | POST /api/v1/payouts, /payouts/batch (up to 200) |
| Quote before sending | POST /api/v1/payouts/calc |
| Cancel before dispatch | POST /api/v1/payouts/{uuid}/cancel |
| Lifecycle | pending → processing → sent → done; events payout.sent/done/failed/refunded |
| Chain reconciliation | unconfirmed tx: done when it appears, refunded after 72 hours |
| Limits and approvals | daily cap, approval threshold, new address, risk score, 2FA on every live payout |
Idempotency-Key for invoices and payouts, dedupe by order_id.limit/offset and the x-next-cursor header.payments key cannot move money out, trusted IPs.Transport differs: Heleket signs with MD5 over a form, we use JSON and HMAC-SHA256. Invoice fields map one-to-one, so mostly the request wrapper and response parsing change.
| Heleket | Pulses Pay |
|---|---|
POST /payment | POST /api/v1/invoice |
POST /payment/{uuid}/info | GET /api/v1/invoices/{uuid} |
POST /payout | POST /api/v1/payouts |
payment_status | status (same values: paid, paid_over, partial, expired, cancel→cancelled) |
payment_amount | pay_amount (in the payment coin) |
merchant_amount, commission | merchant_amount, commission |
expired_at | expires_at |
txid, address, network, url, uuid, order_id, is_final | same names; txid lives in txs[] |
| MD5 over a concatenated string | x-cpay-signature = HMAC-SHA256, 300-second freshness |
Full schema: OpenAPI 3.1; minimal clients: the SDKs below.
Test key only: adds a fixed amount to the test balance so payouts and refunds can be integrated before account approval. Up to 10 top-ups per day; the live balance is never touched.
{"currency":"usdt_trc20"}
→ {"ok":true,"result":{"currency":"usdt_trc20","amount":"1000","test":true}}
All 35 methods. Machine-readable schema: /openapi.json (OpenAPI 3) — import into Postman or generate a client.
| Path | Purpose | |
|---|---|---|
| GET | /api/v1/balance | Merchant balances |
| GET | /api/v1/currencies | Enabled currencies and minimums |
| GET | /api/v1/discounts | Per-coin discounts and markups |
| POST | /api/v1/discounts | Set a per-coin discount or markup (live key only) |
| POST | /api/v1/invoices | Create an invoice |
| GET | /api/v1/invoices | List invoices or fetch one by order_id |
| GET | /api/v1/invoices/{uuid} | Get an invoice |
| POST | /api/v1/invoices/{uuid}/cancel | Cancel an unpaid invoice |
| POST | /api/v1/invoices/{uuid}/pay | Simulate a payment for a test invoice (sandbox only) |
| POST | /api/v1/invoices/{uuid}/refund | Refund a paid invoice to the payer address |
| POST | /api/v1/invoices/{uuid}/resend | Re-deliver the last webhook |
| GET | /api/v1/ledger | Ledger entries |
| GET | /api/v1/me | Merchant profile and limits |
| POST | /api/v1/payouts | Create a payout |
| GET | /api/v1/payouts | List payouts |
| POST | /api/v1/payouts/batch | Create up to 200 payouts |
| POST | /api/v1/payouts/calc | Calculate payout fee and total |
| GET | /api/v1/payouts/{uuid} | Get a payout |
| POST | /api/v1/payouts/{uuid}/cancel | Cancel a queued payout |
| POST | /api/v1/quote | Quote pay amount in a chosen currency |
| GET | /api/v1/rates | Exchange rates snapshot |
| POST | /api/v1/sandbox/topup | Top up a test balance (sandbox only) |
| POST | /api/v1/subscriptions | Create a subscription |
| GET | /api/v1/subscriptions | List subscriptions |
| GET | /api/v1/subscriptions/{uuid} | Get one subscription |
| POST | /api/v1/subscriptions/{uuid}/cancel | Cancel a subscription |
| POST | /api/v1/subscriptions/{uuid}/pause | Pause a subscription |
| POST | /api/v1/subscriptions/{uuid}/resume | Resume a subscription |
| POST | /api/v1/wallets | Create a static wallet |
| GET | /api/v1/wallets | List static wallets |
| GET | /api/v1/wallets/{uuid} | Get a static wallet with recent transfers |
| POST | /api/v1/wallets/{uuid}/block | Block deposits to a wallet |
| POST | /api/v1/wallets/{uuid}/unblock | Unblock a wallet |
| POST | /api/v1/webhooks/test | Send a test webhook |
| POST | /api/v1/webhooks/verify | Verify a webhook signature |
{"error":"insufficient_balance","message":"insufficient balance"}
| HTTP | error |
|---|---|
| 400 | bad_amount, bad_currency, bad_address, bad_callback_url, network_unavailable |
| 401 | unauthorized |
| 403 | merchant_pending, payouts_disabled, payouts_frozen, trusted_ips_required, totp_setup_required, risk_rejected, risk_banned |
| 404 | not_found |
| 409 | idempotency_conflict |
| 422 | insufficient_balance |
| 429 | rate_limited + Retry-After |