Subscription contract shipping requirements now sync with product variants

Shopify Updates: 

We've improved how subscription contracts handle shipping requirements to ensure accurate tax calculations, delivery details, and order totals. These changes apply when using the subscriptionBillingAttemptCreate mutation.

What's Changed

Shipping requirements use latest product information
Subscription contracts now dynamically retrieve the "requires shipping" value from the product variant for each contract line. Previously, a static value was stored when the subscription line was added to the contract. This update ensures that shipping requirements are always current when you update your product variants. This change also applies to SubscriptionDraft.fields.deliveryOptions.

Delivery lines added only when necessary
If no lines in a subscription contract require shipping, then we no longer add a delivery line to the order. This prevents unnecessary shipping charges and ensures correct tax calculations.

Impact

These changes ensure that: - Taxes are calculated correctly based on current shipping requirements. - Order totals reflect accurate delivery costs. - Shipping configuration issues are caught before orders are processed. - Subscription contracts stay in sync with your product catalog changes.

Back to blog