Last updated

Order Service schemas

The Orders namespace is used for orders and other related Entities such as DeliveryNotes and Invoices. This namespace has nothing to do with the Checkout process where orders are created, but is more related to order history shown on pages like MyPage and such.

The Order history in Norce is mostly a snapshot view of the orders as they looked when they were created, unless process integrations exists where DeliveryNotes and Invoices are passed to Norce.

Address

Information about Addresses in the Order namespace.

Line1string

The first address line of the Address. MaxLength: 255.

Line2string

The second address line of the Address. MaxLength: 255.

CareOfstring

The care of part of the Address. MaxLength: 100.

Citystring

The city of the Address. MaxLength: 50.

ZipCodestring

The zipcode of the Address. MaxLength: 50.

Countrystring

The name of the country of the Address. MaxLength: 50.

CountryCodestring

The code of the country of the Address. MaxLength: 3.

Regionstring

The region of the Address. MaxLength: 50.

ShippingPhoneNumberstring

Phone number for shipping address. Only applicable in shipping addresses. MaxLength: 50.

GlobalLocationNostring

The Global Location Number (GLN) is part of the GS1 systems of standards. It is a simple tool used to identify a location and can identify locations uniquely where required. This is only used for invoice addresses. MaxLength: 50.

Company

Information about Companies in the Order namespace.

Idinteger or null(int32)

The internal id of Company.

Nostring

The external code of Company. Usually from an ERP system. MaxLength: 50.

Namestring

The name of Company. MaxLength: 100.

OrgNostring

The organizational number of Company. MaxLength: 50.

Customer

Information about Customers in the Order namespace.

Idinteger or null(int32)

The internal id of Customer.

Nostring

The external code of Customer. Usually from an ERP system. MaxLength: 50.

FirstNamestring

The first name of Customer. MaxLength: 50.

LastNamestring

The last name of Customer. MaxLength: 50.

SSNstring

The social security number of Customer. MaxLength: 50.

Emailstring

The e-mail of Customer. MaxLength: 255.

Phonestring

The phone number of Customer. MaxLength: 50.

CellPhonestring

The cell phone number of Customer. MaxLength: 50.

CustomerData

Information about the Customers in the Order namespace. It has information about Customer, any Company and addresses.

Companyobject(Company)(Company)
Customerobject(Customer)(Customer)
Addressobject(Address)(Address)
DropPointCodestring

The external drop point code, if any. Only set for drop points. MaxLength: 50.

DeliveryNotes

DeliveryNote

Information about a DeliveryNote. DeliveryNotes are not created though the API and must be imported to Norce through the Connect service.

Idinteger or null(int32)

The internal Id of the DeliveryNote.

NoteNostring

The external number of the DeliveryNote. Usually a number from the ERP system. MaxLength: 50.

DeliveryDatestring(date-time)

The delivery date of the DeliveryNote.

NoteTextstring

Free text field of the DeliveryNote. MaxLength: 255.

DeliveryModestring

The delivery mode of the items for the DeliveryNote. MaxLength: 50.

OrderNostring

The external order number of the Order related to the DeliveryNote. This usually comes from an ERP. MaxLength: 50.

OrderDatestring(date-time)

The order date of the Order related to the DeliveryNote.

Culturestring

The culture code of the DeliveryNote. This is the culture code used when asking for DeliveryNotes, not the original. MaxLength: 16.

YourReferencestring

Not used. MaxLength: 255.

SellToobject(CustomerData)(CustomerData)
BillToobject(CustomerData)(CustomerData)
ShipToobject(CustomerData)(CustomerData)
SMSNotificationNumberstring

Not used. MaxLength: 50.

ItemsArray of objects(DeliveryNoteItem)(DeliveryNoteItem)

The items delivered.

PackagesArray of objects(DeliveryNotePackage)(DeliveryNotePackage)

Package information for the DeliveryNote.

DivisionCodestring

The external store code for the delivering Store. MaxLength: 50.

Statusstring

The status text of the DeliveryNote. See ListOrderStatuses for information about available statuses. MaxLength: 50.

InfoArray of objects(Info)(Info)

A list of infos used to keep application specific data on the deliveryNote.

DeliveryNoteItem

Information about the items on a DeliveryNote.

Idinteger or null(int32)

The internal id of the DeliveryNoteItem.

RowNumbernumber(decimal)

The row number of the DeliveryNoteItem.

ItemNostring

