1. Get all products
Get all available products with their variants. Endpoint:GET /api/products
Response
2. Get product variants
Endpoint:GET /api/products/{productId}/variants
Response
client_stock object (details).
3. Purchase a product
Endpoint:POST /api/products/purchase/{variantId}
Basic request (no inputs required):
requires_input is true):
Response
4. Retrieve order keys
Single order
Endpoint:GET /api/products/order/{orderId}
Response
Multiple orders
Endpoint:POST /api/products/orders/retrieve
Request
Status values
If
has_key is false, poll the endpoint until the key becomes available.
Example workflow
Input fields
Some products need extra data, for example game account details. Read theinput_fields of the variant (or product in the catalog) and send those fields in the purchase body. Missing or invalid fields return a validation error.
Best practices
- Read
deliveryandavailablefirst (delivery modes). - Check
available_balancebefore large batches. - Poll
orders/retrieveforprocessingorders and stop when the status is final.