Orders | Order Lines

Add order line

post/api/Orders/{orderId}/OrderLines

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}/OrderLines
  • Auth: API key in header Authorization

Path parameters

orderIdstring nullable required

Order ID (Required)

Query parameters

shipmentIdstring nullable

Request body

lineItemIdstring nullable

Line item ID / Order Line ID - REQUIRED

codestring nullable

SKU

eanstring nullable

Product EAN / GTIN number

gtinsstring[] nullable

GTIN numbers

displayNamestring nullable

Product display name

alternativeProductNamestring nullable

Additional or alternative product name

placedPricenumber

The price for one item, without discounts, i.e. list price

placedPriceExclTaxnumber

Calculated - The price for one item, without discounts, i.e. list price, without tax

extendedPricenumber

Calculated - Total line item price with all discounts applied, including item and order level discounts

extendedPriceExclTaxnumber

Calculated - Total line item price with all discounts applied, including item and order level discounts, without tax

priceListIdstring nullable

Calculated - Reference to connected price list. Used in the context of 'PriceFactor'

priceListItemIdstring nullable

Calculated - Reference to connected price list item. Used in the context of 'PriceFactor'

discountedPricenumber

Calculated - Total line item price with all item discounts applied. Without order discounts.

discountedPriceExclTaxnumber

Calculated - Total line item price with all item discounts applied. Without order discounts. Without tax.

lineItemDiscountAmountnumber

(OBSOLETE: Use property on Discounted instead) Calculated - Total line item discount.

lineItemDiscountAmountExclTaxnumber

(OBSOLETE: Use property on DiscountedPriceExclTax instead) Calculated - Total line item discount excl. tax.

suggestedRetailPricenumber

Suggested retail price. Not used in any calculations. Only used for reports or statistics by third party applications.

suggestedRetailPriceExclTaxnumber

Suggested retail price without tax. Not used in any calculations. Only used for reports or statistics by third party applications.

orderDiscountAmountnumber

Calculated - This order line's share of the order level discounts

creditedAmountnumber

Calculated - credited amount for order line

originalExtendedPricePerUnitnumber nullable

Calculated - Original extended price per unit before cancellation, used for credit calculations when ExtendedPrice becomes 0 after full cancellation

commentstring nullable

Order line comment

quantitynumber

Number of ordered items

unitstring nullable

Quantity unit - e.g. Meter,Pcs,Litre, etc

selectedUnitstring nullable

The selected unit of measurement on order line if product is sold in multiple units (Null if sold unit is default unit)

selectedUnitConversionFactornumber nullable

Conversion factor from default unit to selected unit

selectedUnitQuantitynumber nullable

The quantity ordered in the selected unit of measurement.

returnQuantitynumber

Number of items returned

returnReasonstring nullable

Return reason comment

returnDatestring date-time nullable

Date returned

returnTypestring nullable

Return type ID (should correspond to preconfigured list of return types)

canceledQuantitynumber

Number of items cancelled

canceledDatestring date-time nullable
cancelReasonstring nullable

Reason / type of order line cancellation

cancelCommentstring nullable

Comment regarding cancellation

deliveredQuantitynumber

Number of items delivered

customerPickupDeadlinestring date-time nullable

Deadline for when the customer needs to pick up the order line (Used for partial deliveries)

storePickDatestring date-time nullable

Deadline for when the store needs to pick the order line (Used for partial deliveries)

readyForPickupQuantitynumber nullable

Number of items ready for pick up

readyForPickupDatestring date-time nullable

Date orderLine is ready for pick up

isGiftboolean

If item should be sent as a gift

isBackorderboolean

Product on order line can be back-ordered

isReadOnlyboolean

Mark the order line as read only.

isReadOnlyByCustomerboolean

Mark the order line as read only for the customer. Typically used for carts where there should be order lines that the customer should not be allowed to modify.

costnumber

Enriched from product data: Item cost

costTotalnumber

Calculated - Total cost for all items

discountednumber

Total line item discount

discountedExclTaxnumber

Total line item discount without tax

taxTotalnumber

Calculated - Total tax for order line

taxRatenumber nullable

Tax rate in percent. If tax is 25%, value here should be 25.00. If not set(null) tax from market will be used.

campaignIdstring nullable

Optional campaign id

sizestring nullable

Enriched by product data - item size

colorstring nullable

Enriched by product data - name of color

brandstring nullable

Enriched by product data - name of brand

productTypestring nullable

Product type

supplierIdstring nullable

Supplier ID

supplierSkuIdstring nullable

Supplier Sku ID

supplierNamestring nullable

Supplier name

productIdstring nullable

Enriched by product data: Product ID

imageUrlstring nullable

Enriched by product data: Product image URL

expectedDeliveryDatestring date-time nullable

Expected delivery date for order line

serialNumberstring nullable

Serial number for order line

isSerializableProductboolean nullable

Indicates whether the product requires a serial number

isRentalboolean

Indicates whether the order line represents a rental product. Rental dates are stored in Properties (keys: RentalFrom, RentalTo).

