DiscountCodeAppInput
- Input object
- Discounts and marketing
Input fields
| Input field | Type | Required | Default | Description |
|---|---|---|---|---|
appliesOnOneTimePurchase | Boolean | Optional | true | |
appliesOnSubscription | Boolean | Optional | true | |
appliesOncePerCustomer | Boolean | Optional | ||
code | String | Optional | ||
combinesWith | DiscountCombinesWithInput | Optional | ||
context | DiscountContextInput | Optional | ||
customerSelection | DiscountCustomerSelectionInput | Optional | Deprecated | |
discountClasses | [DiscountClass!] | Optional | ||
endsAt | DateTime | Optional | ||
functionHandle | String | Optional | ||
functionId | String | Optional | Deprecated | |
metafields | [MetafieldInput!] | Optional | [] | |
recurringCycleLimit | Int | Optional | 1 | |
startsAt | DateTime | Optional | ||
tags | [String!] | Optional | ||
title | String | Optional | ||
usageLimit | Int | Optional |