Skip to main content
Anchor to SubscriptionContractCalculationDeliveryMethodInput

SubscriptionContractCalculationDeliveryMethodInput

input_object

The input fields for delivery used during a contract calculation. This is a oneOf input: one, and only one, field can be provided.

Provide shipping, localDelivery, or pickup to set the committed delivery method. Provide none to explicitly set no delivery method (digital-only subscriptions). Provide fetchAvailableDeliveryOptions to discover the available delivery options for an address without changing the contract's committed delivery method.

Anchor to fetchAvailableDeliveryOptionsfetchAvailableDeliveryOptions
•SubscriptionContractCalculationFetchDeliveryOptionsInput

Discover the available delivery options for an address without changing the contract's committed delivery method. Mutually exclusive with setting a delivery method.

•SubscriptionContractCalculationDeliveryMethodLocalDeliveryInput

The input fields for the local delivery method.

•Boolean

Explicitly set no delivery method (digital-only subscriptions). Must be true.

•SubscriptionContractCalculationDeliveryMethodPickupInput

The input fields for the pickup delivery method.

•SubscriptionContractCalculationDeliveryMethodShippingInput

The input fields for the shipping delivery method.


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?