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.

Get API Key
Domainhttps://beta.adswar.shop
  1. 1

    Get an API Key

    Sign in and go to Account › Purchase API to create a key and register your website server IP.

  2. 2

    Connect your website

    In your website admin, add a SHOPCLONE7-type supplier with the domain above and the API Key you created.

  3. 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
GET/api/profile.php

Account info and wallet balance

Parameters

api_keyRequiredYour API Key

Sample response

{
  "status": "success",
  "msg": "Data retrieved successfully!",
  "data": { "username": "reseller01", "money": "1250.5" }
}
GET/api/products.php

Categories and products (prices for your tier)

Parameters

api_keyRequiredYour API Key
langOptionalLanguage 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" }
      ]
    }
  ]
}
GET/api/product.php

A single product

Parameters

api_keyRequiredYour API Key
productRequiredProduct 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 }
  ]
}
POST/api/buy_product

Buy: action=buyProduct, api_key, id, amount, coupon (optional)

Parameters

actionRequiredAlways buyProduct
api_keyRequiredYour API Key
idRequiredID of the product to buy
amountRequiredQuantity (within the product's min – max)
couponOptionalCoupon code

Sample response

{
  "status": "success",
  "msg": "Order created successfully!",
  "trans_id": "AW261012A6YQJM7H",
  "data": ["uid|password|2fa", "uid|password|2fa"]
}
GET/api/order.php

Fetch the accounts of an order again

Parameters

api_keyRequiredYour API Key
orderRequiredOrder 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.