packageSkuIdstring nullable

Package sku ID / Code (used if product is part of package)

packageLineItemIdstring nullable

Package line item ID (used if product is part of package)

componentIdstring nullable

Applicable only when the order line represents a component. Stores the identifier of the corresponding component within the parent package's component list.

webSiteProductUrlstring nullable

Public website URL to product

customsCodestring nullable

Customs code for the line item. Enriched by product data

countryOfOriginstring nullable

Country of origin. Enriched by product data

weightnumber double nullable

Weight of a single unit, in kilograms (kg). Enriched by product data when not already set on the line

updateStockboolean

Used by order return. If we should increase stock

replacedQuantitynumber nullable

Number of items replaced (if a replacement order has been created)

replacedDatestring date-time nullable

Replaced date (if a replacement order has been created)

replacementTypestring nullable

Type of replacement (should correspond to preconfigured list of replacement types)

replacementReasonstring nullable

Reason for replacement

isPackageboolean

(OBSOLETE: Use 'IsPackageProduct' or 'IsPackageBrokeDown' instead) If true, product is a package with broken down components. Breakdown is skipped.

isBundleboolean

If true, product is a bundle with components. Prices are unchanged on broken down components and should be 0 on the bundle itself.

isPackageProductboolean

If true, product is a package with components. Packages have their own 'package' price (price required). Broken down components price will be set to 0.

isPackageBrokeDownboolean

If true, package/bundle breakdown is skipped

isVirtualProductboolean

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

isConfigurableProductboolean

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

modifiedReasonstring nullable

Reason for order line modification

createPurchaseOrderboolean nullable

If true, purchase order should be created from order line

reservedInventoryQuantitynumber

Calculated: Reserved inventory

isAwaitingPurchaseOrderboolean nullable

If true, order line is reserved on an incoming purchase order. Order lines with this flag will not be reserved on regular inventory items.

reservedInventoryPurchaseOrderIdstring nullable

Calculated: Reserved inventory purchase order ID

reservedInventoryPurchaseOrderLineIdstring nullable

Calculated: Reserved purchase order line ID

reservedInventoryboolean

Calculated: True if inventory is reserved

reservedInventoryDeliveryIdstring nullable

Calculated: Reservation delivery ID

groupIdstring nullable

Order line group ID (should correspond to ID on order.groups)

deliveredDatestring date-time nullable

Date of orderline delivery

requestedDeliveryDatestring date-time nullable

Requested delivery date for the orderline

internalWarehouseLocationstring nullable

Date of orderline delivery

isExcludedFromPromotionsboolean nullable

If true promotion prices are not recalculated for this order line.

isPriceLockedboolean nullable

When true, the price is locked and will not be recalculated. Also sets IsExcludedFromPromotions to true.

isDiscountBlockedboolean nullable

Calculated - true when the product on this order line is blocked from having a manual discount applied.

discountReasonCodestring nullable

Reason code for manual discount applied to this order line (audit trail). Kept in sync with DiscountReason.ReasonCode for legacy consumers.

isSkuAccessoryboolean nullable

Indicates whether the order line represents a product option/accessory that is attached to another line item.

salesOriginstring nullable

The origin/source of this order line (e.g. "Omnium" for UI-created lines, or values set by external systems)

salesOriginIdstring nullable

The ID of the sales channel or register that created or last modified this order line (e.g. the InStore register ID)

Response

Order line added successfully

idstring nullable

Unique order ID. This must and will be unique across all markets defined in Omnium.

orderNumberstring nullable

In most cases, this property will be identical to the Id property. However, if you have orders from multiple sources (multiple e-commerce sites, pos systems or other sales channels), and the order numbers from the sources could overlap, you could set the Id to a unique value and the order number to the user friendly number.

customerIdstring nullable

The ID of the customer that has placed the order. Typically this is set to the customers phone number or email address, but it could be set to anything. A customer with the matching ID does not have to exist in the system before the order is placed. If there are no overlapping IDs, but you still have multiple sources of IDs, consider using ExternalIds instead.

customerNumberstring nullable

In most cases, the customer number could be set to the same value as the CustomerId. However, in some edge cases the customers could get imported from multiple systems with the same ID range. In that case, you should set the user friendly number to the CustomerNumber and an unique ID for the CustomerId.

customerClubMemberIdstring nullable

If Customer is member of customer club, set Customer ID as member ID.

billingCurrencystring nullable

Currency of the order. e.g. "USD","NOK"

customerNamestring nullable

Full name of customer

customerPhonestring nullable

Customer phone number with prefix. e.g. +4740000000

customerEmailstring nullable

Customer e-mail

customerTypestring nullable

B2B or B2C (Business customer or private customer)

marketIdstring nullable

Market ID e.g. "US", "NOR", "SWE". This must match the value of the market(s) defined in Omnium.

shippingDiscountTotalnumber

(OBSOLETE: Use property on OrderForm instead) Shipping discount amount

shippingSubTotalnumber

Total shipping cost

statusstring nullable

