# RegisterCodeInput

Input for `registerCode`.

```
input RegisterCodeInput {

  codeId: ID

  pointOfSaleId: ID

}
```

### Fields[​](#fields "Enlace directo al Fields")

#### [`RegisterCodeInput.codeId`](#code-id) ● [`ID`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) scalar[​](#code-id "Enlace directo al 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/es/es/apis/graphql/types/scalars/id/.md) scalar[​](#point-of-sale-id "Enlace directo al 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 "Enlace directo al Member Of")

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