ChicksGold Seller API (1.0.0)
Manage your currency offers and prices from your own systems.
The ChicksGold API lets you manage your Currency offers from your own systems. With it you can:
- read your seller account and the current price update cooldown;
- list your offers and read one offer;
- pause and activate offers;
- update prices, one offer at a time or in batches of up to 100.
Access is granted by ChicksGold to approved sellers only. Requests without a valid key are rejected.
Send your API key in the x-api-key header on every request. Your API key is provided to you by ChicksGold when your access is enabled.
x-api-key: <your API key>- Keep your key secret. Never put it in a browser, a mobile app or public code. If it is exposed, contact ChicksGold Support so it can be replaced.
- Production and staging keys are different and not interchangeable. A key only works on the environment it was issued for.
- A missing or invalid key returns
401 INVALID_API_KEY. A key that is valid but not registered for your account, or that has been disabled, returns403 API_KEY_NOT_REGISTEREDor403 API_KEY_DISABLED.
| Environment | Base URL |
|---|---|
| Production | https://api.chicksgold.com/v1 |
| Staging | https://staging-api.chicksgold.com/v1 |
Both environments require an API key issued by ChicksGold, and the keys are different. Staging is for testing your integration before you go live. It is not open access and not a public sandbox: it is available only to approved sellers. Staging is separate from production.
Each offer is sold per unit of the game currency (unit, for example M for millions). price is in USD per 1 unit, a JSON number with at most 5 decimal places. quantity and minimum are expressed in unit. For example, 376 M at a price of 0.26650 is 376 × 0.26650 = 100.20 USD. Stock and minimum order are managed on the ChicksGold website; the API does not change them.
When you exceed a limit you get 429. Read the Retry-After header (seconds), wait that long and retry with backoff. Do not retry in a tight loop.
| Code | Status | Meaning |
|---|---|---|
RATE_LIMITED | 429 | You are sending requests too fast. Slow down and retry after Retry-After. |
QUOTA_EXCEEDED | 429 | You used the daily request quota for your key. |
PRICE_UPDATE_COOLDOWN | 429 | A business rule, not a rate limit: this offer's price was changed too recently. See Price update cooldown. |
The price of each offer can be changed at most once per cooldown window. The window is 15 minutes for now and might be shorten in the future. Do not hard-code it: read priceCooldownSeconds from GET /me and priceUpdatableAt from each offer.
- A price change inside the window is rejected with
429 PRICE_UPDATE_COOLDOWN. The response carriesRetry-After(seconds until the price can change again) anddetails.priceUpdatableAt. - In a batch, an offer inside its window is reported as
cooldownfor that item and the rest of the batch still succeeds. - Sending the price the offer already has succeeds with
changed: falseand does not start a new window. - The cooldown is per offer: changing one offer's price does not delay another offer.
GET /offers returns offers newest first, in pages. Use limit (1 to 100, default 50) to set the page size. A page has data, hasMore and nextAfter. While hasMore is true, call the endpoint again with after set to the previous page's nextAfter, keeping the same filters. On the last page hasMore is false and nextAfter is null.
Every error uses the same envelope:
{
"error": {
"code": "OFFER_NOT_FOUND",
"message": "Offer not found.",
"requestId": "3f0c2a8e-6d7b-4b1e-9b0a-2e1f4c5d6a7b",
"details": {}
}
}codeis stable and machine-readable: branch on it, not onmessage, which may change.messageis a human-readable explanation.requestIdidentifies the request and is also returned in thex-request-idheader. Include it when you contact ChicksGold Support.detailsis optional and depends on the code.
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_FAILED | The request is malformed, has unknown fields or invalid values. details.errors lists each problem. |
| 400, 413, 415 | BAD_REQUEST | The request was rejected before it was processed. |
| 401 | INVALID_API_KEY | The x-api-key header is missing or the key is invalid. |
| 403 | API_KEY_NOT_REGISTERED | The key is valid but is not registered for a seller account. |
| 403 | API_KEY_DISABLED | The key has been disabled. |
| 403 | SELLER_API_DISABLED | API access is not enabled for your account. |
| 403 | SELLER_RESTRICTED | Activating a paused offer while your seller account is restricted. Contact support and quote the Ref in the message. |
| 403 | FORBIDDEN | The request could not be authorized. Contact support with the requestId. |
| 404 | NOT_FOUND | The path or method does not exist. |
| 404 | OFFER_NOT_FOUND | The offer does not exist or is not yours. |
| 409 | OFFER_OUT_OF_STOCK | The offer cannot be activated because it has no stock. |
| 409 | OFFER_NOT_ACTIVATABLE | The offer's status (unavailable) cannot be changed through the API. |
| 413 | BATCH_TOO_LARGE | A batch has more than 100 items. |
| 413 | PAYLOAD_TOO_LARGE | The request body is larger than 1 MiB. |
| 429 | RATE_LIMITED | Too many requests per second. |
| 429 | QUOTA_EXCEEDED | The daily quota was used. |
| 429 | PRICE_UPDATE_COOLDOWN | The offer's price was changed too recently. |
| 500 | INTERNAL_ERROR | Unexpected error. |
| 502 and other 5xx | UPSTREAM_ERROR | A temporary problem on our side. Retry with exponential backoff. |
A 5xx response is temporary: wait, then retry with backoff (for example 1 s, 2 s, 4 s, up to a few attempts). Retries are safe by design: sending the price an offer already has returns changed: false, and pause and activate can be repeated safely. If the problem continues, contact support with the requestId.