Skip to main content

ShippingMethod

A ShippingMethod is used to apply a shipping price to an Order. It is composed of a ShippingEligibilityChecker and a ShippingCalculator. For a given Order, the checker is used to determine whether this ShippingMethod can be used. If yes, then the ShippingMethod can be applied and the calculator is used to determine the price of shipping.

Signature

constructor

method(input?: DeepPartial<ShippingMethod>) => ShippingMethod

deletedAt

propertyDate | null

code

propertystring

name

propertyLocaleString

description

propertyLocaleString

checker

propertyConfigurableOperation

calculator

propertyConfigurableOperation

fulfillmentHandlerCode

propertystring

channels

propertyChannel[]

translations

propertyArray<Translation<ShippingMethod>>

customFields

propertyCustomShippingMethodFields

apply

method(ctx: RequestContext, order: Order) => Promise<ShippingCalculationResult | undefined>

test

method(ctx: RequestContext, order: Order) => Promise<boolean>

toJSON

method() => any
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page