Subscription Contract Calculation Discount Code Input
The input fields for a discount code in the calculate API.
Anchor to FieldsFields
- redeemCode (String!)
- Anchor to redeemCoderedeem•String!
Code non-null The discount code to apply to the subscription contract.
Anchor to Input objects using this inputInput objects using this input
- Anchor to SubscriptionContractCalculationBillingCycleEditInput.discountCodesSubscription•INPUT OBJECT
Contract Calculation Billing Cycle Edit Input.discountCodes The input fields for editing a subscription contract for a single billing cycle, used for contract calculation. Any field provided will update or replace the corresponding value for the targeted cycle. Fields that are omitted will be left unchanged. Contract-level attributes such as billing policy, delivery policy, and payment method cannot be changed by a billing cycle edit.
- Anchor to SubscriptionContractCalculationContractCreateInput.discountCodesSubscription•INPUT OBJECT
Contract Calculation Contract Create Input.discountCodes The input fields for calculating a new subscription contract. Provide the complete desired state of the contract. The contract isn't created until you commit the calculation with the
mutation.Learn how to build a subscription contract.
- Anchor to SubscriptionContractCalculationContractUpdateInput.discountCodesSubscription•INPUT OBJECT
Contract Calculation Contract Update Input.discountCodes The input fields for calculating changes to an existing subscription contract. Each field you provide replaces the corresponding value on the contract, and omitted fields remain unchanged. For list fields, provide the complete replacement list, including the
idof each existing item that you want to keep.Learn how to update a subscription contract.