Workspace Accounts & Balance
All financial settlements for orders in the DanDanPay Reseller API are conducted in USD. To create an order, your workspace balance must have sufficient available funds.
1. Retrieve Accounts: GET /v1/accounts
Section titled “1. Retrieve Accounts: GET /v1/accounts”Returns a list of all financial balance accounts associated with your workspace:
curl -X GET "https://api.dandanpay.net/v1/accounts" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json"Response Format 200 OK
Section titled “Response Format 200 OK”{ "results": [ { "id": "019818ab-1000-7c55-9477-5020aebf7001", "workspace_id": "019818ab-0000-7c55-9477-5020aebf7000", "slug": "reseller_balance_usd", "available": "1250.75", "frozen": "15.5", "currency": "USD", "created_at": "2026-08-01T10:00:00.000Z", "updated_at": "2026-09-13T12:00:00.000Z" } ]}Account Fields Description
Section titled “Account Fields Description”| Field | Type | Description |
|---|---|---|
id |
UUID | Unique balance account identifier |
workspace_id |
UUID | Identifier of your workspace |
slug |
string | System account slug (e.g. reseller_balance_usd) |
available |
string | Available funds for placing new orders (decimal string, up to 6 decimal places without trailing zeros) |
frozen |
string | Frozen funds held for in-progress orders (decimal string, up to 6 decimal places without trailing zeros) |
currency |
string | Account currency (USD) |
updated_at |
string | Last balance change timestamp |
2. Funds Holding Mechanics
Section titled “2. Funds Holding Mechanics”- Order Creation (
POST /v1/orders):
The total price of the offer (price) is immediately moved fromavailabletofrozen. Available purchasing balance is deducted accordingly. - Successful Completion (
completed):
The order amount is permanently deducted fromfrozen. - Cancellation or Fulfillment Failure (
failed):
The order amount is released fromfrozendirectly back intoavailable. You incur zero financial losses for undelivered goods.
3. Error 402 Payment Required
Section titled “3. Error 402 Payment Required”If the workspace balance lacks sufficient funds in the order’s currency:
HTTP/1.1 402 Payment RequiredContent-Type: application/json
{ "code": "INSUFFICIENT_FUNDS", "message": "Insufficient funds on reseller account"}