Skip to content
lexratesAccount

API · problem · HTTP 400

That regime belongs to another domain

This page is what the type field of the error points at. Every answer this API refuses carries one, and it is a stable address rather than a version of the docs.

The refusalwrong-domain
When it happens
A per-diem regime was sent to /v1/compute, or a mileage regime to /v1/per-diem/compute.
What to do
The answer names the endpoint that does answer. It is a 400 and not a 404 on purpose: the regime exists, only the arithmetic lives elsewhere.
The shape of the answerRFC 9457

Problem details: type, title, status and detail, plus whatever the individual failure can usefully add. The detail is written for the person reading the log, and names the parameter or the id that caused it.

The fields every problem carries
typeThis page’s address. Stable.
titleThat regime belongs to another domain
status400
detailWhat went wrong, in this request.

The full list of failures, with the schema, is in the API documentation.