The PartNo of the DeliveryNoteItem. MaxLength: 50.

ItemDescriptionstring

The name of the DeliveryNoteItem. MaxLength: 255.

QtyOrderednumber(decimal)

The 1uantity ordered. This is the total quantity ordered.

QtyDeliverednumber(decimal)

The quantity delivered. This is the quantity delivered on this DeliverNoteItem.

QtyBackorderednumber(decimal)

The quantity not delivered. This is the quantity still missing on this DeliverNoteItem.

Commentstring

Free text comment on the DeliverNoteItem. MaxLength: 255.

TrackingCodesArray of objects(Tracking)(Tracking)

The external tracking code of the DeliveryNoteItem. Obsolete! - Not used. Tracking info is in DeliveryNotePackage.

Statusstring

The status text of the DeliveryNoteItem. See ListOrderStatuses for information about available statuses. MaxLength: 50.

DeliveryNotePackage

Information about each package associated with a DeliveryNote.

Idinteger or null(int32)

The internal id of the DeliveryNotePackage.

ParcelNumberstring

The external parcel number of the DeliveryNotePackage from the Speditor. Used to track parcels online. MaxLength: 50.

Statusstring

The status text of the DeliveryNotePackage. See ListOrderStatuses for information about available statuses. MaxLength: 50.

Tracking

Obsolete Not used. Tracking info is in DeliveryNotePackage.

Idinteger or null(int32)
FreightForwarderstring

MaxLength: 50.

TrackingCodestring

MaxLength: 50.

InfoTypes

Info

Information carrier entity. It is used on Orders, DeliveryNotes and Invoices. When setting up InfoTypes on Order use the same Code for Order/OrderItem as for Basket/BasketItem if you want them to be mapped. When creating orders, info-fields will be transferred from basket to order when there is a map with the same code.

Codestring

The external code of the Info. MaxLength: 50.

Namestring

The name of the Info. MaxLength: 50.

Descriptionstring

The description of the Info. MaxLength: 500.

Valuestring

The value of the Info. MaxLength: max.

Invoices

Invoice

Information about an Invoice. Invoices are not created through the API and must be imported to Norce through the Connect service.

Idstring

The internal id of the Invoice.

InvoiceNostring

The external invoice number of the Invoice. Usually a number from the ERP system. MaxLength: 50.

InvoiceDatestring(date-time)

The invoice date of the Invoice.

InvoiceDueDatestring or null(date-time)

The invoice due date of the Invoice.

InvoiceTextstring

InvoiceText is taken from InvoiceMark in Storm. MaxLength: 255.

OrderIdstring

The internal id of the Order related to the Invoice.

OrderNostring

The external order number of the Order related to the Invoice. The order number usually comes from an ERP. MaxLength: 50.

OrderDatestring(date-time)

The order date of the Order related to the Invoice.

Sourcestring

The Source of the Invoice. 'WEB' is used for all invoices created though Storm. MaxLength: 255.

DeliveryDatestring or null(date-time)

The delivery date of the DeliveryNote related to the Invoice.

DeliveryMethodstring

The delivery method of the Order. MaxLength: 50.

PaymentMethodstring

The payment method of the Order. MaxLength: 50.

BillToobject(CustomerData)(CustomerData)
OrderFreightnumber(decimal)

The total amount for freight on the Invoice.

InvoiceChargenumber(decimal)

The total amount for invoice charge on the Invoice.

InvoiceAmountExVatnumber(decimal)

The total amount invoiced ex VAT.

VatAmountnumber(decimal)

The total VAT amount invoiced.

ItemsArray of objects(InvoiceItem)(InvoiceItem)

The invoiced items.

InfoArray of objects(Info)(Info)

A list of infos used to keep application specific data on the invoice. Not used for credit invoices.

InvoiceNoPspstring

The invoice number from the PSP. This is only used when the PSP issues invoices. MaxLength: 50.

CreditedInvoiceNostring

The credited invoice number. This is only used for credit invoices and this is the number of the original invoice being credited. MaxLength: 50.

IsDebitboolean

Indicates if this is a debit invoice (true) or a credit invoice (false).

GroupByKeystring

GroupByKey can be used to group invoices. All individual invoices on one summary invoice will have this set to the same value. Normal non-summary invoices will have this value set to null. MaxLength: 50.

Commentstring

Free text comment on the Invoice. MaxLength: 250.

