Error response format
The WikiParfum API returns errors in the standard GraphQL error format. Every GraphQL error carries amessage and an extensions object with a machine-readable code. Branch on extensions.code — never on message, whose wording can differ for the same code.
The HTTP status of a response follows the error it contains, so a response can be 404 or 500 and still carry a GraphQL body. Always parse the body, whatever the status.
There are two shapes, depending on when the error happens.
Request-level errors
Errors raised before any field is resolved — while authenticating the request, or because the query itself is invalid — reject the whole request. The response has nodata key. Authentication errors also prefix the message with Context creation failed: :
Field-level errors
Errors raised while resolving a field returnnull for that field, alongside the error. Other fields in the same request can still return data, so check both data and errors. The path of each error names the field that failed:
Error codes
Authentication
Request-level. The request never reaches your query.Invalid queries
Request-level. The query or its variables are rejected before execution.Field errors
Field-level. The failed field isnull; other fields may still return data.
Some queries report invalid arguments with a descriptive sentence as both the
message and the code — for example Ingredient not found or You must provide an ingredient or an ingredientSlug — with HTTP 500. These are caused by the request, not by the server: fix the arguments instead of retrying.
Handling errors in your integration
Authentication errors
If you receiveNO_APIKEY or USER_NOT_FOUND, verify that:
- The
Authorizationheader is present in every request and contains the raw API key (noBearerprefix). - The API key is correct and has not been rotated.
Access errors
If you receiveLOCATION_NOT_ALLOWED, the request is coming from an IP address that is not on your allowlist. Do not retry. Contact your ScentXP account manager to add your server IPs.
If you receive INSTALLATION_SUSPENDED, access for your integration has been suspended. Do not retry. Contact your ScentXP account manager.
Not found errors
Codes ending in_NOT_FOUND mean the requested entity does not exist or is not available to your integration. Do not retry. Verify the ID, slug or EAN you are using.
Invalid queries
HTTP 400 means the request itself is invalid. Do not retry. Fix the query, its variables or the request body. Exploring the Schema shows how to check field and argument names.Transient errors
SEARCH_SERVICE_UNREACHABLE, SEARCH_SERVICE_UNAVAILABLE, SEARCH_SERVICE_BAD_RESPONSE and a request-level INTERNAL_SERVER_ERROR with HTTP 500 indicate a temporary failure on the ScentXP side. Retry with exponential backoff.
Internal errors
INTERNAL_SERVER_ERROR always comes with the message Internal server error; the API never exposes internal details such as database errors or stack traces. Use the HTTP status to decide what to do:
- HTTP 400 — the query is invalid. See Invalid queries.
- HTTP 500 — a temporary failure. Retry with exponential backoff.
- HTTP 200 — one field failed while the rest of the request succeeded. Check the arguments of the failed field first: for example, asking for brands or perfumes that your integration’s access rules exclude fails this way. If the arguments are correct, retry once.

