Developers

Reseller API Documentation

Place orders programmatically. Your reseller discount is applied automatically and orders are charged to your wallet balance.

You are not an approved reseller yet. Apply on your account page to get your API key.

1 Authentication

Every request must include your API key in the Authorization header as a Bearer token.

Authorization: Bearer YOUR_API_KEY

Base URL

https://reseller.7hsiam.top

POST 2 Place an Order

/api/resaleorder

{
  "account_info": { "player_id": "123456789" },
  "selectedPackage": { "id": 1, "tag_line": "100" },
  "quantity": 1,
  "order_id": "YOUR-REF-0001",
  "url": "https://your-store.com/webhooks/topup"
}
Field Type Required Description
account_info.player_idstringYesPlayer/game ID (min 6 chars). Use "noplayerid" if not needed.
selectedPackage.idnumberYes (unused)Any positive number.
selectedPackage.tag_linestringYesSelects the package — must match exactly.
quantitynumberYesPositive integer.
order_idstringNoYour own reference.
urlstringRecommendedWebhook URL for async delivery results.

POST 2b. Bulk Order (instant codes)

/api/resaleorder/bulk — For code/voucher packages. No player ID needed.

{
  "items": [
    { "tag_line": "100", "quantity": 1 },
    { "tag_line": "200", "quantity": 2 }
  ]
}

3 Response Format

{
  "success": true,
  "message": "Order Placed Successfully",
  "order": {
    "id": 10234,
    "status": "complete",
    "payment": "complete",
    "content": "ABCD-EFGH-1234",
    "due_used": 0
  }
}
HTTP Message Meaning
200Your selected stock is not availableOut of stock — auto refunded.
200Insufficient balanceTop up your wallet and retry.
200Package not foundtag_line didn't match any package.
401UnauthorizedInvalid or missing API key.
422validation messageA required field is missing/invalid.

GET 4 Check Order Status

/api/resaleorder/status?order_id=YOUR-REF-0001

curl "https://reseller.7hsiam.top/api/resaleorder/status?order_id=YOUR-REF-0001" \
  -H "Authorization: Bearer YOUR_API_KEY"

5 Webhooks

Send a url in your order request and we will POST the result when delivered or failed.

POST <your url>
Content-Type: application/json

{
  "orderid": "YOUR-REF-0001",
  "status": "success",
  "content": "ABCD-EFGH-1234",
  "codes": ["ABCD-EFGH-1234"]
}

6 Finding a package's tag_line

Each package has a tag_line. See the live pricing on the packages page.

GET 7 Validate Player UID (optional)

/api/checkuid?uid=123456789 — No authentication required.

GET https://reseller.7hsiam.top/api/checkuid?uid=123456789
// 200 -> { "message": "PlayerUsername" }
// 400 -> { "message": "UID INVALID" }

8 cURL Example

curl -X POST "https://reseller.7hsiam.top/api/resaleorder" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_info": { "player_id": "123456789" },
    "selectedPackage": { "id": 1, "tag_line": "100" },
    "quantity": 1,
    "order_id": "YOUR-REF-0001",
    "url": "https://your-store.com/webhooks/topup"
  }'