InvoiceAmountIncVatnumber(decimal)

The total amount invoiced inc VAT.

InvoiceItem

Information about each item on an Invoice.

RowNumbernumber or null(decimal)

The row number of the item.

ItemNostring

The PartNo of the item. MaxLength: 50.

ItemDescriptionstring

The mame of the item. MaxLength: 255.

Quantitynumber(decimal)

The quantity invoiced. This is the quantity invoiced on this InvoiceItem.

UnitPricenumber(decimal)

The unit price of the item, excluding VAT.

UnitDiscountnumber(decimal)

The unit discount of the item, excluding VAT.

RowAmountnumber(decimal)

The total amount of the item, excluding VAT.

RowAmountVatnumber(decimal)

The total VAT of the item.

DeliveryDatestring or null(date-time)

The delivery date of the item.

VatRatenumber(decimal)

A rate to multiply with price to get price inc VAT. 25% VAT equals a VatRate of 1.25.

UnitPriceIncVatnumber(decimal)

The unit price of the item, including VAT.

InvoiceListItem

Information about an Invoice used in lists. This is a more light weight representation of the Invoice than the Invoice entity.

Idstring

The internal id of the Invoice.

InvoiceNostring

The external invoice number of the Invoice. Usually from an ERP system. MaxLength: 50.

InvoiceDatestring(date-time)

The invoice date of the Invoice.

InvoiceDueDatestring or null(date-time)

The invoice due date of the Invoice.

InvoiceTextstring

InvoiceText is taken from InvoiceMark in Storm. MaxLength: 255.

OrderNostring

The ERP order number of the Order related to the Invoice. MaxLength: 50.

OrderDatestring(date-time)

The order date of the Order related to the Invoice.

Sourcestring

The source of the Invoice. 'WEB' is used for all invoices created though Storm. MaxLength: 255.

DeliveryDatestring or null(date-time)

The delivery date of the Order.

DeliveryMethodstring

The delivery method of the Order. MaxLength: 50.

PaymentMethodstring

The payment method of the Order. MaxLength: 50.

BillToobject(CustomerData)(CustomerData)
InvoiceAmountExVatnumber(decimal)

The total amount invoiced excluding VAT.

VatAmountnumber(decimal)

The total VAT amount invoiced.

InvoiceNoPspstring

The invoice number from the PSP. This is only used when the PSP issues invoices. MaxLength: 50.

IsDebitboolean

Indicates if this is a debit invoice (true) or a credit invoice (false).

GroupByKeystring

GroupByKey can be used to group invoices. All individual invoices on one summary invoice will have this set to the same value. Normal non-summary invoices will have this value set to null. MaxLength: 50.

InvoiceAmountIncVatnumber(decimal)

The total amount invoiced including VAT.

InvoicePagedList

Invoices in a paged list format. The Items property contains all current invoices, depending on paging, and the ItemCount the total number of invoices.

ItemCountinteger(int32)

The total number of invoices. Can be used to manage paging. Use PageSize to calculate number of pages.

ItemsArray of objects(InvoiceListItem)(InvoiceListItem)

Current list of invoices for the current page if paging is used. Otherwise all invoices will be in the list.

Orders

Order

Information about an Order.

Idstring

The internal id of the Order in Storm.

QuotationIdinteger or null(int32)

The internal id of the quotation/basket used to create the Order.

OrderNostring

The external order number of the Order, usually from an ERP. MaxLength: 50.

OrderDatestring(date-time)

The order date of the Order.

Statusstring

The status text of the Order. See ListOrderStatuses for information about available statuses. MaxLength: 50.

Sourcestring

The source of the Order. 'WEB' is used for all orders created though Storm. MaxLength: 255.

Currencystring

The currency code of the Order. MaxLength: 3.

ItemsArray of objects(OrderItem)(OrderItem)

The items on the Order.

SellToobject(CustomerData)(CustomerData)
BillToobject(CustomerData)(CustomerData)
ShipToobject(CustomerData)(CustomerData)
OrderTotalIncVatnumber(decimal)

The total amount on the Order including VAT.

OrderTotalExVatnumber(decimal)

The total amount on the Order excluding VAT.

PaymentMethodstring

The payment method of the Order. MaxLength: 50.

DeliveryMethodstring

The delivery method of the Order. MaxLength: 50.

DeliveryNotesArray of objects(DeliveryNote)(DeliveryNote)

The delivery notes of the Order.

