Skip to main content
Skip to main content

validateShippingOption - Fulfillment Module Reference

This documentation provides a reference to the validateShippingOption method. This belongs to the Fulfillment Module.

This method checks whether a shipping option can be used for a specified context.

Example

const isValid =
await fulfillmentModuleService.validateShippingOption(
"so_123",
{
customer_group: "cg_vipgroup",
}
)

Parameters

shippingOptionIdstringRequired
The shipping option's ID.
contextRecord<string, unknown>Required
The context to check.

Returns

PromisePromise<boolean>Required
Whether the shipping option is valid for the specified context.
Was this section helpful?