# registerCode

Registers a QR code and attaches it to a Point of Sale. See `RegisterCodeInput.pointOfSaleId` for the auto-create / single-POS / required-when-ambiguous behaviour.

```
registerCode(

  input: RegisterCodeInput!

): Code!
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`registerCode.input`](#input) ● [`RegisterCodeInput!`](https://docs.monei.com/apis/graphql/types/inputs/register-code-input/.md) non-null input[​](#input "Direct link to input")

### Type[​](#type "Direct link to Type")

#### [`Code`](https://docs.monei.com/apis/graphql/types/objects/code/.md) object[​](#code- "Direct link to code-")

Permanent QR code that routes a customer to a Point of Sale checkout. Render the image via `https://secure.monei.com/codes/{id}/qr?format=png|svg&size=100..1000` (defaults: `png`, `500`).
