Skip to main content
Anchor to SubscriptionContractCalculationDiscountCodeInput

SubscriptionContractCalculationDiscountCodeInput

input_object

The input fields for a discount code in the calculate API.

•String!
non-null

The discount code to apply to the subscription contract.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

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.

•INPUT OBJECT

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 subscriptionContractCalculationCommit mutation.

Learn how to build a subscription contract.

•INPUT OBJECT

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 id of each existing item that you want to keep.

Learn how to update a subscription contract.


Was this section helpful?