Skip to main content

AppCreateDiscountCodeInput

A discount code an app creates for named customers. The server picks the code and fixes the scheme's shape.

input AppCreateDiscountCodeInput {
customerIds: [ID!]!
description: String
name: String!
percentageValue: Float!
singleUse: Boolean
}

Fields​

AppCreateDiscountCodeInput.customerIds ● [ID!]! non-null scalar​

The customers who may use the code. At least one: an app's code is never open to everyone.

AppCreateDiscountCodeInput.description ● String scalar​

An optional note for staff.

AppCreateDiscountCodeInput.name ● String! non-null scalar​

The name staff see in the console.

AppCreateDiscountCodeInput.percentageValue ● Float! non-null scalar​

The discount in percent, above 0 and at most 100 (or the organization's lower ceiling). Percent only: it applies in any currency (§8.3 #3).

AppCreateDiscountCodeInput.singleUse ● Boolean scalar​

True: each customer may use the code once. False: the named customers may use it on every order.

Member Of​

appCreateDiscountCode mutation