AppDiscountCode
A discount code an installed app created.
type AppDiscountCode {
code: String!
customerIds: [ID!]!
id: ID!
isActive: Boolean!
name: String!
percentageValue: Float!
singleUse: Boolean!
}
Fields
AppDiscountCode.code ● String! non-null scalar
The code a buyer enters: APP-<HANDLE>-<random>.
AppDiscountCode.customerIds ● [ID!]! non-null scalar
The customers who may use the code.
AppDiscountCode.id ● ID! non-null scalar
The discount scheme's ID.
AppDiscountCode.isActive ● Boolean! non-null scalar
False once switched off (for example, on uninstall).
AppDiscountCode.name ● String! non-null scalar
The name staff see in the console.
AppDiscountCode.percentageValue ● Float! non-null scalar
The discount in percent. A rate, not money.
AppDiscountCode.singleUse ● Boolean! non-null scalar
True when each customer may use it once.
Returned By
appCreateDiscountCode mutation