end_user_budget_conflict: The budget already belongs to another end user

POST /owner/v1/end-users/{endUserRef}/budgets asked to link a budget to an end user, but the budget is already linked to a different end user. A budget belongs to one end user only, so the portal never shows one person's budget to another. The link is refused and nothing changed.

A budget becomes linked either through this route or when an end user funds it on the top-up page. Linking a budget again to the same end user is not an error; it answers the existing link.

The multi-tenant hosted tier answers the same way: the front door passes the request to the account's core.

What to do

On the wire

HTTP 409, error type state_error, param: "budgetId".

{
  "error": "state",
  "errorDetail": {
    "type": "state_error",
    "code": "end_user_budget_conflict",
    "message": "the budget already belongs to another end user",
    "param": "budgetId",
    "doc_url": "…/developers/widgets.md#end-user-budget-conflict",
    "fix": "the budget already belongs to another end user"
  }
}

See all error codes.