Przejdź do głównej zawartości

availableShippingMethods

Standalone shipping-method preview for an address — does not require a cart. Pass an optional cart summary (subtotal, weight, currency) to evaluate price-based / weight-based rules and free-shipping thresholds. For an already-created cart, prefer cart.availableShippingMethods(address) — it reads the cart contents directly.

availableShippingMethods(
address: ShippingAddressInput!
cart: CartShippingInput
): AvailableShippingMethodsPayload!

Arguments

availableShippingMethods.address ● ShippingAddressInput! non-null input

Delivery address used to match shipping zones

availableShippingMethods.cart ● CartShippingInput input

Optional cart summary (subtotal, weight, currency) for price/weight rules

Type

AvailableShippingMethodsPayload object

Result of availableShippingMethods / cart.availableShippingMethods — the methods to render plus optional free-shipping progress and any user errors.