Documentation
View .mdOpen in ClaudeOpen in ChatGPT

ACCOUNT_CONTEXT_MISMATCH

403auth

The account header contradicts the session account.

Cause

The request named two different accounts at once: an x-billebox-account-id header that disagrees with the server-set bb_current_account session cookie. Only one selector is trusted, so rather than silently discarding the other the request is refused.

How to fix it

Send only one account selector. A cookie session should not send x-billebox-account-id at all — change accounts with the account-switch endpoint instead, then retry. A header-only client (native mobile, agent runner) is unaffected.

Example response

403 ACCOUNT_CONTEXT_MISMATCH
JSON
{
  "error_code": "ACCOUNT_CONTEXT_MISMATCH",
  "error_type": "auth",
  "error_message": "The account header contradicts the session account.",
  "hint": "Send only one account selector. A cookie session should not send x-billebox-account-id at all — change accounts with the account-switch endpoint instead, then retry. A header-only client (native mobile, agent runner) is unaffected.",
  "docs_url": "https://docs.billerapi.com/errors/ACCOUNT_CONTEXT_MISMATCH",
  "request_id": "d94f5e2a-8c3b-4f1e-9a7d-6b2c1e0f8a34"
}

Related

Canonical docs URL: https://docs.billerapi.com/errors/ACCOUNT_CONTEXT_MISMATCH

Was this page helpful?