Saltar al contenido principal

Code

QR code of a point of sale (the QR Codes table of a point of sale in the dashboard). Its permalink, shown as Permalink, is https://secure.monei.com/codes/{id}, on the account's custom domain when it has one; the dashboard shows the short link instead when one exists (see ShortLink). A scan opens the payment flow of the point of sale: see PointOfSale.fixedAmount, PointOfSale.manualAmount and PointOfSale.currentPaymentId. The QR image is at https://secure.monei.com/codes/{id}/qr, with the query parameters format (png or svg, default png) and size (100 to 1000 pixels, default 500). An OAuth app does not see the codes of a point of sale whose transactionType is PAYOUT and cannot register or update them, except on a test account.

type Code {
id: ID!
type: CodeTypes!
enabled: Boolean
pointOfSaleId: ID
}

Fields​

Code.id ● ID! non-null scalar​

Code ID, the last part of the permalink. Shown as ID. A generated ID has 8 uppercase letters and digits.

Code.type ● CodeTypes! non-null enum​

Code type. See CodeTypes.

Code.enabled ● Boolean scalar​

Whether the code is active, shown as Enabled. A scan of a disabled code fails. Null counts as enabled.

Code.pointOfSaleId ● ID scalar​

ID of the point of sale that a scan of this code opens.

Returned By​

code query ● codes query ● registerCode mutation ● updateCode mutation