Skip to main content

RegisterCodeInput

Input for registerCode.

input RegisterCodeInput {
codeId: ID
pointOfSaleId: ID
}

Fields

RegisterCodeInput.codeId ● ID scalar

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

RegisterCodeInput.pointOfSaleId ● ID scalar

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

registerCode mutation