# `invalid-reference`

HTTP 422: Invalid reference

## What it means

An id in the body does not name a record you can use in that field: it is not in your organisation, is archived, or is the wrong kind (for example another company's contact, or a stock item that cannot be sold). `errors[].field` names it.

## What to do

Look the id up in the resource or lookup the field refers to (`/users` rows with `assignable: true` for users) and send an active id of your organisation.

## The error response

Every error response has an `application/problem+json` body. For this error, its `code` is `invalid-reference` and its `type` is `https://api.omono.co/docs/errors/invalid-reference`. If you contact Omono about the error through the in-app chat, quote the response's `requestId`.
