Skip to content

ChicksGold Seller API (1.0.0)

Manage your currency offers and prices from your own systems.

Overview

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.

Authentication

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, returns 403 API_KEY_NOT_REGISTERED or 403 API_KEY_DISABLED.

Environments

EnvironmentBase URL
Productionhttps://api.chicksgold.com/v1
Staginghttps://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.

Prices and units

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.

Rate limits

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.

CodeStatusMeaning
RATE_LIMITED429You are sending requests too fast. Slow down and retry after Retry-After.
QUOTA_EXCEEDED429You used the daily request quota for your key.
PRICE_UPDATE_COOLDOWN429A business rule, not a rate limit: this offer's price was changed too recently. See Price update cooldown.

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 carries Retry-After (seconds until the price can change again) and details.priceUpdatableAt.
  • In a batch, an offer inside its window is reported as cooldown for that item and the rest of the batch still succeeds.
  • Sending the price the offer already has succeeds with changed: false and does not start a new window.
  • The cooldown is per offer: changing one offer's price does not delay another offer.

Pagination

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.

Errors

Every error uses the same envelope:

{
  "error": {
    "code": "OFFER_NOT_FOUND",
    "message": "Offer not found.",
    "requestId": "3f0c2a8e-6d7b-4b1e-9b0a-2e1f4c5d6a7b",
    "details": {}
  }
}
  • code is stable and machine-readable: branch on it, not on message, which may change.
  • message is a human-readable explanation.
  • requestId identifies the request and is also returned in the x-request-id header. Include it when you contact ChicksGold Support.
  • details is optional and depends on the code.
StatusCodeWhen
400VALIDATION_FAILEDThe request is malformed, has unknown fields or invalid values. details.errors lists each problem.
400, 413, 415BAD_REQUESTThe request was rejected before it was processed.
401INVALID_API_KEYThe x-api-key header is missing or the key is invalid.
403API_KEY_NOT_REGISTEREDThe key is valid but is not registered for a seller account.
403API_KEY_DISABLEDThe key has been disabled.
403SELLER_API_DISABLEDAPI access is not enabled for your account.
403SELLER_RESTRICTEDActivating a paused offer while your seller account is restricted. Contact support and quote the Ref in the message.
403FORBIDDENThe request could not be authorized. Contact support with the requestId.
404NOT_FOUNDThe path or method does not exist.
404OFFER_NOT_FOUNDThe offer does not exist or is not yours.
409OFFER_OUT_OF_STOCKThe offer cannot be activated because it has no stock.
409OFFER_NOT_ACTIVATABLEThe offer's status (unavailable) cannot be changed through the API.
413BATCH_TOO_LARGEA batch has more than 100 items.
413PAYLOAD_TOO_LARGEThe request body is larger than 1 MiB.
429RATE_LIMITEDToo many requests per second.
429QUOTA_EXCEEDEDThe daily quota was used.
429PRICE_UPDATE_COOLDOWNThe offer's price was changed too recently.
500INTERNAL_ERRORUnexpected error.
502 and other 5xxUPSTREAM_ERRORA 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.

Download OpenAPI description
Overview
License
Proprietary
Languages
Servers
Production
https://api.chicksgold.com/v1
Staging
https://staging-api.chicksgold.com/v1