/api/v1/p2p/merchant/wallet/depositsСтейджThe merchant's incoming TRC-20 deposits: ledger credit plus the receiving address lifecycle from DepositSweepWorker (CREDITED / SWEEP_PENDING / SWEEP_FAILED / SWEEP_STUCK / SWEPT). Keyset pagination (AIP-158): page_size 1–100 (default 20), page_token/next_page_token.
Authorization
MerchantToken MerchantSignature MerchantTimestamp The merchant's public token (64 hex characters), issued at onboarding.
In: header
HMAC-SHA256 signature (a single scheme for all endpoints).
Format: t=<unix_seconds>,v1=<hex_hmac_sha256>
where hex_hmac = HMAC-SHA256(webhook_secret, "<unix_seconds>.<raw_body>").
Replay window: 5 minutes (a 60-second drift into the future is allowed).
In: header
Unix time of the request in seconds. Signature window: 5 minutes back / 60 seconds forward.
In: header
Query Parameters
The maximum number of results returned (20 by default, 100 at most).
int321 <= value <= 10020An opaque pagination token returned by the previous page.
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/v1/p2p/merchant/wallet/deposits" \ -H "X-Merchant-Token: <MERCHANT_TOKEN>" \ -H "X-Timestamp: <UNIX_TIMESTAMP>" \ -H "X-Signature: t=<UNIX_TIMESTAMP>,v1=<HEX_HMAC_SHA256>"{ "data": [ { "block_timestamp": "2019-08-24T14:15:22Z", "amount_usdt_cents": 0, "tx_hash": "string", "trc20_address": "string", "status": "CREDITED" } ], "next_page_token": "string"}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "instance": "../dictionary", "errors": [ { "field": "amount", "message": "must be greater than 0", "code": "POSITIVE_REQUIRED" } ]}{ "type": "../dictionary", "title": "string", "status": 0, "detail": "string", "instance": "../dictionary", "errors": [ { "field": "amount", "message": "must be greater than 0", "code": "POSITIVE_REQUIRED" } ]}Estimate the withdrawal fee before sending a request GET GET
Read-only estimate of the withdrawal fee that will be applied to the authenticated merchant BEFORE submission: a counterparty-specific override if one is set, otherwise the tenant base — resolved through the SAME policy resolver the payment path uses, so the estimate can never diverge from the fee actually charged. The optional `amount_usdt_cents` (USDT cents; note that the create request takes whole units) also yields the net amount.
Withdrawal history (manual queue merged with executed debits) GET GET
The merchant's withdrawal history: the manual approval queue merged with executed ledger debits, deduplicated by the on-chain transaction hash. Statuses: PENDING (awaiting approval), APPROVED (approved, not yet in broadcast), COMPLETED (broadcast, tx hash present), CANCELLED (rejected by the operator). The same keyset pagination as deposits.