A practical Merchant API guide, from the first invoice to payout reconciliation. Start with hosted checkout, then connect webhooks and server-side automation.
This example prices an order in USD and lets the buyer choose the payment asset. Use the selected option's amount_crypto as the amount to send. A repeat with the same project_id and order_id returns the existing invoice with its original terms. Use a new order_id for a new invoice.
02 / GUIDE
Authentication and secrets
Base origin: https://pay.bitcofy.pro. Reference paths already include /api/v1.
Operation
Credentials
Purpose
Public information
None
Networks, rates and integration capabilities
Project reads
X-API-Key or Authorization: Bearer <project_api_key>
Access to your own project
Project writes
API key plus X-API-Secret
Invoices, settings and payouts
Signed payout or request decision
Write access plus signature, nonce, timestamp
Additional Ed25519 signature
Cabinet login
User session
Not a Merchant API key
API keys start with bpk_, API secrets with bps_, webhook secrets with bwhsec_live_. These credentials are distinct. Register the Base64 Ed25519 public key; keep the private key on your server. HTTP headers are case-insensitive; JSON names and network/asset values must match the API. JSON writes use Content-Type: application/json.
03 / GUIDE
Invoice lifecycle
Invoice status, transaction confirmations and withdrawable balance are different states.
Status
Meaning
Action
created
Invoice exists; payment window has not started
Share checkout URL
waiting_payment
Route selected and payment window started
Await payment before session expiry
pending
Transfer detected, processing incomplete
Wait for confirmations and resolution
paid
Payment accepted
Fulfil once
paid_over
Confirmed amount exceeds the accepted range
Reconcile the credit and apply your overpayment policy
partially_paid, wrong_amount, additional_payment
Confirmed amount is below the accepted range
Check the credit and keep the order open for reconciliation
late_payment
An attributable late transfer was confirmed
Reconcile the credit and apply your late-payment policy
expired, cancel
Window expired or invoice cancelled
Reconcile any payment before deciding whether to fulfil
Read required_confirmations from the selected payment option and items[].confirmations and items[].crediting_status from the authenticated payments endpoint. Treat the transaction hash as an identifier and verify posted credit using the totals below.
Invoice and payment deadlines
Phase
Default deadline
created, awaiting the buyer's route selection
24 hours from the original creation time. The invoice expires automatically if no session opens by this deadline.
waiting_payment, after route selection
20 minutes from successful POST …/payment-session. This window can run past the original selection deadline.
waiting_payment, fixed route
20 minutes from creation. The route and session are active immediately.
Initial price quote for a route the buyer can select
120 seconds. Each option shows its quote deadline in rate_locked_until. A quote refresh leaves expires_at unchanged.
expires_at is the deadline for the current phase. Once a session opens, it matches payment_session_expires_at. Repeating the request for the same active route returns the existing deadline. Starting a session on an expired invoice returns HTTP 400 with Invoice is already finalized.
An active selection keeps its payable amount for the payment window. For a fixed route, the payable amount is set at creation through the session deadline.
Automatic expiry applies while the invoice is in created or waiting_payment. A detected transfer in pending can finish confirming after the payment deadline. An attributable transfer that arrives after expiry can move the invoice to late_payment. Where a deposit address is reused, the service matches the transfer to an invoice when the available evidence identifies one. A transfer with ambiguous ownership can remain unassigned. Reconcile against your original invoice ID before taking action.
Choose the invoice denomination and route
Request
amount and currency
Payment route and timer
amount_type: "fiat" or omitted, no network or asset
Order amount in USD, RUB or EUR
The buyer chooses an available pair. A new invoice begins in created and enters waiting_payment when the buyer starts a session.
amount_type: "fiat" or omitted, both network and asset
Order amount in USD, RUB or EUR
The chosen pair and its conversion rate are fixed through invoice expiry. The invoice starts in waiting_payment with the session already open.
amount_type: "asset", both network and asset
The requested net quantity of the asset. Set currency to that asset ticker.
One fixed pair, with the payment amount set at creation through invoice expiry.
Use the network name and ticker from GET /api/v1/public/networks. A fixed route uses buy_type: "balance". Omit buy_type to select this automatically. Explicit "package" or a missing half of the pair returns 400. With a buyer-selected route, buy_type still defaults to "package".
Fiat invoices use the applicable deposit fee and convert the result to the payment asset. POL and XPL quotes in fiat mode use two decimal places. To request an exact POL or XPL amount with up to 18 decimal places, use amount_type: "asset". Asset-denominated invoices add the applicable deposit fee directly in asset units, rounding the fee down to network precision. GRAM has its own payable precision in both modes, described under TON payments. Market price changes do not reprice the asset-denominated amount_crypto. Use the amount returned in payment_options in either mode.
A fixed route must pass project and platform availability and the invoice minimum, which is evaluated against the USD value at creation. A EUR invoice requires a fresh EUR/USD rate. If the rate is missing or stale, the API returns 400 with Fresh EUR/USD rate is unavailable. Retry when a fresh quote is available.
An asset-denominated request for a net 10 USDT on Tron can use this JSON body with the same headers as in the quickstart.
At an illustrative fee of 1.5%, checkout asks the buyer to send 10.15 USDT. If that amount confirms, 0.15 USDT is booked as the fee and 10 USDT is credited.
How confirmed payments are credited
Use the exact payment_options[].amount_crypto for the selected pair. Asset-denominated invoices use an exact comparison at the asset's precision. Fiat-denominated invoices accept a range around the quoted amount, with tolerance defined in the units of the selected asset. The status uses the cumulative confirmed amount for that pair.
Actual confirmed amount including the overpayment, after the fee
wrong_amount, partially_paid, additional_payment
Credit is held while the confirmed amount is below the accepted range
The confirmed amount is credited after the fee, while the invoice still shows the shortfall
late_payment
Expected payment amount after the invoice fee, including when the transfer differs from the quote
Actual confirmed amount after the fee
A first confirmed short payment normally produces wrong_amount. partially_paid can represent multiple confirmed transfers below the target, and additional_payment indicates another confirmed transfer while the invoice remains short. A top-up that reaches the accepted range can take the invoice to paid, and exceeding that range can take it to paid_over.
Before fulfilling an order paid late, verify the actual confirmed quantity and your order deadline.
Read the requested and credited amounts
Fixed-route responses include payment_route_locked: true, amount_type, requested_amount and requested_currency. A EUR invoice with buyer selection also includes the three request fields. Older invoices may omit all four fields. In asset mode requested_amount and requested_currency describe the original request. The amount_fiat and fiat_currency fields on authenticated status responses still use the USD accounting basis in asset mode.
The authenticated create and status responses provide asset_settlement for fixed routes. All three amounts are decimal strings in the selected asset. Zero values are valid before confirmation or credit.
Field
Meaning
network, asset
Pair recorded for the fixed route
confirmed_amount
Total of qualifying transfers on the route with the required confirmations
credited_fee_amount
Fee recorded against the invoice in units of asset
credited_net_amount
Actual net quantity credited to the project in units of asset
Use credited_net_amount for reconciliation and the invoice status for your order workflow. Fields such as requested_usd_amount and service_fee_usd_amount describe the quote in USD.
credited_total_amount is the net quantity posted to the project, and credited_fee_total is the recorded fee. Use these totals to reconcile the whole invoice. A package credit may be recorded on one of several transfers.
items[].amount is the gross transfer quantity in the item's asset. items[].status and items[].confirmations track the on-chain transfer.
items[].crediting_status, items[].net_amount_after_fee and items[].fee_amount describe the accounting result. pending_confirmation is the initial credit state. credited marks a posted credit. withheld_exact_payment_required marks a transfer held under the package settlement rule, such as a short payment.
The public checkout payments method shows invoice status and each transfer's network, asset, confirmations and status. Use the authenticated methods to reconcile credit.
When credited funds can be withdrawn
Get project balances for the merchant_balance row of the same network and asset. balance is the recorded ledger balance, pending_aggregation_balance is the credited portion still awaiting collection where applicable, and available_for_withdrawal is the project's current calculated amount ready for withdrawal. On networks that collect deposits, the service may wait for the applicable threshold before moving funds into the wallet used for payouts. For Litecoin and Zcash, eligibility also depends on confirmed spendable transaction outputs. Check the latest balance and your payout budget before requesting a withdrawal.
04 / GUIDE
Hosted checkout and available assets
Prefer the returned invoice_url. Public by-hash methods support hosted checkout; they do not replace authenticated Merchant API methods.
For payment_route_locked: true, render the active route and its expiry immediately. Read selected_network, selected_asset, payment_options and payment_session_expires_at from the invoice. The fixed route requires no POST …/payment-session call or buyer network selection. Use the authenticated invoice read to reconcile credits.
For invoices where the buyer chooses a route, open the hosted page in the same browser before calling POST …/payment-session. The endpoint requires a valid access cookie and applies rate limits. A 403 asking to open the hosted page indicates missing access.
/api/v1/public/networks describes platform capabilities. For an invoice, use its current payment_options; project and administrator restrictions can change availability. Do not offer an option from an obsolete cache. Read address and amount for the same network/asset pair. A token symbol on another network is not interchangeable. Return URLs control navigation, not payment confirmation.
05 / GUIDE
Networks, assets and payment identifiers
Pass the exact network and asset codes in requests. Use chain_id to identify the network in a wallet. Use the invoice's current payment_options to determine which pairs it accepts.
API network code network
Chain identifier chain_id
API asset codes asset
Arbitrum
42161
ETH, USDT, USDC
Avalanche (Avalanche C-Chain)
43114
AVAX, USDT
BSC
56
BNB, USDT
Base
8453
ETH, USDC, USDT
Cosmos (Cosmos Hub)
cosmoshub-4
ATOM
Ethereum
1
ETH, USDT, USDC
Litecoin
litecoin-mainnet
LTC
Plasma
9745
XPL, USDT
Polkadot (Polkadot Asset Hub)
polkadot-asset-hub
DOT
Polygon (Polygon PoS)
137
POL, USDT, USDC
Solana
solana-mainnet-beta
SOL, USDC
TON
-239
GRAM, USDT
Tron
tron-mainnet
TRX, USDT
XRPL (XRP Ledger)
xrpl-mainnet
XRP, RLUSD
Zcash
zcash-mainnet
ZEC
Match tokens by the contract, mint or issuer returned for the selected pair. For example, Base uses bridged Tether under the USDT code, and Solana uses the registered USDC mint. The network's native_asset pays on-chain fees. Current network and asset catalog
Incoming transfers to Cosmos Hub require the invoice's Memo. Incoming transfers to XRP Ledger require its Destination Tag. Both are returned as memo. Zcash uses transparent payment addresses.
TON payments
In API requests use network: "TON" and asset: "GRAM" for the native coin Gram (formerly Toncoin), or asset: "USDT" for the official Tether token on TON. GRAM uses nine decimal places on chain, including payouts and settlement. USDT uses six. Pass amounts as decimal strings. Copy the wallet owner address provided by the invoice or deposit route. TON payment and deposit routes do not require a Memo.
New GRAM invoice quotes use up to six decimal places for the amount payable. Fiat invoices round to the nearest 0.000001 GRAM, with halfway values rounded up and a minimum positive payment of 0.000001 GRAM. In amount_type: "asset", you can request a net amount with up to nine decimal places. The total payable after adding the fee rounds up to the next 0.000001 GRAM when needed. Use the exact amount_crypto returned by the API. Existing locked quotes keep their original amount until expiry. Unstarted options use the new precision.
For a payout, pass the recipient's TON mainnet address. Address formats include checksummed UQ… and EQ… addresses and the raw form 0:<64 hex>. Preserve the address's letter case. Network fees are paid in GRAM.
Paying an ATOM invoice
Cosmos Hub uses one provider deposit address and a unique numeric memo for each route. Copy both the address and the exact memo from the selected route; Memo is a string, even when it contains only digits. Do not parse it as a JavaScript Number, trim it, reuse another invoice's Memo or infer it from the address. Network metadata marks this with memo_required / requires_memo. Do not send if the route's required Memo is missing.
On the hosted checkout, scan the address QR in Keplr or copy the cosmos1… address into the recipient field. Copy the exact Memo and enter the displayed ATOM amount in their separate fields before approving the transfer. Checkout also provides a separate QR for the Memo text. For a custom integration, call the payment QR endpoint with kind=address (the default) for the address or kind=memo for the Memo.
Send native ATOM on Cosmos (cosmoshub-4, six decimals), using a bank transfer. Incoming IBC transfers and IBC vouchers are not supported for invoice credit. Missing, incorrect or reused Memo prevents automatic attribution; an address-only transfer does not identify your invoice. Check the invoice status and credited_total_amount before fulfilling an order.
Sending ATOM to a recipient
For a Cosmos payout or approval request, supply destination_memo when the recipient requires it, for example for an exchange deposit. It is optional for an ordinary wallet. Preserve its exact contents, including spaces. The limit is 256 UTF-8 bytes and control characters are rejected. Preserve it across reconciliation and retries. memo identifies an incoming route and destination_memo is sent with an outgoing payout.
XRP Ledger payments and deposits
Use network: "XRPL" with asset: "XRP" or asset: "RLUSD". Send to the exact classic r… address plus Destination Tag of the selected invoice or deposit route. The API carries the tag as a decimal string in memo. Address and tag together identify the deposit. Copy both values and the exact payment amount into their corresponding wallet fields. A transfer with an absent or incorrect tag cannot be credited automatically. The hosted page can prefill these values in Xaman.
The address QR contains the classic address. Request kind=memo to get the separate Destination Tag QR for XRP or RLUSD. XRPL deposits are credited after the transaction succeeds in a validated ledger. XRP supports six decimal places and the ledger records it in drops.
RLUSD on XRPL is identified by the issuer rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De and currency code 524C555344000000000000000000000000000000. Use this issuer for your trust line. XRP pays the network fee. Ripple USD on XRP Ledger
Withdrawing XRP or RLUSD
Use the recipient's classic address in destination_address. When the recipient provides a Destination Tag, pass it as destination_memo, a decimal string from "0" through "4294967295". A blank field leaves the tag unset. A mainnet X-address is accepted. If it already contains a tag, the separate field may be omitted and any supplied value must match. A recipient must have an active trust line with the RLUSD issuer to receive RLUSD. Check payout_enabled at both network and asset level before making a request.
DOT on Polkadot Asset Hub
Use network: "Polkadot" with asset: "DOT". In your wallet choose Polkadot Asset Hub (parachain 1000). The provider monitors that chain. The same address format can be used on the Relay Chain, so check the network selected in your wallet before sending. Copy the full deposit address from the invoice or scan its address QR and enter the exact DOT amount. No Memo or Destination Tag is needed. A successful transfer qualifies for credit after its Asset Hub block is finalized. Polkadot Asset Hub
Pass DOT amounts as decimal strings with up to 10 decimal places. The default minimum payable invoice amount is 0.015 DOT. It includes the Asset Hub account minimum and a fee allowance. Read minimum_invoice_amount from GET /api/v1/public/networks for the effective network minimum and use the invoice's payment_options to determine what the project can accept.
For DOT payouts use a Polkadot SS58 address with format 0, typically beginning with 1. Leave destination_memo empty. An unfunded recipient account may need at least 0.01 DOT to be created, so check the amount the recipient will receive after fees. Existing accounts can receive smaller amounts when the network allows it. Polkadot address formats, Asset Hub account minimum
Litecoin and transparent Zcash
Use network: "Litecoin" with asset: "LTC", or network: "Zcash" with asset: "ZEC". Both support up to eight decimal places. Copy the address and exact amount from the current invoice. LTC invoice addresses begin with ltc1q. ZEC invoice addresses begin with t1 and receive transparent outputs. The invoice QR contains the address. These routes need no Memo or Destination Tag. Read minimum_invoice_amount in the network catalog and required_confirmations from checkout. The default thresholds are six confirmations for LTC and 24 for ZEC.
The provider can reuse Litecoin and Zcash addresses within a project. Reuse is enabled by default and follows the effective aggregation policy. An address serves one active invoice at a time. If the new amount is close to the latest confirmed transfer of the same asset on that address, the provider selects a different address. The same rule applies to other networks where threshold-based address reuse is enabled. Use fresh instructions for every invoice.
On a reused address, automatic matching requires an exact amount that identifies a single invoice. Ambiguous transfers need manual review. Wait for the invoice status before fulfilling the order.
For Litecoin payouts, provide a regular mainnet address beginning with L, M, 3, ltc1q or ltc1p. For Zcash payouts, provide a transparent mainnet t1 or t3 address, or a transparent-source tex1 address. Leave destination_memo empty for either network. Litecoin mainnet address parameters, Zcash transparent addresses and TEX
06 / GUIDE
Receive and verify webhooks
Configure a public HTTPS URL through the cabinet or POST …/webhook/config, send a test through POST …/webhook/test, and inspect delivery records through GET …/webhook/events.
Headers: X-Bitcofy-Event-Id, X-Bitcofy-Event-Type, X-Bitcofy-Timestamp, X-Bitcofy-Signature, X-Bitcofy-Retry-Count. Signature: hex HMAC-SHA256 using the webhook secret over the exact timestamp string, a dot, and the original request body bytes. Do not re-serialize JSON before verification.
Verify signature, timestamp freshness and project ownership. Choose your receiver freshness window with clock skew in mind.
Persist and deduplicate by event_id atomically with order processing.
Return any 2xx after durable acceptance. Queue slow processing.
Handle duplicate and out-of-order deliveries; retrieve the current object when needed.
Delivery timeout is 5 seconds, with up to 10 total attempts. Retry delays are 15, 30, 60, 120, 240 seconds, then capped at 300 seconds; queue scheduling affects actual delivery time. Exhausted events become dead. Use API reconciliation as well as webhooks.
Core events: invoice.created, invoice.status_changed, payout.created, payout.processing, payout.status_changed, payout.rejected, payout.request.expired, payout.review_required, webhook.test. Additional payout transition events can occur. Do not depend on arrival order.
On request expiry, payout.request.expired includes project_id, request_id, status: "expired", final: true, funds_released: true, the amounts, and the deadline in expires_at and decided_at. payout.review_required includes review_required: true, review_required_at, status: "pending", provider_status: "processing", and final: false. Funds remain reserved while the payout is under review. If a review notification arrives after a final event, reconcile the current state via GET /api/v1/payouts/{payout_id}.
invoice.created and invoice.status_changed add amount_type, requested_amount and requested_currency when present. Both add payment_route_locked: true for a fixed route. For fixed routes, invoice.status_changed also includes the same cumulative asset_settlement snapshot as the authenticated invoice response. These fields are at the top level of the signed JSON. A status event is sent when the invoice changes status. Confirmations and credit totals can continue to change within one status. Reconcile the current invoice and its payments after duplicate, missing or out-of-order events and whenever you need up-to-date totals.
Merchant dashboard withdrawals and customer payouts
The withdrawal page is for merchant owners. Sign in to withdraw funds available across your projects, review the debit, fee and recipient amount, and approve or reject payout requests. The /withdraw_{payout_id} page shows an existing payout to the owner of its project.
Use your project's own interface for customer payouts. Your server checks the customer's identity, eligibility, allowed amount and destination details. It then submits either a directly signed POST /api/v1/payouts or a POST /api/v1/projects/{project_id}/payout-requests for separate approval. The Bitcofy withdrawal link serves the merchant owner. Provide status to your customers through your project. Keep the API key, API secret and signing key on your server.
Access to the withdrawal page follows the owner session. The five-minute timestamp window applies to signed API requests, including direct payouts and signed decisions on requests.
Network and asset budget
Check the network / asset pair and destination, including the Cosmos Memo or XRP Ledger Destination Tag when required by the recipient. The server rejects new payouts and requests when the network or asset is marked payout_enabled: false in GET /api/v1/public/networks. The asset-level merchant_enabled flag controls invoice acceptance. Use GET /api/v1/projects/{project_id}/balances to inspect balances for the selected pair. The project API draws from the project and any other eligible projects of the same owner when shared funding is enabled.
For both direct payouts and approval requests, amount is the full debit. Bitcofy deducts the fee from it and sends the remainder to the recipient. Fetch GET /api/v1/payouts/fee?network=Tron&asset=USDT with your project API key while preparing the payout. fee_amount is a decimal string in units of the selected asset. The fee can change with network and market conditions. Reconcile gross_amount, fee_amount and net_amount in the payout creation response.
Litecoin and Zcash quotes may also include network_fee_estimate, the estimated cost of a standard transfer in the same asset. Use fee_amount to calculate the recipient amount.
In the dashboard, “Available” is the maximum total debit including the fee. Funds ready to withdraw limit the recipient amount. Open requests reduce the available budget.
The server checks whether the budget for the selected pair covers the full debit after open requests, and whether funds ready for withdrawal cover the recipient amount. Request approval checks both limits again. A 409 with error_code=insufficient_project_reserve means the free budget is too low. error_code=insufficient_aggregated_balance means too little is ready to send. Read available_balance, available_aggregated_amount and pending_aggregation_balance for details. Refresh the data before retrying.
Request expiry and payout review
A request in requested has exactly 24 hours from created_at for a decision. expires_at gives the exact UTC deadline. If no decision is made in time, the request becomes final with status expired and releases its reserved budget. A late approval or rejection returns 409 with error_code=payout_request_expired and expires_at. If a payout is still needed, recheck the available budget and create a separate request with a new idempotency_key.
After approval, track the created payout. If it is still pending after 60 minutes, Bitcofy sets review_required: true, records review_required_at and sends payout.review_required. Processing continues with final: false, and the funds remain reserved. Reconcile the existing payout using its ID or idempotency key. Once the payout is final, review_required becomes false and the review timestamp remains available.
Payout processing is asynchronous after a successful creation response. Wait for the final payout status to confirm sending.
State
Meaning
requested
Awaiting a decision
expired
Decision deadline reached, request final, reserved budget released
approved, rejected
Request decision; approval does not prove payout completion
pending / provider_status=processing
Payout processing
success / provider_status=completed
Completed
send_error / provider_status=failed
Sending error; reconcile result and reservation release
Store request, payout and idempotency IDs, transaction hash and final-state flags. GET …/payouts/reconcile accepts exactly one of request_id, payout_id or idempotency_key. If a request exists, the reconciliation result includes its deadline in request_expires_at.
08 / GUIDE
Ed25519 signing
Generate keys on your server and register the public key with POST …/security/payout-key. Base64-encode the signature. API key and secret remain required.
The direct payout message is UTF-8, joined with LF (\n), without a trailing newline:
When a direct payout has a nonemptydestination_memo, append a line formed by memo: followed by the JSON-encoded string, with no trailing newline. Sign the field as submitted. Memo 123456789 adds memo:"123456789" and an explicit XRPL tag of zero adds memo:"0". An omitted, null or empty field keeps the original signature format. The approval and rejection signature formats stay the same.
javascript
// Append to the canonical message above before signing.
if (destinationMemo) message += '\nmemo:' + JSON.stringify(destinationMemo);
python
# Equivalent UTF-8 canonical suffix; keep non-ASCII text unchanged.
if destination_memo:
message += "\nmemo:" + json.dumps(destination_memo, ensure_ascii=False, separators=(",", ":"))
Approval/rejection uses a different message. Action is approve or reject; keep the reason line empty for approval:
Timestamp must be within 5 minutes of server time. The server normalizes it using Python UTC isoformat(). Send and sign a timestamp without fractional seconds and with +00:00, for example 2026-09-29T12:00:00+00:00, to avoid Z/offset and fractional-second differences. Generate a unique nonce for each new signed attempt.
Send amount as a plain decimal string without exponent notation and sign the identical string. Avoid floating-point numbers. A server-provided example message illustrates the format; sign the actual values of your operation.
These examples sign an already assembled canonical message. API-generated private_key is a Base64 32-byte seed. This differs from the expanded 64-byte TweetNaCl/Go key; convert the seed as shown below.
Query by the same idempotency key or reconcile first
Payout already exists
Observe it; do not create a second payout
New signed attempt after reconciliation
Keep the logical operation key, refresh nonce/timestamp, sign again
400, 401, 403, 422
Fix parameters, access or signature before retrying
Payout 409
Inspect the structured reason, available balance and reservation
429 or temporary unavailability
Back off with jitter; respect Retry-After when present
Do not change the idempotency key just because a response was lost. A failed connection can leave a write's outcome unknown. Prefer status reads and webhooks over repeated POST requests.
10 / GUIDE
Before going live
Verify project access, activation and asset availability.
Exercise successful, partial, expired and late payments.
Verify raw-body webhook signatures, duplicates and out-of-order events.
Ensure browser redirects cannot fulfil orders without API confirmation.
Exercise response loss, identifier lookup and payout duplicate protection.
Verify payout fees, available balances, Ed25519 encoding, nonce and timestamp.
Log operation identifiers and errors without credentials or private keys.
11 / GUIDE
For agents and automated readers
Share the documentation URL directly. The full guide and reference are present in HTML without JavaScript or authentication.
Choose a workflow, then consult the exact endpoint. Replace illustrative IDs and example values; they are not real credentials. Fetch networks, fees and confirmation requirements from the API.
REFERENCE
Every request, explained
Choose an endpoint. Expand parameters, success responses and errors separately. Examples illustrate shape; replace identifiers and sign the actual values before sending.
curl --request GET 'https://pay.bitcofy.pro/api/v1/health'
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
status
string
Required
Object state; see the relevant workflow for values and actions.
app
string
Required
App
json
{
"status": "ok",
"app": "string"
}
Errors & recovery
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
The catalog returns exact network and asset codes. Use a pair from the current invoice payment_options for payment. Incoming Cosmos transfers require a Memo and XRP Ledger transfers require a Destination Tag.
When present, deposit_enabled or payout_enabled set to false on the network or asset disables the operation. merchant_enabled describes platform-wide invoice eligibility. When returned, minimum_invoice_amount is in the native asset.
The example shows the registered pairs. Call this endpoint for current availability flags.
Parameters & request example
No request body.
bash
curl --request GET 'https://pay.bitcofy.pro/api/v1/public/networks'
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
[].network
string
Required
Case-sensitive network code to pass as network.
[].display_name
string
Optional
Human-readable network label, when present.
[].chain_id
integer / string
Required
chain id
[].native_asset
string
Required
Ticker of the native coin used for network fees.
[].memo_required
boolean
Optional
Incoming routes require the issued Cosmos Memo or XRPL Destination Tag.
[].requires_memo
boolean
Optional
Compatibility flag for the same payment identifier requirement.
[].deposit_enabled
boolean
Optional
Network availability for receiving deposits, when reported.
[].payout_enabled
boolean
Required
Network availability for new payouts and requests.
[].minimum_invoice_amount
string
Optional
Minimum payable amount in the native asset, when reported.
[].ss58_format
integer
Optional
Address format on a Substrate network, when reported.
[].assets
array<object>
Required
assets
[].assets[].symbol
string
Required
Exact asset code to pass as asset for this network.
[].assets[].decimals
integer
Required
On-chain asset precision. ≥: 0
[].assets[].confirmations
integer
Required
Default confirmation count for this pair. ≥: 1
[].assets[].token_standard
string
Required
token standard
[].assets[].contract_address
string
Optional
Token contract or mint where applicable.
[].assets[].mint_address
string
Optional
Solana SPL token mint where applicable.
[].assets[].denom
string
Optional
Native denomination used by a Cosmos network.
[].assets[].issuer
string
Optional
Issuer of the XRPL asset, when applicable.
[].assets[].currency
string
Optional
XRPL currency code for an issued asset.
[].assets[].merchant_enabled
boolean
Required
Platform-wide eligibility for merchant invoices.
[].assets[].deposit_enabled
boolean
Optional
Asset availability for receiving deposits, when reported.
[].assets[].payout_enabled
boolean
Optional
Asset availability for new payouts, when reported.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
Fiat mode supports USD, RUB and EUR. Supply network and asset together to fix the route and start the session at creation. In amount_type=asset, supply the target net quantity and use the asset ticker as currency.
The same project_id and order_id return the existing invoice. A fixed route uses balance and includes asset_settlement in the response.
In created, the buyer has 24 hours from creation to choose a route. A fixed route enters waiting_payment and starts its 20-minute window immediately. Use expires_at as the deadline of the current phase.
Merchant project ID. The supplied credentials must belong to this project.
order_id
string
Required
Merchant's order ID, unique within the project. Reusing the same ID returns the existing invoice.
amount
number / string
Required
Positive decimal amount in currency units. In amount_type=asset this is the target net quantity after the fee. >: 0; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
currency
string
Required
For fiat use USD, RUB or EUR. In asset mode use the ticker matching asset.
buy_type
string
Optional
package is an order payment with buyer route selection. balance credits the actual confirmed amount after the fee. For a fixed route, use balance or omit this field. default: "package"; min length: 1; max length: 32
amount_type
string
Optional
Denomination of the original request. fiat is an amount in USD, RUB or EUR. asset is the target net quantity of the selected asset. enum: "fiat", "asset"; default: "fiat"
network
string / null
Optional
Supply network and asset together to fix the payment route at creation. min length: 1; max length: 32
asset
string / null
Optional
Supply network and asset together to fix the payment route at creation. min length: 1; max length: 32
callback_url
string / null
Optional
Legacy invoice field; does not configure project webhooks. Use /webhook/config.
success_url
string / null
Optional
Absolute HTTP(S) return URL after payment. A redirect does not prove credit.
cancel_url
string / null
Optional
Absolute HTTP(S) return URL on cancellation.
customer_id
string / null
Optional
Optional customer identifier in your system.
customer_email
string / null
Optional
Optional valid customer email. format: email
metadata
object
Optional
Your JSON order metadata. System billing_invoice_kind fields are reserved.
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice ID for authenticated merchant API requests.
invoice_hash
string
Required
Hosted payment identifier used in the checkout link and its public endpoints.
invoice_url
string
Required
Hosted checkout URL to share with the payer.
requested_usd_amount
string
Required
USD equivalent of the requested amount before the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
service_fee_usd_amount
string / null
Optional
Common quoted fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
total_payable_usd_amount
string / null
Optional
Common quoted total including the fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
expires_at
string
Required
Deadline of the current phase. In created it is the route selection deadline, 24 hours from creation by default. Once a session opens it is the payment deadline. format: date-time
status
string
Required
Invoice lifecycle status. created awaits route selection, waiting_payment has an open payment session, and pending has a detected transfer awaiting confirmations. paid is accepted, paid_over has an overpayment, wrong_amount, partially_paid and additional_payment require amount reconciliation, and late_payment records an attributed late transfer. expired and cancel close payment. Check settlement separately from invoice status.
buy_type
string
Required
package is an order payment with buyer route selection. balance credits the actual confirmed amount after the fee. For a fixed route, use balance or omit this field.
invoice_language
string
Required
Invoice Language
resolved_language
string
Required
Resolved Language
success_url
string / null
Optional
Absolute HTTP(S) return URL after payment. A redirect does not prove credit.
cancel_url
string / null
Optional
Absolute HTTP(S) return URL on cancellation.
payment_session_started_at
string / null
Optional
Time the payment session opened. For a fixed route it is the invoice creation time. Before route selection the value is null. format: date-time
payment_session_expires_at
string / null
Optional
Deadline of the opened payment session, 20 minutes from session start by default. Before the session opens the value is null. format: date-time
payment_session_active
boolean
Optional
The payment window is open and the selected option is currently available. default: false
selected_network
string / null
Optional
Selected Network
selected_asset
string / null
Optional
Selected Asset
payment_options
array<object>
Required
Payment routes currently offered for this invoice.
payment_options[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
payment_options[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
payment_options[].option_key
string
Required
Network and asset combined as network:asset.
payment_options[].fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
payment_options[].required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
payment_options[].network_logo_url
string / null
Optional
Network Logo Url
payment_options[].asset_logo_url
string / null
Optional
Asset Logo Url
tracked_payment_option
object / null
Optional
Previously offered route retained to track an existing transfer when that route becomes unavailable.
tracked_payment_option.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
tracked_payment_option.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
tracked_payment_option.option_key
string
Required
Network and asset combined as network:asset.
tracked_payment_option.fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
tracked_payment_option.required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
tracked_payment_option.network_logo_url
string / null
Optional
Network Logo Url
tracked_payment_option.asset_logo_url
string / null
Optional
Asset Logo Url
payment_route_locked
boolean / null
Optional
Present for a network and asset fixed by the merchant at invoice creation.
amount_type
string / null
Optional
Denomination of the original request. fiat is an amount in USD, RUB or EUR. asset is the target net quantity of the selected asset. enum: "fiat", "asset"
requested_amount
string / null
Optional
Original requested amount before the fee, when recorded. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
requested_currency
string / null
Optional
Fiat currency or asset symbol of the original request, when recorded.
asset_settlement
object / null
Optional
Settlement totals in units of the selected asset for a fixed route.
asset_settlement.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset_settlement.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
asset_settlement.confirmed_amount
string
Required
Total confirmed transfers for the selected pair. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
asset_settlement.credited_fee_amount
string
Required
Fee recorded in units of the selected asset. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
asset_settlement.credited_net_amount
string
Required
Actual quantity of the asset credited to the project after the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Possible detail messages
API key does not have access to this project
Invoice not found after creation
Both network and asset are required for a fixed payment route
Unsupported payment network or asset
Fixed payment routes require buy_type balance
In asset mode currency must match the specified asset
Invoice amount does not match the asset's precision
The specified payment asset is not enabled for this project
No supported payment asset is available for this invoice amount
curl --request GET 'https://pay.bitcofy.pro/api/v1/invoices/YOUR_INVOICE_ID' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice ID for authenticated merchant API requests.
invoice_hash
string
Required
Hosted payment identifier used in the checkout link and its public endpoints.
invoice_url
string
Required
Hosted checkout URL to share with the payer.
requested_usd_amount
string
Required
USD equivalent of the requested amount before the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
service_fee_usd_amount
string / null
Optional
Common quoted fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
total_payable_usd_amount
string / null
Optional
Common quoted total including the fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
expires_at
string
Required
Deadline of the current phase. In created it is the route selection deadline, 24 hours from creation by default. Once a session opens it is the payment deadline. format: date-time
status
string
Required
Invoice lifecycle status. created awaits route selection, waiting_payment has an open payment session, and pending has a detected transfer awaiting confirmations. paid is accepted, paid_over has an overpayment, wrong_amount, partially_paid and additional_payment require amount reconciliation, and late_payment records an attributed late transfer. expired and cancel close payment. Check settlement separately from invoice status.
buy_type
string
Required
Settlement mode selected at creation. package or balance.
invoice_language
string
Required
Invoice Language
resolved_language
string
Required
Resolved Language
success_url
string / null
Optional
Absolute HTTP(S) return URL after payment. A redirect does not prove credit.
cancel_url
string / null
Optional
Absolute HTTP(S) return URL on cancellation.
payment_session_started_at
string / null
Optional
Time the payment session opened. For a fixed route it is the invoice creation time. Before route selection the value is null. format: date-time
payment_session_expires_at
string / null
Optional
Deadline of the opened payment session, 20 minutes from session start by default. Before the session opens the value is null. format: date-time
payment_session_active
boolean
Optional
The payment window is open and the selected option is currently available. default: false
selected_network
string / null
Optional
Selected Network
selected_asset
string / null
Optional
Selected Asset
payment_options
array<object>
Required
Payment routes currently offered for this invoice.
payment_options[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
payment_options[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
payment_options[].option_key
string
Required
Network and asset combined as network:asset.
payment_options[].fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
payment_options[].required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
payment_options[].network_logo_url
string / null
Optional
Network Logo Url
payment_options[].asset_logo_url
string / null
Optional
Asset Logo Url
tracked_payment_option
object / null
Optional
Previously offered route retained to track an existing transfer when that route becomes unavailable.
tracked_payment_option.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
tracked_payment_option.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
tracked_payment_option.option_key
string
Required
Network and asset combined as network:asset.
tracked_payment_option.fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
tracked_payment_option.required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
tracked_payment_option.network_logo_url
string / null
Optional
Network Logo Url
tracked_payment_option.asset_logo_url
string / null
Optional
Asset Logo Url
payment_route_locked
boolean / null
Optional
Present for a network and asset fixed by the merchant at invoice creation.
amount_type
string / null
Optional
Denomination of the original request when recorded. enum: "fiat", "asset"
requested_amount
string / null
Optional
Original requested amount before the fee, when recorded. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
requested_currency
string / null
Optional
Fiat currency or asset symbol of the original request, when recorded.
asset_settlement
object / null
Optional
Settlement totals in units of the selected asset for a fixed route.
asset_settlement.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset_settlement.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
asset_settlement.confirmed_amount
string
Required
Total confirmed transfers for the selected pair. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
asset_settlement.credited_fee_amount
string
Required
Fee recorded in units of the selected asset. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
asset_settlement.credited_net_amount
string
Required
Actual quantity of the asset credited to the project after the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
order_id
string
Required
Your order identifier. Reuse in the same project returns the existing invoice.
fiat_currency
string
Required
Currency of amount_fiat. For an asset-denominated request, this is USD.
amount_fiat
string
Required
Original fiat amount, or its USD accounting value for an asset-denominated request. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
deposit_addresses
array<object>
Required
Deposit Addresses
deposit_addresses[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
deposit_addresses[].address
string
Required
Address
deposit_addresses[].memo
string
Optional
Incoming route identifier as a string. This is the Memo on Cosmos or the decimal Destination Tag on XRP Ledger. Use it with the address. default: ""
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
curl --request GET 'https://pay.bitcofy.pro/api/v1/invoices/YOUR_INVOICE_ID/payments' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice identifier returned on creation.
invoice_status
string
Required
Current invoice status. Use the monetary fields of the authenticated endpoint to reconcile credit.
buy_type
string
Required
package: order payment; balance: credit actual confirmed amount after fee.
credited_total_amount
string
Optional
Current cumulative net credit for the invoice, in asset units. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
credited_fee_total
string
Optional
Current cumulative invoice fee, in asset units. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
items
array<object>
Required
Transfers attributed to the invoice, including those still awaiting confirmations.
items[].transaction_id
string
Required
Transaction Id
items[].invoice_id
string
Required
Invoice identifier returned on creation.
items[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
items[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
items[].tx_hash
string
Required
Tx Hash
items[].logical_index
string
Required
Logical Index
items[].address
string
Required
Address
items[].amount
string
Required
Gross quantity detected in the transfer, in units of asset. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
items[].confirmations
integer
Required
Current confirmation count of this transfer. Compare with required_confirmations in the selected invoice option.
items[].block_number
integer / null
Optional
Block Number
items[].status
string
Required
Transfer state. pending is awaiting network confirmations. confirmed meets the required confirmation threshold.
items[].buy_type
string
Required
package: order payment; balance: credit actual confirmed amount after fee.
items[].crediting_status
string
Required
Credit state for this transfer. Examples include pending_confirmation, credited, and withheld_exact_payment_required.
items[].net_amount_after_fee
string
Optional
Net credit recorded on the transfer. For package invoices, reconcile against the invoice-level credited_total_amount. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
items[].fee_amount
string
Optional
Fee recorded on the transfer, in asset units. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
items[].detected_at
string
Required
Time the transfer was detected. format: date-time
items[].confirmed_at
string / null
Optional
Time the confirmation threshold was reached. It may be null before confirmation. format: date-time
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
With payment_route_locked: true, use the selected pair, amount and active session in the response. Use the authenticated invoice read to reconcile credits.
Parameters & request example
Field
Type
Presence
Meaning & constraints
invoice_hash
path · string
Required
Public identifier from the checkout URL. Keep customer links private.
No request body.
bash
curl --request GET 'https://pay.bitcofy.pro/api/v1/public/invoices/by-hash/YOUR_INVOICE_HASH'
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice ID for authenticated merchant API requests.
invoice_hash
string
Required
Hosted payment identifier used in the checkout link and its public endpoints.
invoice_url
string
Required
Hosted checkout URL to share with the payer.
requested_usd_amount
string
Required
USD equivalent of the requested amount before the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
service_fee_usd_amount
string / null
Optional
Common quoted fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
total_payable_usd_amount
string / null
Optional
Common quoted total including the fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
expires_at
string
Required
Deadline of the current phase. In created it is the route selection deadline, 24 hours from creation by default. Once a session opens it is the payment deadline. format: date-time
status
string
Required
Invoice lifecycle status. created awaits route selection, waiting_payment has an open payment session, and pending has a detected transfer awaiting confirmations. paid is accepted, paid_over has an overpayment, wrong_amount, partially_paid and additional_payment require amount reconciliation, and late_payment records an attributed late transfer. expired and cancel close payment. Check settlement separately from invoice status.
buy_type
string
Required
Settlement mode selected at creation. package or balance.
invoice_language
string
Required
Invoice Language
resolved_language
string
Required
Resolved Language
success_url
string / null
Optional
Absolute HTTP(S) return URL after payment. A redirect does not prove credit.
cancel_url
string / null
Optional
Absolute HTTP(S) return URL on cancellation.
payment_session_started_at
string / null
Optional
Time the payment session opened. For a fixed route it is the invoice creation time. Before route selection the value is null. format: date-time
payment_session_expires_at
string / null
Optional
Deadline of the opened payment session, 20 minutes from session start by default. Before the session opens the value is null. format: date-time
payment_session_active
boolean
Optional
The payment window is open and the selected option is currently available. default: false
selected_network
string / null
Optional
Selected Network
selected_asset
string / null
Optional
Selected Asset
payment_options
array<object>
Required
Payment routes currently offered for this invoice.
payment_options[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
payment_options[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
payment_options[].option_key
string
Required
Network and asset combined as network:asset.
payment_options[].fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
payment_options[].required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
payment_options[].network_logo_url
string / null
Optional
Network Logo Url
payment_options[].asset_logo_url
string / null
Optional
Asset Logo Url
tracked_payment_option
object / null
Optional
Previously offered route retained to track an existing transfer when that route becomes unavailable.
tracked_payment_option.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
tracked_payment_option.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
tracked_payment_option.option_key
string
Required
Network and asset combined as network:asset.
tracked_payment_option.fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
tracked_payment_option.required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
tracked_payment_option.network_logo_url
string / null
Optional
Network Logo Url
tracked_payment_option.asset_logo_url
string / null
Optional
Asset Logo Url
payment_route_locked
boolean / null
Optional
Present for a network and asset fixed by the merchant at invoice creation.
amount_type
string / null
Optional
Denomination of the original request when recorded. enum: "fiat", "asset"
requested_amount
string / null
Optional
Original requested amount before the fee, when recorded. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
requested_currency
string / null
Optional
Fiat currency or asset symbol of the original request, when recorded.
deposit_addresses
array<object>
Required
Payment address and any required memo or destination tag by network.
deposit_addresses[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
deposit_addresses[].address
string
Required
Payment address for this network.
deposit_addresses[].memo
string
Optional
Required payment memo on Cosmos or destination tag on XRPL. Empty for other networks. default: ""
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
429
Rate limit exceeded
Back off with jitter and honor Retry-After when present.
First open /payment_{invoice_hash} to obtain the access cookie. Normally called by hosted checkout.
Selecting a pair before the created deadline opens a separate 20-minute payment window. expires_at becomes payment_session_expires_at. Repeating the same active pair retains the existing deadline.
An expired invoice returns HTTP 400 with Invoice is already finalized. With payment_route_locked: true, the session is already open.
Parameters & request example
Field
Type
Presence
Meaning & constraints
invoice_hash
path · string
Required
Public identifier from the checkout URL. Keep customer links private.
JSON body
Field
Type
Presence
Meaning & constraints
network
string
Required
Network of an available option returned by the hosted invoice. min length: 1; max length: 32
asset
string
Required
Asset of the same available payment option. min length: 1; max length: 32
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice ID for authenticated merchant API requests.
invoice_hash
string
Required
Hosted payment identifier used in the checkout link and its public endpoints.
invoice_url
string
Required
Hosted checkout URL to share with the payer.
requested_usd_amount
string
Required
USD equivalent of the requested amount before the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
service_fee_usd_amount
string / null
Optional
Common quoted fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
total_payable_usd_amount
string / null
Optional
Common quoted total including the fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
expires_at
string
Required
Deadline of the current phase. In created it is the route selection deadline, 24 hours from creation by default. Once a session opens it is the payment deadline. format: date-time
status
string
Required
Invoice lifecycle status. created awaits route selection, waiting_payment has an open payment session, and pending has a detected transfer awaiting confirmations. paid is accepted, paid_over has an overpayment, wrong_amount, partially_paid and additional_payment require amount reconciliation, and late_payment records an attributed late transfer. expired and cancel close payment. Check settlement separately from invoice status.
buy_type
string
Required
Settlement mode selected at creation. package or balance.
invoice_language
string
Required
Invoice Language
resolved_language
string
Required
Resolved Language
success_url
string / null
Optional
Absolute HTTP(S) return URL after payment. A redirect does not prove credit.
cancel_url
string / null
Optional
Absolute HTTP(S) return URL on cancellation.
payment_session_started_at
string / null
Optional
Time the payment session opened. For a fixed route it is the invoice creation time. Before route selection the value is null. format: date-time
payment_session_expires_at
string / null
Optional
Deadline of the opened payment session, 20 minutes from session start by default. Before the session opens the value is null. format: date-time
payment_session_active
boolean
Optional
The payment window is open and the selected option is currently available. default: false
selected_network
string / null
Optional
Selected Network
selected_asset
string / null
Optional
Selected Asset
payment_options
array<object>
Required
Payment routes currently offered for this invoice.
payment_options[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
payment_options[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
payment_options[].option_key
string
Required
Network and asset combined as network:asset.
payment_options[].fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
payment_options[].required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
payment_options[].network_logo_url
string / null
Optional
Network Logo Url
payment_options[].asset_logo_url
string / null
Optional
Asset Logo Url
tracked_payment_option
object / null
Optional
Previously offered route retained to track an existing transfer when that route becomes unavailable.
tracked_payment_option.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
tracked_payment_option.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
tracked_payment_option.option_key
string
Required
Network and asset combined as network:asset.
tracked_payment_option.fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
tracked_payment_option.required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
tracked_payment_option.network_logo_url
string / null
Optional
Network Logo Url
tracked_payment_option.asset_logo_url
string / null
Optional
Asset Logo Url
payment_route_locked
boolean / null
Optional
Present for a network and asset fixed by the merchant at invoice creation.
amount_type
string / null
Optional
Denomination of the original request when recorded. enum: "fiat", "asset"
requested_amount
string / null
Optional
Original requested amount before the fee, when recorded. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
requested_currency
string / null
Optional
Fiat currency or asset symbol of the original request, when recorded.
deposit_addresses
array<object>
Required
Payment address and any required memo or destination tag by network.
deposit_addresses[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
deposit_addresses[].address
string
Required
Payment address for this network.
deposit_addresses[].memo
string
Optional
Required payment memo on Cosmos or destination tag on XRPL. Empty for other networks. default: ""
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
429
Rate limit exceeded
Back off with jitter and honor Retry-After when present.
Possible detail messages
Too many public invoice requests
Open the hosted invoice page before starting a payment session
Invoice not found
Invoice does not support the specified network and asset
Use this endpoint for checkout progress. It returns the invoice status, network, asset, transfer state and confirmations. Reconcile credit with GET /api/v1/invoices/{invoice_id}/payments using the project API key.
Parameters & request example
Field
Type
Presence
Meaning & constraints
invoice_hash
path · string
Required
Public identifier from the checkout URL. Keep customer links private.
No request body.
bash
curl --request GET 'https://pay.bitcofy.pro/api/v1/public/invoices/by-hash/YOUR_INVOICE_HASH/payments'
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice identifier returned on creation.
invoice_status
string
Required
Current invoice status. Use the monetary fields of the authenticated endpoint to reconcile credit.
items
array<object>
Required
Payer-facing transfer progress for each network and asset.
items[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
items[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
items[].confirmations
integer
Required
Current confirmation count of this transfer. Compare with required_confirmations in the selected invoice option.
items[].status
string
Required
Transfer state. pending is awaiting network confirmations. confirmed meets the required confirmation threshold.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
429
Rate limit exceeded
Back off with jitter and honor Retry-After when present.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/invoices/by-order/YOUR_ORDER_ID' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
invoice_id
string
Required
Invoice ID for authenticated merchant API requests.
invoice_hash
string
Required
Hosted payment identifier used in the checkout link and its public endpoints.
invoice_url
string
Required
Hosted checkout URL to share with the payer.
requested_usd_amount
string
Required
USD equivalent of the requested amount before the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
service_fee_usd_amount
string / null
Optional
Common quoted fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
total_payable_usd_amount
string / null
Optional
Common quoted total including the fee in USD, if it is the same across options. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
expires_at
string
Required
Deadline of the current phase. In created it is the route selection deadline, 24 hours from creation by default. Once a session opens it is the payment deadline. format: date-time
status
string
Required
Invoice lifecycle status. created awaits route selection, waiting_payment has an open payment session, and pending has a detected transfer awaiting confirmations. paid is accepted, paid_over has an overpayment, wrong_amount, partially_paid and additional_payment require amount reconciliation, and late_payment records an attributed late transfer. expired and cancel close payment. Check settlement separately from invoice status.
buy_type
string
Required
Settlement mode selected at creation. package or balance.
invoice_language
string
Required
Invoice Language
resolved_language
string
Required
Resolved Language
success_url
string / null
Optional
Absolute HTTP(S) return URL after payment. A redirect does not prove credit.
cancel_url
string / null
Optional
Absolute HTTP(S) return URL on cancellation.
payment_session_started_at
string / null
Optional
Time the payment session opened. For a fixed route it is the invoice creation time. Before route selection the value is null. format: date-time
payment_session_expires_at
string / null
Optional
Deadline of the opened payment session, 20 minutes from session start by default. Before the session opens the value is null. format: date-time
payment_session_active
boolean
Optional
The payment window is open and the selected option is currently available. default: false
selected_network
string / null
Optional
Selected Network
selected_asset
string / null
Optional
Selected Asset
payment_options
array<object>
Required
Payment routes currently offered for this invoice.
payment_options[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
payment_options[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
payment_options[].option_key
string
Required
Network and asset combined as network:asset.
payment_options[].fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
payment_options[].rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
payment_options[].required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
payment_options[].network_logo_url
string / null
Optional
Network Logo Url
payment_options[].asset_logo_url
string / null
Optional
Asset Logo Url
tracked_payment_option
object / null
Optional
Previously offered route retained to track an existing transfer when that route becomes unavailable.
tracked_payment_option.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
tracked_payment_option.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
tracked_payment_option.option_key
string
Required
Network and asset combined as network:asset.
tracked_payment_option.fee_percent
string
Optional
Service fee percentage applied to this payment option. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.fee_usd_amount
string
Optional
USD valuation of the quoted service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.total_payable_usd_amount
string
Optional
USD valuation of the quoted payment including the service fee. default: "0"; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.amount_crypto
string
Required
Exact amount to send in units of this asset, including the service fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_value
string
Required
USD quote per one unit of this asset used to price the payment option. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
tracked_payment_option.rate_locked_until
string
Required
Quote deadline for this option. The initial quote before route selection lasts 120 seconds by default. For a fixed route it matches the payment deadline. format: date-time
tracked_payment_option.required_confirmations
integer
Required
Confirmation threshold for this option. Some networks report a finalized transfer directly.
tracked_payment_option.network_logo_url
string / null
Optional
Network Logo Url
tracked_payment_option.asset_logo_url
string / null
Optional
Asset Logo Url
payment_route_locked
boolean / null
Optional
Present for a network and asset fixed by the merchant at invoice creation.
amount_type
string / null
Optional
Denomination of the original request when recorded. enum: "fiat", "asset"
requested_amount
string / null
Optional
Original requested amount before the fee, when recorded. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
requested_currency
string / null
Optional
Fiat currency or asset symbol of the original request, when recorded.
asset_settlement
object / null
Optional
Settlement totals in units of the selected asset for a fixed route.
asset_settlement.network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset_settlement.asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
asset_settlement.confirmed_amount
string
Required
Total confirmed transfers for the selected pair. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
asset_settlement.credited_fee_amount
string
Required
Fee recorded in units of the selected asset. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
asset_settlement.credited_net_amount
string
Required
Actual quantity of the asset credited to the project after the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
order_id
string
Required
Your order identifier. Reuse in the same project returns the existing invoice.
fiat_currency
string
Required
Currency of amount_fiat. For an asset-denominated request, this is USD.
amount_fiat
string
Required
Original fiat amount, or its USD accounting value for an asset-denominated request. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
deposit_addresses
array<object>
Required
Deposit Addresses
deposit_addresses[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
deposit_addresses[].address
string
Required
Address
deposit_addresses[].memo
string
Optional
Incoming route identifier as a string. This is the Memo on Cosmos or the decimal Destination Tag on XRP Ledger. Use it with the address. default: ""
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
curl --request GET 'https://pay.bitcofy.pro/api/v1/invoices/YOUR_INVOICE_ID/qr' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · image/svg+xml
Shape illustration: values are examples; actual state may differ.
xml
<svg xmlns="http://www.w3.org/2000/svg">…</svg>
Errors & recovery401 · 403 · 404 · 422 · 423
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
The address QR contains the recipient address. This is cosmos1… for Cosmos or a classic r… address for XRP Ledger. Enter the amount and the required Memo or Destination Tag in separate wallet fields.
The 200 response returns SVG with Cache-Control: no-store.
Parameters & request example
Field
Type
Presence
Meaning & constraints
invoice_hash
path · string
Required
Public identifier from the checkout URL. Keep customer links private.
network
query · string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
query · string
Required
Asset code, e.g. USDT. Must be available for this network and project.
kind
query · string
Optional
address encodes the exact recipient address. memo returns a separate QR containing the required Cosmos Memo or XRP Ledger Destination Tag. enum: "address", "memo"; default: "address"
No request body.
bash
curl --request GET 'https://pay.bitcofy.pro/api/v1/public/invoices/by-hash/YOUR_INVOICE_HASH/payment-qr?network=Cosmos&asset=ATOM' --output cosmos-address.svg
curl --request GET 'https://pay.bitcofy.pro/api/v1/public/invoices/by-hash/YOUR_INVOICE_HASH/payment-qr?network=Cosmos&asset=ATOM&kind=memo' --output cosmos-memo.svg
Successful response
200 · image/svg+xml
Shape illustration: values are examples; actual state may differ.
xml
<svg xmlns="http://www.w3.org/2000/svg">…</svg>
Errors & recovery400 · 404 · 409 · 422 · 429
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
A separate identifier QR is unavailable for the selected pair
Use kind=address. For kind=memo, select Cosmos / ATOM or XRP Ledger / XRP or RLUSD.
404
Invoice or payment option unavailable
Verify invoice_hash and the network and asset pair in payment_options.
409
Required payment identifier unavailable
Open checkout again. Wait until you have the exact Memo or Destination Tag before paying.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
429
Rate limit exceeded
Back off with jitter and honor Retry-After when present.
Possible detail messages
Too many public invoice requests
Invoice not found
Payment option not found
This option does not use a Memo or Destination Tag
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Select the merchant_balance row matching the exact network and asset. balance is the ledger balance, available_for_withdrawal is the amount ready for withdrawal, and pending_aggregation_balance is the amount awaiting aggregation.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/transactions' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
items
array<object>
Required
Items
items[].transaction_type
string
Required
Transaction Type
items[].reference_id
string
Required
Reference Id
items[].status
string
Required
Object state; see the relevant workflow for values and actions.
items[].network
string / null
Optional
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
items[].asset
string / null
Optional
Asset code, e.g. USDT. Must be available for this network and project.
items[].amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
items[].currency
string / null
Optional
For fiat use USD, RUB or EUR. In asset mode use the ticker matching asset.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/transactions/export.csv' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · text/csv
Shape illustration: values are examples; actual state may differ.
text
Transaction CSV file. Columns depend on the export format.
Errors & recovery401 · 403 · 422 · 423
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/transactions/export-quickbooks.csv' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · text/csv
Shape illustration: values are examples; actual state may differ.
text
Transaction CSV file. Columns depend on the export format.
Errors & recovery401 · 403 · 422 · 423
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
A request in requested has exactly 24 hours from created_at for a decision. expires_at gives the UTC deadline. On expiry the request becomes expired and releases its reserved budget.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/payout-requests' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
[].request_id
string
Required
Payout approval request identifier.
[].project_id
string
Required
Project identifier; must belong to the API key.
[].network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
[].asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
[].amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
[].destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
[].destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
[].status
string
Required
Object state; see the relevant workflow for values and actions.
[].idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
[].requested_via
string
Required
Requested Via
[].requested_by_user_id
string / null
Optional
Requested By User Id
[].approved_by_user_id
string / null
Optional
Approved By User Id
[].rejected_by_user_id
string / null
Optional
Rejected By User Id
[].approved_payout_id
string / null
Optional
Approved Payout Id
[].approved_payout_status
string / null
Optional
Approved Payout Status
[].rejection_reason
string / null
Optional
Rejection reason; included verbatim in the signed message.
[].note
string / null
Optional
Optional note on the payout request.
[].created_at
string
Required
Created At format: date-time
[].expires_at
string
Required
UTC decision deadline. Exactly 24 hours from created_at. format: date-time
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Fee is included in amount. API acceptance does not confirm blockchain broadcast; track payout state.
Before calling this endpoint, the merchant server checks customer eligibility and the allowed amount. Bitcofy checks the budget for the full debit and availability of the recipient amount for the selected network and asset.
A request in requested has exactly 24 hours from created_at for a decision. expires_at gives the UTC deadline. On expiry the request becomes expired and releases its reserved budget.
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
number / string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. >: 0; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation. min length: 1; max length: 255
note
string / null
Optional
Optional note on the payout request. max length: 500
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
request_id
string
Required
Payout approval request identifier.
project_id
string
Required
Project identifier; must belong to the API key.
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
requested_via
string
Required
Requested Via
requested_by_user_id
string / null
Optional
Requested By User Id
approved_by_user_id
string / null
Optional
Approved By User Id
rejected_by_user_id
string / null
Optional
Rejected By User Id
approved_payout_id
string / null
Optional
Approved Payout Id
approved_payout_status
string / null
Optional
Approved Payout Status
rejection_reason
string / null
Optional
Rejection reason; included verbatim in the signed message.
note
string / null
Optional
Optional note on the payout request.
created_at
string
Required
Created At format: date-time
expires_at
string
Required
UTC decision deadline. Exactly 24 hours from created_at. format: date-time
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
409
Payout availability conflict
Inspect error_code and available balance. insufficient_project_reserve: insufficient reserve; insufficient_aggregated_balance: funds not ready to send. Reconcile first.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
A request in requested has exactly 24 hours from created_at for a decision. expires_at gives the UTC deadline. On expiry the request becomes expired and releases its reserved budget.
Parameters & request example
Field
Type
Presence
Meaning & constraints
project_id
path · string
Required
Project identifier; must belong to the API key.
idempotency_key
path · string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/payout-requests/by-idempotency/YOUR_IDEMPOTENCY_KEY' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
request_id
string
Required
Payout approval request identifier.
project_id
string
Required
Project identifier; must belong to the API key.
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
requested_via
string
Required
Requested Via
requested_by_user_id
string / null
Optional
Requested By User Id
approved_by_user_id
string / null
Optional
Approved By User Id
rejected_by_user_id
string / null
Optional
Rejected By User Id
approved_payout_id
string / null
Optional
Approved Payout Id
approved_payout_status
string / null
Optional
Approved Payout Status
rejection_reason
string / null
Optional
Rejection reason; included verbatim in the signed message.
note
string / null
Optional
Optional note on the payout request.
created_at
string
Required
Created At format: date-time
expires_at
string
Required
UTC decision deadline. Exactly 24 hours from created_at. format: date-time
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Requires API key, API secret and Ed25519 signature. See Signatures for canonical message, UTC, nonce and 5-minute freshness.
Fee is included in amount. API acceptance does not confirm blockchain broadcast; track payout state.
A request in requested has exactly 24 hours from created_at for a decision. expires_at gives the UTC deadline. On expiry the request becomes expired and releases its reserved budget.
A decision after the deadline returns HTTP 409 with error_code=payout_request_expired and expires_at.
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
request_id
string
Required
Payout approval request identifier.
project_id
string
Required
Project identifier; must belong to the API key.
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
requested_via
string
Required
Requested Via
requested_by_user_id
string / null
Optional
Requested By User Id
approved_by_user_id
string / null
Optional
Approved By User Id
rejected_by_user_id
string / null
Optional
Rejected By User Id
approved_payout_id
string / null
Optional
Approved Payout Id
approved_payout_status
string / null
Optional
Approved Payout Status
rejection_reason
string / null
Optional
Rejection reason; included verbatim in the signed message.
note
string / null
Optional
Optional note on the payout request.
created_at
string
Required
Created At format: date-time
expires_at
string
Required
UTC decision deadline. Exactly 24 hours from created_at. format: date-time
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
409
Payout availability conflict
Inspect error_code and available balance. insufficient_project_reserve: insufficient reserve; insufficient_aggregated_balance: funds not ready to send. Reconcile first.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Requires API key, API secret and Ed25519 signature. See Signatures for canonical message, UTC, nonce and 5-minute freshness.
Fee is included in amount. API acceptance does not confirm blockchain broadcast; track payout state.
A request in requested has exactly 24 hours from created_at for a decision. expires_at gives the UTC deadline. On expiry the request becomes expired and releases its reserved budget.
A decision after the deadline returns HTTP 409 with error_code=payout_request_expired and expires_at.
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
request_id
string
Required
Payout approval request identifier.
project_id
string
Required
Project identifier; must belong to the API key.
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
requested_via
string
Required
Requested Via
requested_by_user_id
string / null
Optional
Requested By User Id
approved_by_user_id
string / null
Optional
Approved By User Id
rejected_by_user_id
string / null
Optional
Rejected By User Id
approved_payout_id
string / null
Optional
Approved Payout Id
approved_payout_status
string / null
Optional
Approved Payout Status
rejection_reason
string / null
Optional
Rejection reason; included verbatim in the signed message.
note
string / null
Optional
Optional note on the payout request.
created_at
string
Required
Created At format: date-time
expires_at
string
Required
UTC decision deadline. Exactly 24 hours from created_at. format: date-time
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
409
Payout availability conflict
Inspect error_code and available balance. insufficient_project_reserve: insufficient reserve; insufficient_aggregated_balance: funds not ready to send. Reconcile first.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Requires API key, API secret and Ed25519 signature. See Signatures for canonical message, UTC, nonce and 5-minute freshness.
Fee is included in amount. API acceptance does not confirm blockchain broadcast; track payout state.
Before calling this endpoint, the merchant server checks customer eligibility and the allowed amount. Bitcofy checks the budget for the full debit and availability of the recipient amount for the selected network and asset.
Asset code, e.g. USDT. Must be available for this network and project.
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
amount
number / string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. >: 0; pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
nonce
string
Required
Unique value for a new signed attempt; prevents signature replay.
timestamp
string
Required
UTC date-time within ±5 minutes. Sign canonical +00:00 representation; see Signatures. format: date-time
signature
string
Required
Ed25519 signature of the canonical message, 64 bytes encoded as Base64. min length: 32
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
payout_id
string
Required
Payout identifier.
project_id
string
Required
Project identifier; must belong to the API key.
request_id
string / null
Optional
Payout approval request identifier.
note
string / null
Optional
Optional note on the payout request.
operational_expense
boolean / null
Optional
Operational Expense
source_scope
string / null
Optional
Source Scope
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Total Reserved pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
provider_status
string / null
Optional
Provider Status
final
boolean
Optional
Final default: false
review_required
boolean
Optional
The payout is still processing and requires review. Its reservation stays in place until the final decision. default: false
review_required_at
string / null
Optional
UTC timestamp when the payout was marked for review. Kept in history after the final decision. format: date-time
funds_reserved
boolean
Optional
Funds Reserved default: false
funds_released
boolean
Optional
Funds Released default: false
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
409
Payout availability conflict
Inspect error_code and available balance. insufficient_project_reserve: insufficient reserve; insufficient_aggregated_balance: funds not ready to send. Reconcile first.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Returns the current service fee for the pair and the project identified by the key. The value is informational and can change before creation. Reconcile against the creation response.
Parameters & request example
Field
Type
Presence
Meaning & constraints
network
query · string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
query · string
Required
Asset code, e.g. USDT. Must be available for this network and project.
curl --request GET 'https://pay.bitcofy.pro/api/v1/payouts/fee?network=Tron&asset=USDT' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
project_id
string
Required
Project identified by the API key.
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
fee_amount
string
Required
Current service fee for the payout in units of asset, encoded as a decimal string.
network_fee_estimate
string / null
Optional
Estimated on-chain cost of a standard transfer in the requested asset. Available for Litecoin and Zcash when a current quote can be obtained. Independent of the fee charged to the project.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
If the payout remains pending after 60 minutes, review_required becomes true. Keep reconciling. The reservation stays in place until the final decision.
curl --request GET 'https://pay.bitcofy.pro/api/v1/payouts/YOUR_PAYOUT_ID' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
payout_id
string
Required
Payout identifier.
project_id
string
Required
Project identifier; must belong to the API key.
request_id
string / null
Optional
Payout approval request identifier.
note
string / null
Optional
Optional note on the payout request.
operational_expense
boolean / null
Optional
Operational Expense
source_scope
string / null
Optional
Source Scope
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Total Reserved pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
provider_status
string / null
Optional
Provider Status
final
boolean
Optional
Final default: false
review_required
boolean
Optional
The payout is still processing and requires review. Its reservation stays in place until the final decision. default: false
review_required_at
string / null
Optional
UTC timestamp when the payout was marked for review. Kept in history after the final decision. format: date-time
funds_reserved
boolean
Optional
Funds Reserved default: false
funds_released
boolean
Optional
Funds Released default: false
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
curl --request GET 'https://pay.bitcofy.pro/api/v1/projects/YOUR_PROJECT_ID/payouts/by-idempotency/YOUR_IDEMPOTENCY_KEY' \
--header "X-API-Key: $BITCOFY_API_KEY"
Successful response
200 · application/json
Shape illustration: values are examples; actual state may differ.
Field
Type
Presence
Meaning & constraints
payout_id
string
Required
Payout identifier.
project_id
string
Required
Project identifier; must belong to the API key.
request_id
string / null
Optional
Payout approval request identifier.
note
string / null
Optional
Optional note on the payout request.
operational_expense
boolean / null
Optional
Operational Expense
source_scope
string / null
Optional
Source Scope
network
string
Required
Network code from /api/v1/public/networks, such as TON. For payment use the invoice payment_options.
asset
string
Required
Asset code, e.g. USDT. Must be available for this network and project.
amount
string
Required
Positive amount as a decimal string. For invoices use currency units. For payouts use asset units including the fee. pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
Total Reserved pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string
Required
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
destination_memo
string / null
Optional
For Cosmos, supply the recipient Memo when required. It accepts up to 256 UTF-8 bytes without control characters. For XRP Ledger, use a decimal string from 0 to 4294967295. Sign a nonempty value for a direct payout exactly as submitted. max length: 256
status
string
Required
Object state; see the relevant workflow for values and actions.
provider_status
string / null
Optional
Provider Status
final
boolean
Optional
Final default: false
review_required
boolean
Optional
The payout is still processing and requires review. Its reservation stays in place until the final decision. default: false
review_required_at
string / null
Optional
UTC timestamp when the payout was marked for review. Kept in history after the final decision. format: date-time
funds_reserved
boolean
Optional
Funds Reserved default: false
funds_released
boolean
Optional
Funds Released default: false
idempotency_key
string
Required
Your stable identifier for one logical payout; reuse for reconciliation.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Supply exactly one of request_id, payout_id, idempotency_key. Reconcile ambiguous writes before retrying.
If the payout remains pending after 60 minutes, review_required becomes true. Keep reconciling. The reservation stays in place until the final decision.
Parameters & request example
Field
Type
Presence
Meaning & constraints
project_id
path · string
Required
Project identifier; must belong to the API key.
request_id
query · string / null
Optional
Payout approval request identifier. Supply exactly one of the three identifiers.
payout_id
query · string / null
Optional
Payout identifier. Supply exactly one of the three identifiers.
idempotency_key
query · string / null
Optional
Your stable identifier for one logical payout; reuse for reconciliation. Supply exactly one of the three identifiers.
Net Amount pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
destination_address
string / null
Optional
Recipient address in the selected network. Zcash supports transparent t1, t3 and tex1 addresses. Polkadot Asset Hub uses SS58 format 0. Verify the network before signing.
tx_hash
string / null
Optional
Tx Hash
explorer_url
string / null
Optional
Explorer Url
processed_at
string / null
Optional
Processed At format: date-time
confirmed_at
string / null
Optional
Confirmed At format: date-time
rejection_reason
string / null
Optional
Rejection reason; included verbatim in the signed message.
error_reason
string / null
Optional
Error Reason
status_history
array<object>
Optional
Status History
status_history[].status
string
Required
Object state; see the relevant workflow for values and actions.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Possible detail messages
API key does not have access to this project
Provide exactly one of request_id, payout_id, or idempotency_key
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
400
Invalid request or state
Inspect detail, parameters, signature and current state; do not retry unchanged.
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
404
Object not found
Verify the identifier and project.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.
Possible detail messages
API key does not have access to this project
Project not found
Project webhook_url or callback_secret is not configured
Handler errors are listed below. detail depends on validation and state; its text is not a stable error code. After a 5xx, a write outcome may be unknown: reconcile first.
HTTP
Meaning
Action
401
Invalid credentials
Check the API key, active state and write secret.
403
Access denied
Check project ownership and activation; checkout session calls also need the invoice cookie.
422
Validation failed
detail is an array: loc identifies the field, msg explains the error, type is its code. Correct required fields and types.
423
Project locked
Check project activation and restrictions in the dashboard. Do not retry unchanged.