Integrate G-max into your own platform using our simple REST API. All requests use HTTP POST and return JSON.
All API requests require your personal API key. You can find and manage your key in your dashboard → API Access.
Pass your key as a POST parameter named key with every request.
All requests are HTTP POST to the URL above. Responses are always JSON. Parameters are sent in the request body as form data.
| Parameter | Type | Required |
|---|---|---|
| key | string | Required |
| action | string | Required — Value: services |
| Parameter | Type | Required |
|---|---|---|
| key | string | Required |
| action | string | Required — Value: balance |
| Parameter | Type | Required |
|---|---|---|
| key | string | Required |
| action | string | Required — Value: add |
| service | integer | Required — Service ID from services list |
| link | string | Required — Target URL or username |
| quantity | integer | Required — Must be within min/max range |
| Parameter | Type | Notes |
|---|---|---|
| key | string | Required |
| action | string | Required — Value: status |
| order | integer | Single order |
| orders | string | Multiple — Comma-separated IDs: 1,2,3 |
| Error Message | Meaning |
|---|---|
| Invalid key | API key is wrong, missing, or your account is banned |
| Incorrect request | Missing or invalid parameters in your request |
| Not enough funds | Wallet balance is insufficient for this order |
| Invalid service | Service ID does not exist or is currently inactive |
| Invalid quantity | Quantity is outside the min/max range for this service |
| Order not found | Order ID does not exist or belongs to a different account |