# organization_required

> Organisation missing

- Status: 400 Bad Request
- Returned by: /api/public with an organisation key
- Retry (`retryWhen`): `after_fix`
- Did anything happen? (`outcome`): `none` (It did not happen)
- Access and organisation
- Page in the portal: https://developers.rivr.io/errors/organization_required
- Try it: `GET https://developers.rivr.io/errors/simulate/organization_required` answers with the code's exact wire form; `?succeedAfter=N&attempt=K` gives a 200 once `attempt` passes `N`

## What it means

The caller reaches more than one organisation, and the call doesn't say which one it is about. On `/api/public` every call is about exactly one clinic, so a key that reaches several clinics must always name the clinic.

## What your system does

Send the `Rivr-Organization` header with the organisation's id. For a clinic it is the same id as `merchantId`.

## Is it worth retrying?

No, not without changing the call.

`retryWhen`: `after_fix`. Change the request first, as the code's page says: a value, the token, a header or a new key. Then send it.

## Did anything happen?

`outcome`: `none`. **It did not happen.** This call did not do what you asked for and changed nothing else that you can see or that concerns money. Where the code has an `outcomeNote`, it takes precedence.

## Example: /api/public with an organisation key

```http
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
Rivr-Should-Retry: false

{
  "type": "https://developers.rivr.io/errors/organization_required",
  "title": "The key reaches more than one clinic. Send Rivr-Organization with the clinic's id.",
  "status": 400,
  "code": "organization_required",
  "detail": "The key reaches more than one clinic. Send Rivr-Organization with the clinic's id.",
  "instance": "/api/public/orders/7b1e7c3a-2f4d-4a51-9c7e-5d0a6b8e2c14/status",
  "requestId": "5f0c2a7e-9b41-4d3a-8e6f-1c2d3b4a5e6f",
  "retryWhen": "after_fix"
}
```

The `title`, `detail`, `message` and `error_description` texts are exactly as the API writes them today.
