Skip to main content
Skip to main content

setLineItemAdjustments - Order Module Reference

This documentation provides a reference to the setLineItemAdjustments method. This belongs to the Order Module.

This method Represents the completion of an asynchronous operation

Example

const adjustmentsData: UpsertOrderLineItemAdjustmentDTO[] = [{
item_id: "item123",
amount: 1000
}];

const result = await orderModuleService.setLineItemAdjustments("order456", adjustmentsData);

Parameters

orderIdstringRequired
The order's ID.
The upsert order line item adjustment details.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<OrderLineItemAdjustmentDTO[]>Required
Represents the completion of an asynchronous operation
Was this section helpful?