DiscountCodeAppInput - admin-graphql - INPUT_OBJECT
Version: 2024-10
Description:
The input fields to create a code app discount.
Access Scopes
Fields
-
appliesOncePerCustomer:
Boolean -
Whether the discount can be applied only once per customer.
-
code:
String -
The code to use the discount.
-
combinesWith:
DiscountCombinesWithInput -
Determines which discount classes the discount can combine with.
-
customerSelection:
DiscountCustomerSelectionInput -
The customers that can use the discount.
-
endsAt:
DateTime -
The date and time when the discount ends. For open-ended discounts, use `null`.
-
functionId:
String -
The ID of the function providing the app discount type.
-
metafields:
MetafieldInput -
Additional metafields to associate to the discount.
-
startsAt:
DateTime -
The date and time when the discount starts.
-
title:
String -
The title of the discount.
-
usageLimit:
Int -
The maximum number of times that the discount can be used. For open-ended discounts, use `null`.
Input objects with this input object
Examples