InfoArray of objects(Info)(Info)

A list of infos used to keep application specific data on the order.

TypeIdinteger(int32)

The type of the order. 1 for normal sales order and 3 for orders from subscriptions. 2 is reserved for purchase orders.

DeliveryMarkstring

The delivery mark of the Order. Gets it's value from the OrderReference field of the basket. MaxLength: 255.

DropPointobject(CustomerData)(CustomerData)

OrderItem

Information about the Items on an Order.

RowNumbernumber(decimal)

The row number of the OrderItem.

PartNostring

The PartNo of the OrderItem. MaxLength: 50.

Namestring

The name of the OrderItem. MaxLength: 255.

QtyOrderednumber(decimal)

The quantity ordered. This is the total quantity ordered.

UnitPricenumber(decimal)

The unit price of the Item, excluding VAT.

UnitDiscountnumber(decimal)

The unit discount of the Item, excluding VAT.

RowAmountnumber(decimal)

The total amount of the Item, excluding VAT.

VatRatenumber(decimal)

A rate to multiply with price to get price inc VAT. 25% VAT equals a VatRate of 1.25.

ImageKeystring or null(guid)

A unique id for the image at our image server. Url for images are formed like http://[client specific CDN]/{ImageKey}. Preset, height and width can be sent as parameters.

Typeinteger(int32)

Sku type internal id for this order item.

Statusstring

The status text of the OrderItem. See ListOrderStatuses for information about available statuses. MaxLength: 50.

InfoArray of objects(Info)(Info)

A list of infos used to keep application specific data on the order item.

ParentRowNumbernumber or null(decimal)

The parent row number of the OrderItem, if any.

PriceRecommendednumber or null(decimal)

This is the recommended price of the item when the order was created.

PriceCatalognumber or null(decimal)

This is the catalog price of the item when the order was created.

PriceStandardnumber or null(decimal)

This is the standard price of the item when the order was created.

UnitPriceIncVatnumber(decimal)

The unit price of the item, including VAT.

OrderListItem

Information about an Order used in lists. This is a more light weight representation of the Order than the Order entity.

Idstring

The internal id of the Order in Storm.

QuotationIdinteger or null(int32)

The internal id of the quotation/basket used to create the Order.

OrderNostring

The order number of the Order, usually from an ERP. MaxLength: 50.

OrderDatestring(date-time)

The order date of the Order.

Statusstring

The status text of the Order. See ListOrderStatuses for information about available statuses. MaxLength: 50.

Sourcestring

The source of the Order. 'WEB' is used for all orders created though Storm. MaxLength: 255.

Currencystring

The currency code of the Order. MaxLength: 3.

SellToobject(CustomerData)(CustomerData)
BillToobject(CustomerData)(CustomerData)
ShipToobject(CustomerData)(CustomerData)
OrderTotalIncVatnumber(decimal)

The total amount on the Order including VAT.

OrderTotalExVatnumber(decimal)

The total amount on the Order excluding VAT.

PaymentMethodstring

The payment method of the Order. MaxLength: 50.

DeliveryMethodstring

The delivery method of the Order. MaxLength: 50.

TypeIdinteger(int32)

The type of the order. 1 for normal sales order and 3 for orders from subscriptions. 2 is reserved for purchase orders.

DeliveryMarkstring

The delivery mark of the Order. Gets its value from the OrderReference field of the basket. MaxLength: 255.

DropPointobject(CustomerData)(CustomerData)
ItemsArray of objects(OrderItem)(OrderItem)

The items on the Order.

InfoArray of objects(Info)(Info)

A list of infos used to keep application specific data on the order.

OrderPagedList

Obsolete, Use OrderPagedList2 Orders in a paged list format. The Items property contains all current orders, depending on paging, and the ItemCount the total number of orders.

ItemCountinteger(int32)

The total number of orders. Can be used to manage paging. Use PageSize to calculate number of pages.

ItemsArray of objects(Order)(Order)

Current list of orders for the current page if paging is used. Otherwise all orders will be in the list.

OrderPagedList2

Orders in a paged list format. The Items property contains all current orders, depending on paging, and the ItemCount the total number of orders.

ItemCountinteger(int32)

The total number of orders. Can be used to manage paging. Use PageSize to calculate number of pages.

ItemsArray of objects(OrderListItem)(OrderListItem)

Current list of orders for the current page if paging is used. Otherwise all orders will be in the list.