Patch OrderLines - update only values in request
Sample request for patching order line with lineItemId "1". Updating color and placedPrice.
PATCH /api/{orderId}/patchUpdateOrderLines
{
[
{
"lineItemId": "1",
"color" : "blue",
"placedPrice": 100
}
]
}
Request
- Base URL: https://api.omnium.no (the document declares no server; this is the origin it was published from)
- URL: https://api.omnium.no/api/Orders/{orderId}/PatchUpdateOrderLines
- Auth: API key in header Authorization
Path parameters
ID of existing order. (Required)
Request body
Line item ID
Product / SKU number
Product EAN / GTIN number
Product GTIN number
Product display name
Additional or alternative product name
The price for one item, without discounts, i.e. list price
The price for one item, without discounts, i.e. list price, without tax
Calculated - Total line item price with all discounts applied, including item and order level discounts
Calculated - Total line item price with all discounts applied, including item and order level discounts, without tax
Calculated - Reference to connected price list. Used in the context of 'PriceFactor'
Calculated - Reference to connected price list item. Used in the context of 'PriceFactor'
Calculated - Total line item price with all item discounts applied. Without order disounts.
Calculated - Total line item price with all item discounts applied. Without order disounts. Without tax.
Suggested retail price. Not used in any calculations. Only used for reports or statistics by third party applications.
Suggested retail price withoud tax. Not used in any calculations. Only used for reports or statistics by third party applications.
Calculated - This orderlines share of the order level discounts
Order line comment
Number of items
Quantity unit - e.g. Meter,Pcs,Litre, etc
The selected unit of measurement on order line if product is sold in multiple units (Null if sold unit is default unit)
Conversion factor from default unit to selected unit
The quantity ordered in the selected unit of measurement.
Number of items returned
Return reason comment
Date returned
Return type ID (should correspond to preconfigured list of return types)
Number of items cancelled
Date of cancellation
Reason / type of order line cancellation
Comment regarding cancellation
Number of items delivered
Deadline for when the customer needs to pick up the order line (Used for partial deliveries)
Deadline for when the store needs to pick the order line (Used for partial deliveries)
If item should be sent as a gift
Is order line read only for customer
Item cost
Total cost for all items
Total line item discount
Total line item discount without tax
Total tax for order line
Tax rate in percent. If tax is 25%, value here should be 25.00. If not set(null) tax from market will be used.
Optional campaign id
Set to 'false' if you want to update the whole 'properties' list. If true, new properties will be added to the existing list of properties. 'True' by default.
Item size
Item color
Brand name
Product type
Supplier ID
Supplier SKU ID
Supplier name
Product ID
Product image URL
Customs tariff code / HS number, used for customs declarations (NVIT)
Country of origin (ISO 3166-1 alpha-2)
Weight of a single unit, in kilograms (kg), used as a fallback for NVIT net weight when packages don't have an explicit net weight
Expected delivery date for order line
Serial number for order line
Indicates whether the product requires a serial number
Package sku ID / Code (used if product is part of package)
Package line item ID (used if product is part of package)
Public website URL to product
Used by order return. If we should increase stock
Line item credited amount
Number of items replaced
Replaced date
Type of replacement
Reason for replacement
If true, product is a product with components
Indicates whether the product on the order line is a virtual product. Virtual products, such as gift cards or other electronic products, do not require or affect inventory
Indicates whether the order line represents a configurable product. This value is set when a configurable product is created from the cart. Configurable products exist only as order lines and do not have standalone product entries
Reserved inventory
Reserved inventory purchase order ID
Reserved purchase order line ID
True if inventory is reserved
Reservation delivery ID
If true, order line is reserved on an incoming purchase order
DateTime of delivery of lineItem
DateTime of requested delivery date for line item
For return: Use this to specify the warehouseLocation within a warehouse, Example Broken/Used/SellAsNew or front/back
Indicates whether the order line represents a product option/accessory that is attached to another line item.
Reason code for manual discount applied to this order line (audit trail). Kept in sync with DiscountReason.ReasonCode for legacy consumers.
If true, promotion prices are not recalculated for this order line.
When true, the price is locked and will not be recalculated. Also sets IsExcludedFromPromotions to true.
The origin/source of this order line (e.g. "Omnium" for UI-created lines, or values set by external systems)
Response
OrderLines updated successfully
Changes
No recorded changes to this operation across all 1 revision of this API.