# RegisterCodeInput

Input for `registerCode`.

```
input RegisterCodeInput {

  codeId: ID

  pointOfSaleId: ID

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`RegisterCodeInput.codeId`](#code-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#code-id "Direct link to code-id")

Pre-allocated code ID to claim (e.g. printed on physical media). Omit to auto-generate.

#### [`RegisterCodeInput.pointOfSaleId`](#point-of-sale-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#point-of-sale-id "Direct link to point-of-sale-id")

Point of Sale to attach the code to. If omitted: when the account has exactly 1 POS, that POS is used; when it has 0 POS and ≤1 store, a default store (if missing) and POS are auto-created; when it has >1 POS, or 0 POS and >1 store, `pointOfSaleId` is required and the call is rejected with `BadRequest`.

### Member Of[​](#member-of "Direct link to Member Of")

[`registerCode`](https://docs.monei.com/apis/graphql/operations/mutations/register-code/.md) mutation
