- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createOrderShippingMethods - Order Module Reference
This documentation provides a reference to the createOrderShippingMethods
method. This belongs to the Order Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
createOrderShippingMethods(data, sharedContext?): Promise<OrderShippingMethodDTO>#
This method creates a shipping method.
Example#
Parameters#
The shipping method to be created.
Returns#
Promise
Promise<OrderShippingMethodDTO>The created shipping method.
Promise
Promise<OrderShippingMethodDTO>createOrderShippingMethods(data, sharedContext?): Promise<OrderShippingMethodDTO[]>#
This method creates shipping methods.
Example#
Parameters#
The order shipping methods to be created.
Returns#
Promise
Promise<OrderShippingMethodDTO[]>The created orders.
Promise
Promise<OrderShippingMethodDTO[]>createOrderShippingMethods(orderId, methods, sharedContext?): Promise<OrderShippingMethodDTO[]>#
This method creates shipping methods for an order.
Example#
Parameters#
orderId
stringThe order's ID.
methods
CreateOrderShippingMethodDTO[]The shipping methods to be created.
methods
CreateOrderShippingMethodDTO[]Returns#
Promise
Promise<OrderShippingMethodDTO[]>The created shipping methods.
Promise
Promise<OrderShippingMethodDTO[]>Was this page helpful?