S
docs.syncra.money
API ReferenceMerchant APIApi referenceFinance

Withdrawal history (manual queue merged with executed debits)

The merchant's withdrawal history: the manual approval queue merged with the executed ledger debits, deduplicated by on-chain tx hash. Statuses: PENDING (awaiting approval), APPROVED (approved, not yet broadcast), COMPLETED (broadcast, tx hash present), CANCELLED (rejected by an operator). Same keyset pagination as deposits.

GET/api/v1/p2p/merchant/wallet/withdrawals

The merchant's withdrawal history: the manual approval queue merged with the executed ledger debits, deduplicated by on-chain tx hash. Statuses: PENDING (awaiting approval), APPROVED (approved, not yet broadcast), COMPLETED (broadcast, tx hash present), CANCELLED (rejected by an operator). Same keyset pagination as deposits.

Authorization

MerchantToken MerchantSignature
X-Merchant-Token<token>

64-character hex public merchant token assigned during onboarding.

In: header

X-Signature<token>

Stripe-style HMAC-SHA256 signature. Format: t=<unix_seconds>,v1=<hex_hmac_sha256> where hex_hmac = HMAC-SHA256(webhook_secret, "<unix_seconds>.<raw_body>"). Replay window: 5 minutes (60s future drift tolerated).

In: header

Query Parameters

page_size?integer

Maximum number of results to return (default 20, max 100).

Formatint32
Range1 <= value <= 100
Default20
page_token?string

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/withdrawals"
{  "data": [    {      "created_at": "2019-08-24T14:15:22Z",      "amount_usdt_cents": 0,      "fee_usdt_cents": 0,      "net_usdt_cents": 0,      "tx_hash": "string",      "status": "PENDING",      "tron_address": "string"    }  ],  "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"    }  ]}