Changelog
What changed in the GameCoin API, the server SDKs and the browser files, newest first, with the version where each thing arrived.
On this page
How to read this page
The API is versioned by its address, /api/v1. A client should ignore a field it does not know, so that a field added later does not break it. The server SDKs (Node.js, Python, PHP, Go and C#) share one version number and ship the same features together: while the version is 0.x, a minor release may change an SDK's API. The browser files are served by GameCoin itself, so you always get the current version.
Note
The server SDKs are a pre-release and are not on the package registries yet. The versions below are the ones you get from the source of each SDK. The full list of changes of each one is in its CHANGELOG.md.
Server SDKs
0.4.0: manage the catalog (October 2026)
- New resources
currencies,itemsandpacks, each withcreate,get,update,archiveandlist. They are the catalog management API, in all five SDKs. - Results carry the catalog object plus its
status,createdAtandupdatedAt. A pack also carries itssortOrderandavailability. archivenever deletes: the resource stays readable, andlistleaves archived resources out unless you ask for them.- Each environment has its own catalog: what a test key creates exists in
testonly. - A create has no idempotency key, because the code or the SKU is its natural key. A taken one is
CONFLICTwithCODE_TAKENorSKU_TAKEN. - Twelve resources and thirty-two calls in all.
0.3.0: gift codes and pack availability
codes.redeemredeems a gift code for a player. A refused code isVALIDATION_FAILEDwithCODE_INVALIDand is never retried.checkouts.createtakes acreatorCode, and an order shows itscreatorCode.- Packs have an
availability(sale window, stock left, founder flag), and the catalog tells whether the game is inprelaunchand when it launches. - New error codes
PACK_NOT_AVAILABLEandPACK_SOLD_OUT, both409. - Fields added in this version read as empty when an older server does not send them, so an older API or a queued webhook event stays readable.
0.2.0: locale and webhook verification
checkouts.createtakes alocale(fr,enornl): the language of the payment page, the receipt and the e-mails.- A function that checks the signature of a webhook and returns a typed event. It needs no client and makes no request. A call older than five minutes is refused.
- A signature error with a
reason:missing_header,malformed_header,no_matching_signature,timestamp_out_of_toleranceorinvalid_payload. - Event types as constants:
order.fulfilled,order.refunded,order.chargeback,wallet.creditedandwebhook.test.
0.1.0: the first release
- The whole server API:
catalog,players,wallet,ledger,inventory,purchases,checkoutsandorders. - The
ext()helper for players named with your own id, with the reference encoded exactly once. - An idempotency key on every write, and a
replayedflag on each result. - Automatic retries on network errors, timeouts,
5xxand429, with backoff andRetry-After. The refund is retried on429only. - A typed error with
code,status,detailsandretryAfter. The secret key never appears in an error or in a printed client.
Browser files
| File | Version | What it is |
|---|---|---|
/sdk/gamecoin-1.2.0.js | 1.2.0 | The browser SDK: one file, no dependency. Never changes. /sdk/gamecoin.js serves the latest version. |
/sdk/gamecoin-widget-1.0.0.js | 1.0.0 | The shop widget, loaded from the same host. Never changes. /sdk/gamecoin-widget.js serves the latest version. |
API
Catalog management
GET, POST, PATCH and DELETE on /currencies, /items and /packs, with the secret key: create a catalog from a script, change a price, archive a pack. See Catalog management.
Codes, creator codes and founder packs
Gift codes (POST /players/{player}/codes/redeem and POST /client/me/codes/redeem), a creatorCode on checkouts, and a sale window, a stock and a founder flag on packs. See Gift codes and creator codes and Founder packs.
Webhooks
Signed events for orders and wallets, with retries and a delivery log. See Webhooks.
The first release
The server API (/players, /wallet, /ledger, /inventory, /purchases, /checkouts, /orders) and the client API (/client/**) for browsers, with the three credentials: secret key, publishable key and player token.
Where next
- Server SDKs: the five SDKs side by side.
- API reference: every route and field.