For resellers
Purchase API documentation
SHOPCLONE7-compatible API: your SHOPCLONE6/7 website only needs to add a SHOPCLONE7-type supplier with this domain and your API Key — no code changes.
https://beta.adswar.shop- 1
Get an API Key
Sign in and go to Account › Purchase API to create a key and register your website server IP.
- 2
Connect your website
In your website admin, add a SHOPCLONE7-type supplier with the domain above and the API Key you created.
- 3
Sync and sell
Sync the product list and set your prices; your customers' orders are bought automatically with your wallet balance.
Authentication
Every request sends the api_key parameter in the query string; the buy command is sent as a POST form (multipart or urlencoded).
curl -X POST "https://beta.adswar.shop/api/buy_product" \ -F action=buyProduct -F api_key=YOUR_API_KEY -F id=12 -F amount=1
/api/profile.phpAccount info and wallet balance
Parameters
| api_key | Required | Your API Key |
Sample response
{
"status": "success",
"msg": "Data retrieved successfully!",
"data": { "username": "reseller01", "money": "1250.5" }
}/api/products.phpCategories and products (prices for your tier)
Parameters
| api_key | Required | Your API Key |
| lang | Optional | Language of product names: th, en, vi |
Sample response
{
"status": "success",
"msg": "Data retrieved successfully!",
"categories": [
{
"id": "1", "parent_id": 0, "name": "Facebook", "icon": "https://.../facebook.png",
"products": [
{ "id": "12", "name": "Facebook US | 2FA", "price": "35", "amount": 80,
"description": "...", "flag": "us", "min": "1", "max": "500" }
]
}
]
}/api/product.phpA single product
Parameters
| api_key | Required | Your API Key |
| product | Required | Product ID |
Sample response
{
"status": "success",
"msg": "Data retrieved successfully!",
"product": [
{ "id": "12", "name": "Facebook US | 2FA", "price": "35", "amount": 80,
"description": "...", "flag": "us", "min": 1, "max": 500 }
]
}/api/buy_productBuy: action=buyProduct, api_key, id, amount, coupon (optional)
Parameters
| action | Required | Always buyProduct |
| api_key | Required | Your API Key |
| id | Required | ID of the product to buy |
| amount | Required | Quantity (within the product's min – max) |
| coupon | Optional | Coupon code |
Sample response
{
"status": "success",
"msg": "Order created successfully!",
"trans_id": "AW261012A6YQJM7H",
"data": ["uid|password|2fa", "uid|password|2fa"]
}/api/order.phpFetch the accounts of an order again
Parameters
| api_key | Required | Your API Key |
| order | Required | Order code (trans_id) returned when buying |
Sample response
{
"status": "success",
"msg": "Order retrieved successfully!",
"trans_id": "AW261012A6YQJM7H",
"data": ["uid|password|2fa", "uid|password|2fa"]
}Error codes
On errors the API returns status = "error" and a msg message with an HTTP code:
{ "status": "error", "msg": "..." }- 400Missing parameter, invalid ID or quantity, not enough stock
- 401Invalid API Key or locked account
- 402Insufficient wallet balance
- 403IP not in the allowed list (includes client_ip)
- 404Product or order does not exist
- 429Too many requests, please wait
- 503API temporarily disabled or warehouse error (the order was refunded)
Notes
- Returned prices are your own tier prices, in the store's base currency.
- Orders are paid from your wallet balance — top up first on the Top up page.
- Two purchases with the same key must be a few seconds apart.
- If the accounts are not delivered in time, the buy command still returns trans_id — call order.php to fetch them later.
