Applies cost_per_unit to matching sales lines: sets line total cost (quantity × unit cost), updates linked
sales item cost layers, and rolls up parent order item costs. This is the same behavior as the admin
Transaction COGS SKU-to-period import.
Exactly one of three modes is selected via mode:
sales_item_idsDirectly target specific sales item IDs with a given cost per unit.
sku_date_rangeMatches lines with the product SKU whose parent order ship date falls within
from_date–to_date (inclusive).
order_idsTargets specific internal sales order IDs. Optional sku limits to that product on those orders.
Documentation Index
Fetch the complete documentation index at: https://docs.joinluminous.com/llms.txt
Use this file to discover all available pages before exploring further.
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Number of sales lines updated
Number of sales lines that were updated
x >= 0