- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createOrderLineItems - Order Module Reference
This documentation provides a reference to the createOrderLineItems
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.
createOrderLineItems(data, sharedContext?): Promise<OrderLineItemDTO[]>#
This method creates a line item.
Example#
Parameters#
The line item to be created.
Returns#
Promise
Promise<OrderLineItemDTO[]>The created line items.
Promise
Promise<OrderLineItemDTO[]>createOrderLineItems(data, sharedContext?): Promise<OrderLineItemDTO[]>#
This method creates line items.
Example#
Parameters#
data
CreateOrderLineItemDTO[]The line items to be created.
data
CreateOrderLineItemDTO[]Returns#
Promise
Promise<OrderLineItemDTO[]>The created line items.
Promise
Promise<OrderLineItemDTO[]>createOrderLineItems(orderId, items, sharedContext?): Promise<OrderLineItemDTO[]>#
This method creates orders.
Example#
Parameters#
orderId
stringThe order's ID.
items
CreateOrderLineItemDTO[]The order line items to be created.
items
CreateOrderLineItemDTO[]Returns#
Promise
Promise<OrderLineItemDTO[]>The created orders.
Promise
Promise<OrderLineItemDTO[]>Was this page helpful?