API Documentation

Base URL: https://maxstore1.com

Authentication Required
Include the following header in all API requests:
api-token: YOUR_API_TOKEN
Create your API key from the store Mini App → Account → API Keys.

Profile

GET Retrieves your balance and profile information.

/api/v2/profile

Response Example

{
    "balance": "125.50",
    "user_id": 123456789,
    "username": "example"
}

Products

GET Retrieves all available products.

/api/v2/products

Response Example

[
    {
        "id": 12,
        "name": "UC 60",
        "price": 0.95,
        "params": ["Player ID"],
        "category_id": 3,
        "available": true,
        "qty_values": {"min": 1, "max": 10},
        "product_type": "package"
    }
]

Filter Products by IDs

/api/v2/products?products_id=12,15,20

Minimal Product Data

/api/v2/products?base=1
Quantity Values Note
qty_values: {"min": 1, "max": 10} — quantity must be within this range.
product_type: "package" — quantity is fixed at 1.

Categories (Content)

GET Lists store categories, or products of one category.

/api/v2/content/0
/api/v2/content/{category_id}

Create Order

Important: Idempotent Requests with order_uuid
The order_uuid parameter is required (UUIDv4). When you send a request with the same order_uuid more than once, the system will not create a duplicate order — it returns the original order data. Always generate a new UUIDv4 for each unique order attempt.

POST Creates a new order for a product.

/api/v2/order

Request Body (JSON)

{
    "product_id": 12,
    "qty": 1,
    "order_uuid": "ecbdd545-e616-4aee-8770-7eefa977bc34",
    "params": {
        "player_id": "12345678"
    }
}
ParameterDescriptionRequired
product_idProduct ID from products listYes
qtyQuantity (respect qty_values)Yes
order_uuidUnique UUIDv4 (idempotency key)Yes
paramsDynamic fields required by the productDepends

Response Example

{
    "status": "OK",
    "data": {
        "order_id": "ecbdd545-e616-4aee-8770-7eefa977bc34",
        "status": "wait",
        "price": 0.95,
        "data": {"player_id": "12345678"}
    }
}

Status Values: accept  |  wait  |  reject

Check Orders

GET Checks the status of one or multiple orders (comma-separated, up to 50).

/api/v2/check?orders=uuid1,uuid2

Response Example

{
    "status": "OK",
    "data": [
        {
            "order_id": "ecbdd545-e616-4aee-8770-7eefa977bc34",
            "quantity": 1,
            "data": {"player_id": "12345678"},
            "created_at": "2026-07-24 10:30:00",
            "product_name": "UC 60",
            "price": "0.95",
            "status": "accept",
            "delivery": ["CODE-XXXX-YYYY"]
        }
    ]
}

Balance

/api/v2/balance

Error Codes

Errors are returned in the detail field with this shape:

{"detail": {"code": 100, "message": "Insufficient balance"}}

Auth Error Codes

CodeDescription
120Api Token is required!
121Token error
122Not allowed to use API
123IP not allowed
130The site is under maintenance

Order Error Codes

CodeDescription
100Insufficient balance
105Quantity not available
106Missing required field
109Product deleted or not found
110Product not available now
111Too many requests — slow down
114Unknown error

Rate Limits

Default: 60 requests/minute per API key (orders: 30/minute). When exceeded, HTTP 429 is returned with a Retry-After header.