Use the 7 merchant endpoints below to check your balance and products, create orders, and query or download the delivered account details.
Base URLhttps://accsfox.com/v1/merchant
Pay the $1.43 activation fee and your key is issued automatically, with no manual review.
Conventions
GET endpoints carry X-App-Id and X-Api-Key. Keep the API Key on your own server only.
POST endpoints do not send X-Api-Key; they use X-Api-Timestamp, X-Api-Nonce and X-Api-Signature instead.
A write request’s timestamp may differ from server time by at most 300 seconds. Generate a new nonce for every request; a repeated nonce returns HTTP 409.
Customer-linked API keys share the customer's account balance. API fields balanceCents, priceCents and chargedAmountCents are in USD cents.
All seven endpoints return HTTP 402 when the balance is below the equivalent of 1.00 USD, including the balance endpoint.
externalOrderNo must be unique within an App ID. The same number may only retry exactly the same product, variant and quantity; anything else returns 409.
Requests and responses use UTF-8 JSON. POST requests must set Content-Type: application/json.
Each App ID has its own limits. Reads share 60 requests per minute and 10 per 10 seconds. Order creation allows 10 per minute and 2 per 10 seconds.
Exceeding a limit returns HTTP 429. Wait the number of seconds in Retry-After before retrying. To retry an order, reuse externalOrderNo and generate a fresh nonce and signature.
A failed request returns error.code and error.message; handle it by the HTTP status code.
Run HMAC-SHA256 over the canonical string with your API Key. First sort the body’s object keys recursively and serialize it as compact JSON, then compute its SHA-256. The signature format is sha256=<64 lowercase hex characters>.
HXPUZI-HMAC-V1
<Unix timestamp in seconds>
<nonce>
POST
/v1/merchant/orders
<SHA-256 of the canonical JSON body>
Sign in, click the pay-to-activate button on this page and confirm. Once the $1.43 activation fee is paid from your account balance, access is activated automatically, and this page then always shows your App ID and API Key.
An administrator rotates the key from the API management page; the new API Key is shown only once.
If your API Key has leaked or may have leaked, click “Reset API Key” on this page and enter the code sent to your sign-in email to get a new key. The App ID stays the same; the old key stops working immediately, with no grace period.
A grace period of 0–10080 minutes can be set for the old key; 0 makes the old key invalid at once.
Disabling the credential revokes both the old and the new key of that App ID at once; every endpoint then returns HTTP 401.
Old credentials that have not been rotated still accept the original POST authentication for now. After rotating, switch to HMAC before the grace period ends.
Signature errors
MERCHANT_API_SIGNATURE_REQUIRED: the write request has no signature headers.
MERCHANT_API_SIGNATURE_EXPIRED: the timestamp differs from server time by more than 300 seconds.
MERCHANT_API_SIGNATURE_INVALID: malformed headers, a modified body, or the wrong key.
MERCHANT_API_REPLAY_DETECTED: the nonce was already used; generate a new one.
Balance below the access minimum
{
"error": {
"code": "MERCHANT_BALANCE_BELOW_ACCESS_MINIMUM",
"message": "Your balance is below the equivalent of 1.00 USD, so the merchant API is temporarily unavailable."
}
}
01
Get merchant balance
Check the available balance for this App ID. For customer-linked keys, the account balance is converted to USD at the current store rate. balanceCents is in USD cents.
Returns only the parent and child categories that are open in the store this App ID belongs to. When a parent category is not open, its children are not returned either. Use parentId to rebuild the hierarchy.
Products can only be listed by child category, and that category must be open in the current store. category is the required child-category slug: it cannot be omitted, cannot be a parent category, and categories of other stores are not accepted. Only products listed in this store whose category is open are returned, with amounts always in USD.
GEThttps://accsfox.com/v1/merchant/products
Parameters
Field
Required
Description
category
Yes
Query parameter: child-category slug; parent categories are not supported. Example: facebook-accounts
Returns live details by product slug. Only products listed in this store whose category is open can be accessed; otherwise 404 is returned. Fetch it again before ordering to confirm the product status, USD price, stock and variants.
Create an order with an HMAC-SHA256 signature. Customer-linked orders debit the customer's wallet after converting the product total to the wallet currency. Retrying the same externalOrderNo charges once.
POSThttps://accsfox.com/v1/merchant/orders
Parameters
Field
Required
Description
externalOrderNo
Yes
Your own unique order number, up to 120 characters, ASCII letters, digits and . _ : - only. A retry with the same number must keep the same product, variant and quantity
Returns the status and the delivered account details of an order created by this App ID. orderNo may be your own order number, the platform order number or the platform order UUID. Up to 50 delivered items are returned inside items; above 50 they are downloaded through downloadUrl.
Downloads the account details of a delivered order created by this App ID. It uses the same authentication headers as the other GET endpoints. The response is UTF-8 plain text with one item per line; HTTP 409 is returned while delivery is not complete.