# HippoLink Public API changes

Dated entries, newest first. Breaking changes are announced here at least 30 days before they ship (see Compatibility policy). This list is also published at `https://auth.hippolink.app/CHANGES.md` and `https://auth.dev.hippolink.app/CHANGES.md`.

### 2026-11-30

- `listBuylistRules` no longer lists `limit` and `offset`. It never applied them: every call returns every rule of the game, and still does. A request that sends them is answered as before, with the parameters ignored.
- `replaceShippingRules` (`PUT /v1/stores/{store_uuid}/shipping/rules`): a rule's `is_enabled`, when sent, must be `true` or `false`. Any other value, `null` and strings like `"false"` included, is 422 `validation_error` naming `rules[i].is_enabled`. Before, `"false"` was stored as enabled and `null` was a 500. Leaving `is_enabled` out still means enabled.
- `replaceShippingRules` (`PUT /v1/stores/{store_uuid}/shipping/rules`) takes at most 250 rules, the most one `listShippingRules` page returns, so a store's ruleset can always be read back whole before it is replaced. More is 422 `validation_error` naming `rules`.
- Production is live at `https://public-api.hippolink.app`. Create a key on the My API Keys tab in Settings of the HippoLink web app. Production serves every area except `staff` and `billing`.
- The web app now offers key lifetimes of 30 days, 180 days or 1 year, and no longer changes a key's expiry after it is created. An existing key that never expires keeps working. When a key expires, create a new one.

### 2026-11-27

- Production now serves writes. `inventory`, `locations`, `orders` and `repricing` are served with writes, and production adds `shipping_purchases` and `refunds` (writes), `buylist`, `buylist_payouts`, `kiosk` and `integrations` (writes) and `store_settings` (read only), the same areas development serves. Every write `POST` takes an `Idempotency-Key` (`PUT`, `PATCH` and `DELETE` don't use one); see Writing through the API. The endpoint list and production's OpenAPI file list the new operations.
- New: the `price_lists` area, in production and development. `GET /v1/stores/{store_uuid}/price-lists/buylist` (`getBuylistPriceList`, `price_lists:read`, cost 1) is what the store pays, one row per SKU. `GET /v1/stores/{store_uuid}/price-lists/retail` (`getRetailPriceList`, `price_lists:read`, cost 5, at most 250 SKUs a page) is what the store sells for: one row per in-stock SKU with `base` (the store's own price, currency and quantity), each connected marketplace's price and quantity under `marketplaces`, and `price_updated_at` (the last time HippoLink changed the base price). `marketplace=BASE` lists the base price alone. See Price lists.
- Price lists are read with your own key whose access to a store includes `price_lists`, beside any other areas. Each store's grant carries its own choices of what it shares, set in the key editor: the buylist, the retail list, and within the retail list the base price, each marketplace, quantities and the last price update. A field the grant doesn't share is absent from the response, not null. Asking for a list the grant doesn't share, or for a `marketplace=` source it wasn't given (`BASE` included), is 403 `api_key_price_list_not_shared`. See What a key shares.
- Each API key has its own request budget (25 tokens refilling at 5 a second by default). `X-RateLimit-*` and 429 `api_rate_limited` describe the key that made the call, and one key emptying its budget doesn't slow your others. See Rate limits.
- Every response, errors included, is gzip-compressed when the request sends `Accept-Encoding: gzip`, and then carries `Content-Encoding: gzip` and `Vary: Accept-Encoding`. A body under 4 KB, a file download and the answer to a `HEAD` request are sent as they are. Most HTTP clients send the header and decompress for you.

### 2026-11-26

- New: `GET /v1/stores/{store_uuid}/catalog/sku-lookup` (`lookupCatalogSkus`, `inventory:read`, cost 5) finds the SKU ids of a card by TCGplayer product id or by game and name, so a card the store has never stocked can be added. See Adding a card you have never stocked.
- `listOrders` can sync changes: send `updated_after`, then pass each page's `next_cursor` back as `after` until `has_more` is false, and keep the last `next_cursor` for your next poll. A change appears once it is 60 seconds old. `countOrders` takes the same `updated_after`. See Syncing changes.
- `ordered_after`, `ordered_before`, `resolved_after` and `resolved_before` on `listOrders`, `countOrders` and `listAvailableOrders` must now be RFC 3339 timestamps with a time zone, such as `2026-11-26T15:04:05Z`. Anything else, including a date with no time, is 400 `query_param_invalid` naming the parameter.
- `listInventory` can sync: call it with `sync=true` before reading the full list, then poll with `after` to get only the products whose stock or price changed since, and the ones the store no longer stocks in `removed`. See Syncing inventory. Requests without `sync` or `after` are unchanged. New error code: 400 `cursor_expired`; `cursor_invalid` and 422 `cursor_param_conflict` are answered here too.
- Each environment now publishes its OpenAPI file, as `openapi.json` and `openapi.yaml`, on the host that signs its tokens: `https://auth.hippolink.app` for production and `https://auth.dev.hippolink.app` for development. Development's file lists everything development serves, writes included.
- Rate-limit costs raised on previews, jobs and bulk writes, before production launches. Previews, price explanations, buylist quotes, marketplace report quotes and the audit log search now cost 5. Imports, delete jobs, bulk and intake inventory writes, CardChaos syncs and pushes, buylist imports, box rebuilds, alphabetizing locations, forced marketplace resyncs and the listing drift list now cost 10. The endpoint list and each OpenAPI file give every operation's cost.
- Starting a label job (`POST .../inventory/label-jobs`) now needs `inventory:write`, and starting a shipping rate batch (`POST .../orders/shipping/rate-batches`) needs `orders:write`. Both create something you fetch again, so they now take an `Idempotency-Key` and a retry with the same key doesn't start a second job. Production lists neither until it serves writes in those areas.
- `GET .../order-sync/status` (development) doesn't return marketplace webhook URLs or their path ids to an API key.
- Development: the buylist, `buylist_payouts`, kiosk and integrations areas are served with writes, and `store_settings` is served read-only.
- Idempotency: the stored fingerprint of a write now covers a body sent without `Content-Type: application/json`, and the query string when there is one. Reusing a key for a request that differs only in either is now 422 `idempotency_key_conflict` instead of a replay.
- Every answer to a call made with an access token, and every answer from the token exchange, now carries `Cache-Control: no-store` (unless the operation sets its own) and `Strict-Transport-Security`.
- An endpoint that can't check an API key now refuses the call with 503 `api_key_enforcement_unavailable` instead of serving it.
- The `detail` of `idempotency_key_conflict` and `idempotency_key_in_progress` no longer tells a script to reload the page or sign in.
