Skip to main content
Anchor to SubscriptionContractCalculationDiagnosticCode

SubscriptionContractCalculationDiagnosticCode

enum

Diagnostic codes for subscription contract calculation errors and warnings.

Anchor to BUNDLE_REQUIRES_MERCHANDISE_CUSTOMIZATIONSBUNDLE_REQUIRES_MERCHANDISE_CUSTOMIZATIONS

The contract contains a bundle that could not be expanded; bundles are only supported when merchandise customizations are enabled.

The calculation did not resolve in time. The calculation can be safely retried.

Anchor to CURRENCY_NOT_SUPPORTEDCURRENCY_NOT_SUPPORTED

The subscription contract currency is not supported by the shop.

A cart validation function produced a message.

Anchor to CUSTOMER_CONTACT_METHOD_REQUIREDCUSTOMER_CONTACT_METHOD_REQUIRED

The customer has no contact method (email or phone) but the shop requires one to bill the contract.

Anchor to DELIVERY_ADDRESS_INVALIDDELIVERY_ADDRESS_INVALID

The delivery address is not valid.

Anchor to DELIVERY_METHOD_REQUIREDDELIVERY_METHOD_REQUIRED

The contract has items that require shipping, so a delivery method is required.

Anchor to DELIVERY_METHOD_UNUSEDDELIVERY_METHOD_UNUSED

The contract has a delivery method but no items that require shipping.

Anchor to DELIVERY_NO_LOCATION_SHIPS_TO_ADDRESSDELIVERY_NO_LOCATION_SHIPS_TO_ADDRESS

No location can ship the contract's merchandise to the delivery address. Delivery may still proceed at billing time by falling back to a default location.

Anchor to DELIVERY_PICKUP_LOCATION_UNAVAILABLEDELIVERY_PICKUP_LOCATION_UNAVAILABLE

The contract's pickup location can no longer fulfil the order — it was removed, disabled, or does not support pickup for the merchandise.

Anchor to DISCOUNT_CODE_NOT_APPLIEDDISCOUNT_CODE_NOT_APPLIED

A requested discount code was not applied: it doesn't exist, isn't active, or isn't applicable to this subscription contract.

The input value is invalid.

Anchor to MERCHANDISE_GIFT_CARD_INVALIDMERCHANDISE_GIFT_CARD_INVALID

A gift card merchandise line is invalid because its price is not greater than zero.

Anchor to MERCHANDISE_NOT_FOUNDMERCHANDISE_NOT_FOUND

The merchandise product variant could not be found.

Anchor to PAYMENT_METHOD_NOT_FOUNDPAYMENT_METHOD_NOT_FOUND

The payment method could not be found.

The calculation could not be completed due to an unexpected error.


Was this section helpful?

•OBJECT

A diagnostic (error or warning) emitted during a subscription contract calculation.


Was this section helpful?