The current order status. This must match a status defined in the order settings in Omnium. Typical values are "New", "InProgress", "Cancelled" or "Completed".

remainingPaymentnumber

CALCULATED: The remaining payment amount if the difference between the authorized amount and total amount

salesPersonIdstring nullable

Id of seller of the order - typically set to the e-mail of the user in Omnium, but could be set to any ID.

salesPersonNamestring nullable

Name of the seller of the order

salesChannelstring nullable

Name of sales channel

completedstring date-time nullable

CALCULATED: Order completed date

modifiedstring date-time

CALCULATED: Order last modified date

modifiedBystring nullable

CALCULATED: Modified by

createdstring date-time

The creation date of the order

receivedstring date-time nullable

The received date of the order

followUpDatestring date-time nullable

Order follow-up date

customerPickupDeadlinestring date-time nullable

CALCULATED: Customer deadline for picking up order

storePickDatestring date-time nullable

CALCULATED: Employee deadline for picking order

requestedDeliveryDatestring date-time nullable

Delivery date requested by customer

updateStatusDatestring date-time nullable

Date when order should be moved to next status. (Updated by UpdateOrderStatusScheduledTask)

readyForPickupstring date-time nullable

Calculated: When the order was set to ready for pickup. The property can be set by workflow step with name: Set ready for pickup date

nextOrderStatusstring nullable

Status order should be moved to. (Updated by UpdateOrderStatusScheduledTask)

paymentTypestring nullable

OBSOLETE: Use orderForm.payments instead.

orderTypestring nullable

Order type e.g. "Online", "Pos". The order type must match a order type defined in the Omnium order settings

requestedAllocationProfileKeystring nullable

The allocation profile Omnium's allocation engine should rank plans under for this order, for example FewestShipments or Closest. Empty means the profile configured for the market.

storeIdstring nullable

The store Id identifies the store that sells the orders. Should match an ID of an existing store. A store would typically be the front end e-commerce solution, a physical store or other sales channels.

orderOriginstring nullable

The origin of the order should identify where the order was created. Typical values are "OMS", "ERP", "WEB" or "POS".

lineItemsCostnumber

Calculated: Total cost of the order. The cost price

netTotalnumber

Calculated: OrderForm total - returnForms total

netTotalExclTaxnumber

Calculated: OrderForm total excl tax - returnForms total excl tax

customerReferencestring nullable

Reference provided by customer.

customerContactstring nullable

Customer contact person

customerRequisitionstring nullable

Customer requisition provided by customer

isReadOnlyboolean

If true, the order is not editable in Omnium. Typically used for completed PoS orders, historic data or orders that should never be modified.

isNotificationsDisabledboolean

If true, Omnium's notifications will not be triggered for the order

relatedOrdersstring[] nullable

List of related order IDs

sessionstring nullable

Session code used for referencing a web session

secretKeystring nullable

A unique secret key for the order. Can be used for secure order lookups.

replacementOrderIdsstring[] nullable

List of replacement order IDs for this order

subscriptionIdstring nullable

Subscription ID - used if order is part of a subscription. The Id should match an existing subscription in Omnium

projectIdsstring[] nullable

Project IDs - used if order is part of projects

tagsstring[] nullable

Order tags (Used by notification filters, and for grouping / filtering orders)

paymentTermsNetinteger nullable

Net payment terms (in days). Used for invoice due dates.

invoiceCommentstring nullable

Invoice comment

projectIdstring nullable

OBSOLETE: Use ProjectIds instead. Project ID - used if order is part of a project

subTotalnumber

(OBSOLETE: Use property on OrderForm instead) Order total without shipment cost

subTotalExclTaxnumber

(OBSOLETE: Use property on OrderForm instead) Order total without shipment cost and without tax

taxTotalnumber

(OBSOLETE: Use property on OrderForm instead) Total tax amount

totalnumber

(OBSOLETE: Use property on OrderForm instead) Order total, including shipment cost, tax, and discounts

totalExclTaxnumber

(OBSOLETE: Use property on OrderForm instead) Order total, including shipment cost and discounts, but without tax

discountTotalIncVatnumber

(OBSOLETE: Use property on OrderForm instead) Total order discount

isNewCustomerboolean nullable

Indicates whether the customer is new. Set automatically by the workflow if the customer's creation date is in the past, but can also be updated via the API.

versionIdstring nullable

Read only: Current version ID

namestring nullable

Order name

canceledstring date-time nullable

Canceled date

orgNrstring nullable

Organization number

correlationIdstring nullable

Correlation ID for tracing

isAnonymizedboolean

Whether the order has been anonymized

isReservableboolean nullable

Whether the order is reservable

invoiceIdsstring[] nullable

List of invoice IDs associated with this order

documentStatusstring nullable

Shows which documents have been generated for the order

customerOrderNumberstring nullable

Customer's own order number

customerGroupsstring[] nullable

Customer group memberships

isReallocatedboolean

Whether the order has been reallocated

Changes

No recorded changes to this operation across all 1 revision of this API.