Errors
Errors
Every error code API v1 answers with, what causes it and what to do.
An error is answered with Content-Type: application/problem+json and a body like this:
{
"type": "https://docs.fungies.io/api/errors/KEY_INVALID",
"title": "The API key is missing, malformed, unknown, revoked or expired",
"status": 401,
"code": "KEY_INVALID",
"requestId": "req_01M6QZZQ39PEPXW3GKC68MRHTT",
"retryable": false
}codeis what to branch on. It never changes for an error;titlemay be reworded.typelinks the error's page below.retryablesays whether the same request can succeed later. Retry a write with the sameIdempotency-Key.requestIdidentifies the request. Quote it when you contact support.detail, when present, says more about this occurrence.errorslists each field that failed, as{ "path", "code" }.
| Code | Status | Title | Retryable |
|---|---|---|---|
BODY_INVALID | 400 | The body is not one JSON object this route takes | no |
BODY_NOT_JSON | 415 | A write takes an application/json body | no |
BODY_TOO_LARGE | 413 | The body is larger than 256 KiB | no |
CATALOGUE_NOT_WRITABLE | 409 | This workspace’s catalogue cannot be written through the API yet | no |
CATALOGUE_WRITE_REFUSED | 409 | The catalogue refused this write | no |
CHARGE_BELOW_MINIMUM | 400 | The charge is below the payment provider’s minimum for its currency | no |
CHARGE_CAP_EXCEEDED | 422 | The charge is above its cap: ten times the cycle amount | no |
CHARGE_LINES_UNPRICED | 422 | A line names an offer not priced in the subscription’s currency | no |
CHARGE_NOT_FOUND | 404 | No such charge in this workspace and mode | no |
CHARGE_NOT_SERVED | 422 | This subscription cannot be charged through the API yet | no |
CHARGE_QUOTA_EXCEEDED | 429 | The subscription took its charges for the last 24 hours; retry after the stated delay | yes |
CHARGE_SCHEDULE_AMOUNT_SOURCE_NOT_SERVED | 422 | Only offer_lines is charged through the API yet | no |
CHARGE_SCHEDULE_INSTRUMENT_NOT_SERVED | 422 | Only subscription_current is charged yet | no |
CHARGE_SCHEDULE_NOT_FOUND | 404 | No such charge schedule in this workspace and mode | no |
CHARGE_SCHEDULE_TRANSITION_REFUSED | 409 | The schedule’s status does not lead there | no |
CHARGES_NOT_ENABLED | 403 | Charges through the API are not enabled for this workspace yet | no |
CURSOR_INVALID | 400 | The cursor is not one this list issued | no |
CUSTOMER_NOT_FOUND | 404 | No such customer in this workspace and mode | no |
DISCOUNT_ARCHIVED | 409 | The discount is archived | no |
DISCOUNT_CODE_BY_TYPE | 400 | A code discount names a code; a sale names none | no |
DISCOUNT_CODE_TAKEN | 409 | Another live discount in this mode has this code | no |
DISCOUNT_CURRENCY_ABSENT | 409 | The stored discount has no currency; send one | no |
DISCOUNT_CURRENCY_MISMATCH | 409 | The currency is not the one this workspace prices its offers in | no |
DISCOUNT_NOT_FOUND | 404 | No such discount in this workspace and mode | no |
DISCOUNT_OFFER_UNKNOWN | 400 | An offer id is not a live offer in this mode | no |
DISCOUNT_TIMEZONE_INVALID | 400 | timezone is not an IANA time zone | no |
DISCOUNT_VALUE_NOT_REPRESENTABLE | 400 | A percentage is whole, 1 to 100; a fixed value is at least 1 | no |
DISCOUNT_WINDOW_INVALID | 400 | validUntil is after validFrom | no |
FEATURE_NOT_ENABLED | 403 | This feature is not enabled for this workspace | no |
FIELD_UNKNOWN | 400 | The body names a field this route does not take | no |
IDEMPOTENCY_IN_PROGRESS | 409 | A request with this Idempotency-Key is still in progress | yes |
IDEMPOTENCY_KEY_INVALID | 400 | The Idempotency-Key is not 1 to 255 printable characters | no |
IDEMPOTENCY_KEY_REQUIRED | 400 | This write needs an Idempotency-Key header | no |
IDEMPOTENCY_KEY_REUSED | 409 | This Idempotency-Key was used with another request | no |
INTERNAL | 500 | The request failed on our side | yes |
KEY_IN_URL | 400 | An API key may only be sent in the Authorization header | no |
KEY_INVALID | 401 | The API key is missing, malformed, unknown, revoked or expired | no |
KEY_SCOPE_MISSING | 403 | The API key does not hold a scope this route needs | no |
KEY_VERIFY_UNAVAILABLE | 503 | The API key could not be verified right now | yes |
LIMIT_INVALID | 400 | The limit is not a whole number from 1 to 100 | no |
LIST_TOO_BROAD | 422 | The list cannot be read whole in time; narrow it with a filter | no |
MEDIA_CONTENT_TYPE_REFUSED | 400 | An image is PNG, JPEG or WebP | no |
MEDIA_KEY_INVALID | 400 | The media key was not issued for this row | no |
MEDIA_TOO_LARGE | 400 | An image is at most 10 MiB | no |
MEDIA_UPLOAD_EXPIRED | 409 | The upload this Idempotency-Key signed has expired; sign with a new key | no |
METHOD_NOT_ALLOWED | 405 | Method not allowed on this route | no |
MODE_NOT_PROVISIONED | 409 | This workspace is not provisioned in this key’s mode yet | no |
OFFER_ARCHIVED | 409 | The offer is archived; restore it first | no |
OFFER_CURRENCY_MISMATCH | 400 | The price is not in the workspace’s currency | no |
OFFER_CURRENCY_UNSET | 409 | The workspace’s currency is not set yet | no |
OFFER_HAS_CURRENCY_PRICES | 409 | The offer is priced per currency; one price cannot restate it | no |
OFFER_KEY_NOT_FOUND | 404 | No such key in this offer, workspace and mode | no |
OFFER_KEYS_NOT_SERVED | 422 | This workspace’s key stock cannot be written through the API yet | no |
OFFER_NOT_FOUND | 404 | No such offer in this workspace and mode | no |
OFFER_NOT_KEYED | 409 | The offer is not a key offer of this workspace’s published catalogue | no |
OFFER_STOCK_IS_KEY_COUNT | 400 | A key offer’s stock is its key count | no |
OFFER_TERMS_INVALID | 400 | The offer’s terms break a pricing rule; detail names it | no |
ORDER_ITEM_NO_DOWNLOAD | 409 | The item has no file to download | no |
ORDER_ITEM_NOT_FOUND | 404 | No such item in this order | no |
ORDER_ITEM_WITHHELD | 409 | The item is refunded or withheld | no |
ORDER_NOT_FOUND | 404 | No such order in this workspace and mode | no |
ORDER_NOT_PAID | 409 | The order is not paid | no |
ORDER_SERVED_BY_V0 | 409 | This order is served by API v0; download its item there | no |
PAYMENT_NOT_FOUND | 404 | No such payment in this workspace and mode | no |
PRODUCT_ARCHIVED | 409 | The product is archived; restore it first | no |
PRODUCT_HAS_OPEN_OFFERS | 409 | An offer of the product is on sale; archive with archiveOffers | no |
PRODUCT_KIND_NEEDS_FOLDER | 400 | This kind needs a folder, which this API does not set yet | no |
PRODUCT_KIND_NOT_GAME | 400 | Only a game takes game fields | no |
PRODUCT_NOT_FOUND | 404 | No such product in this workspace and mode | no |
PRODUCT_REQUIREMENT_SYSTEM_UNLISTED | 400 | A requirement names a system the product does not list | no |
QUERY_PARAM_INVALID | 400 | A query field’s value is not one this route takes | no |
QUERY_PARAM_UNKNOWN | 400 | The query names a field this route does not take | no |
RATE_LIMITED | 429 | Too many requests; retry after the stated delay | yes |
ROUTE_NOT_FOUND | 404 | No such route | no |
SERVICE_UNAVAILABLE | 503 | The service could not answer; retry with the same Idempotency-Key | yes |
STALE_WRITE | 409 | The row changed since expectedUpdatedAt; current holds it | no |
SUBSCRIPTION_ALREADY_PAUSED | 409 | The subscription’s collection is already paused | no |
SUBSCRIPTION_ENDED | 409 | The subscription has ended | no |
SUBSCRIPTION_LEGACY_BORN | 409 | This subscription was sold before the API v1 records; manage it through v0 | no |
SUBSCRIPTION_NOT_CHARGEABLE | 422 | The subscription is not active or past due here, or has no instrument to charge | no |
SUBSCRIPTION_NOT_FOUND | 404 | No such subscription in this workspace and mode | no |
SUBSCRIPTION_NOT_TRIALING | 409 | The subscription is not in its trial | no |
SUBSCRIPTION_WRITE_NOT_SERVED | 422 | This subscription cannot be written through the API yet | no |
TAG_NAME_TAKEN | 409 | A live tag has this name; current holds it | no |
TAG_UNKNOWN | 400 | A tag id is not a live tag | no |
TAX_LOCATION_UNRESOLVABLE | 422 | Tax could not be calculated for the location given | no |
TAX_NUMBER_FORMAT_INVALID | 400 | The taxNumber is not in this scheme’s format | no |
TAX_NUMBER_REQUIRED | 400 | A company quote needs its taxNumber | no |
TAX_NUMBER_TYPE_NOT_FOR_COUNTRY | 400 | The taxNumberType is not available for this country | no |
TAX_NUMBER_TYPE_UNKNOWN | 400 | The taxNumberType is not one a checkout accepts | no |
TEST_HELPER_LIVE_KEY | 403 | A test helper takes a test-mode key only | no |
TEST_PURCHASE_CHECKOUT_FOREIGN | 403 | The checkout is not one of this key’s workspace | no |
TEST_PURCHASE_STEP_REFUSED | 422 | A checkout step of the test purchase was refused | no |
USAGE_EVENT_NOT_FOUND | 404 | No such usage event in this workspace and mode | no |
USAGE_EVENT_OUTSIDE_WINDOW | 422 | The event is over an hour old or over five minutes ahead | no |
USAGE_EVENT_VALUE_NOT_NUMERIC | 422 | The metered property is not a finite number | no |
USAGE_METER_ARCHIVED | 409 | The usage meter is archived; restore it first | no |
USAGE_METER_DEFINITION_FIXED | 409 | An event has matched the meter; its event name and aggregation are fixed | no |
USAGE_METER_EVENT_NAME_TAKEN | 409 | A live meter already counts this event name | no |
USAGE_METER_NOT_FOUND | 404 | No such usage meter in this workspace and mode | no |
USAGE_UNAVAILABLE | 503 | Usage could not be read or written right now; retry | yes |
VARIANT_ARCHIVED | 409 | The variant is archived; restore it first | no |
VARIANT_HAS_OFFERS | 409 | Offers name the variant; archive with archiveOffers | no |
VARIANT_NOT_FOUND | 404 | No such variant in this workspace and mode | no |
VARIANT_ORDER_MISMATCH | 409 | The order must name every live variant once | no |
WEBHOOK_DELIVERY_NOT_FOUND | 404 | No such webhook delivery in this workspace and mode | no |
WEBHOOK_DELIVERY_NOT_RETRYABLE | 409 | Only a settled delivery inside its replay window can be retried | no |
WEBHOOK_ENDPOINT_LIMIT_REACHED | 409 | This workspace holds the most webhook endpoints it may | no |
WEBHOOK_ENDPOINT_NOT_FOUND | 404 | No such webhook endpoint in this workspace and mode | no |
WEBHOOK_ENDPOINT_NOT_WRITABLE | 409 | This webhook endpoint can be changed in the dashboard only | no |
WEBHOOK_EVENT_TYPE_UNKNOWN | 400 | The type is not an event type the catalogue names | no |
WEBHOOK_NOT_SUBSCRIBED | 409 | The endpoint is not subscribed to this event type | no |
WEBHOOK_TYPE_NOT_IN_VERSION | 409 | The event type has no rendering at the API version the endpoint pins | no |
WEBHOOK_URL_NOT_ALLOWED | 422 | Webhooks are sent over HTTPS on port 443 to a public host only | no |
WORKSPACE_HISTORY_UNMAPPED | 409 | This workspace’s earlier records are not mapped to the API yet | no |
WORKSPACE_INACTIVE | 403 | The account this subscription bills on takes no payments | no |