{
  "type": "https://errors.swepay.com.br/accounting-ops/tenant-mismatch",
  "service": "accounting-ops",
  "slug": "tenant-mismatch",
  "httpStatus": 403,
  "title": "Tenant Mismatch",
  "summary": "The X-Tenant-Id header does not match the tenant already selected on the access token.",
  "description": "Returned when the `X-Tenant-Id` header sent with the request does not agree\nwith the tenant carried by the access token. The token's own tenant is\nalways the source of truth; the header is only cross-checked against it, as\na second declaration of intent from the caller — it is never used on its\nown to pick the tenant.\n\nUnlike [Tenant Context Required](/accounting-ops/tenant-context-required),\nthe token here does have a tenant — it just disagrees with the header.\n",
  "commonCauses": [
    "The client cached an `X-Tenant-Id` value from a previous tenant session and did not update it after switching tenants.",
    "Two browser tabs or request contexts mixed a token from one tenant with a header from another.",
    "A multi-tenant integration is configured to send the wrong tenant for this call."
  ],
  "clientAction": "Set `X-Tenant-Id` to the same tenant carried by the current access token\n(the one returned by tenant selection). If the caller actually intends to\noperate on the tenant named in the header, select that tenant first with\n`POST /me/tenants/{id}/select` and use the resulting token. Retrying with\nthe same mismatched header will keep returning `403`.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/accounting-ops/tenant-mismatch",
    "title": "Tenant Mismatch",
    "status": 403,
    "detail": "The 'X-Tenant-Id' header does not match the token's tenant.",
    "instance": "/v1/tenant"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/accounting-ops/tenant-mismatch"
}