# List orders (v2) [Obsolete("Use ListOrders3")] Returns a paged order list. Either of companyId, customerId, divisionCode, fromDate or toDate must be specified. Endpoint: GET /OrderService.svc/rest/ListOrders2 Version: 1.1 ## Query parameters: - `companyId` (string, required) The internal company id for which orders are fetched. - `customerId` (string, required) The internal customer id for which orders are fetched. - `statusSeed` (string) A comma separated string of status ids to filter the orders. - `source` (string) The source of the order as set when created. Used to filter the orders. Usually hardcoded in the web application to WEB. - `fromDate` (string, required) A from date used to filter orders. Format: yyyy-mm-ddThh:mm:ss.nnn[z], example 2024-08-01T12:59:59.000Z - `toDate` (string, required) A to date used to filter orders. Format: yyyy-mm-ddThh:mm:ss.nnn[z], example 2024-08-01T12:59:59.000Z - `pageNo` (string) Page numbers start with 1. Default is 1. If you specify a pageNo outside the range of items, an empty list will be returned. PageSize is mandatory for pageNo to work. - `pageSize` (string) Number of orders to display per page. - `divisionCode` (string, required) The external division code for which orders are fetched. - `cultureCode` (string) Specifies in which language to display culture specific information. If none is supplied, value is resolved from Application. ## Response 200 fields (application/json): - `ItemCount` (integer) The total number of orders. Can be used to manage paging. Use PageSize to calculate number of pages. - `Items` (array) Current list of orders for the current page if paging is used. Otherwise all orders will be in the list. - `Items.Id` (string) The internal id of the Order in Storm. - `Items.QuotationId` (integer,null) The internal id of the quotation/basket used to create the Order. - `Items.OrderNo` (string) The external order number of the Order, usually from an ERP. MaxLength: 50. - `Items.OrderDate` (string) The order date of the Order. - `Items.Status` (string) The status text of the Order. See ListOrderStatuses for information about available statuses. MaxLength: 50. - `Items.Source` (string) The source of the Order. 'WEB' is used for all orders created though Storm. MaxLength: 255. - `Items.Currency` (string) The currency code of the Order. MaxLength: 3. - `Items.Items` (array) The items on the Order. - `Items.Items.RowNumber` (number) The row number of the OrderItem. - `Items.Items.PartNo` (string) The PartNo of the OrderItem. MaxLength: 50. - `Items.Items.Name` (string) The name of the OrderItem. MaxLength: 255. - `Items.Items.QtyOrdered` (number) The quantity ordered. This is the total quantity ordered. - `Items.Items.UnitPrice` (number) The unit price of the Item, excluding VAT. - `Items.Items.UnitDiscount` (number) The unit discount of the Item, excluding VAT. - `Items.Items.RowAmount` (number) The total amount of the Item, excluding VAT. - `Items.Items.VatRate` (number) A rate to multiply with price to get price inc VAT. 25% VAT equals a VatRate of 1.25. - `Items.Items.ImageKey` (string,null) 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. - `Items.Items.Type` (integer) Sku type internal id for this order item. - `Items.Items.Status` (string) The status text of the OrderItem. See ListOrderStatuses for information about available statuses. MaxLength: 50. - `Items.Items.Info` (array) A list of infos used to keep application specific data on the order item. - `Items.Items.Info.Code` (string) The external code of the Info. MaxLength: 50. - `Items.Items.Info.Name` (string) The name of the Info. MaxLength: 50. - `Items.Items.Info.Description` (string) The description of the Info. MaxLength: 500. - `Items.Items.Info.Value` (string) The value of the Info. MaxLength: max. - `Items.Items.ParentRowNumber` (number,null) The parent row number of the OrderItem, if any. - `Items.Items.PriceRecommended` (number,null) This is the recommended price of the item when the order was created. - `Items.Items.PriceCatalog` (number,null) This is the catalog price of the item when the order was created. - `Items.Items.PriceStandard` (number,null) This is the standard price of the item when the order was created. - `Items.Items.UnitPriceIncVat` (number) The unit price of the item, including VAT. - `Items.SellTo` (object) - `Items.SellTo.Company` (object) - `Items.SellTo.Company.Id` (integer,null) The internal id of Company. - `Items.SellTo.Company.No` (string) The external code of Company. Usually from an ERP system. MaxLength: 50. - `Items.SellTo.Company.Name` (string) The name of Company. MaxLength: 100. - `Items.SellTo.Company.OrgNo` (string) The organizational number of Company. MaxLength: 50. - `Items.SellTo.Customer` (object) - `Items.SellTo.Customer.Id` (integer,null) The internal id of Customer. - `Items.SellTo.Customer.No` (string) The external code of Customer. Usually from an ERP system. MaxLength: 50. - `Items.SellTo.Customer.FirstName` (string) The first name of Customer. MaxLength: 50. - `Items.SellTo.Customer.LastName` (string) The last name of Customer. MaxLength: 50. - `Items.SellTo.Customer.SSN` (string) The social security number of Customer. MaxLength: 50. - `Items.SellTo.Customer.Email` (string) The e-mail of Customer. MaxLength: 255. - `Items.SellTo.Customer.Phone` (string) The phone number of Customer. MaxLength: 50. - `Items.SellTo.Customer.CellPhone` (string) The cell phone number of Customer. MaxLength: 50. - `Items.SellTo.Address` (object) - `Items.SellTo.Address.Line1` (string) The first address line of the Address. MaxLength: 255. - `Items.SellTo.Address.Line2` (string) The second address line of the Address. MaxLength: 255. - `Items.SellTo.Address.CareOf` (string) The care of part of the Address. MaxLength: 100. - `Items.SellTo.Address.City` (string) The city of the Address. MaxLength: 50. - `Items.SellTo.Address.ZipCode` (string) The zipcode of the Address. MaxLength: 50. - `Items.SellTo.Address.Country` (string) The name of the country of the Address. MaxLength: 50. - `Items.SellTo.Address.CountryCode` (string) The code of the country of the Address. MaxLength: 3. - `Items.SellTo.Address.Region` (string) The region of the Address. MaxLength: 50. - `Items.SellTo.Address.ShippingPhoneNumber` (string) Phone number for shipping address. Only applicable in shipping addresses. MaxLength: 50. - `Items.SellTo.Address.GlobalLocationNo` (string) 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. - `Items.SellTo.DropPointCode` (string) The external drop point code, if any. Only set for drop points. MaxLength: 50. - `Items.BillTo` (object) - `Items.ShipTo` (object) - `Items.OrderTotalIncVat` (number) The total amount on the Order including VAT. - `Items.OrderTotalExVat` (number) The total amount on the Order excluding VAT. - `Items.PaymentMethod` (string) The payment method of the Order. MaxLength: 50. - `Items.DeliveryMethod` (string) The delivery method of the Order. MaxLength: 50. - `Items.DeliveryNotes` (array) The delivery notes of the Order. - `Items.DeliveryNotes.Id` (integer,null) The internal Id of the DeliveryNote. - `Items.DeliveryNotes.NoteNo` (string) The external number of the DeliveryNote. Usually a number from the ERP system. MaxLength: 50. - `Items.DeliveryNotes.DeliveryDate` (string) The delivery date of the DeliveryNote. - `Items.DeliveryNotes.NoteText` (string) Free text field of the DeliveryNote. MaxLength: 255. - `Items.DeliveryNotes.DeliveryMode` (string) The delivery mode of the items for the DeliveryNote. MaxLength: 50. - `Items.DeliveryNotes.OrderNo` (string) The external order number of the Order related to the DeliveryNote. This usually comes from an ERP. MaxLength: 50. - `Items.DeliveryNotes.OrderDate` (string) The order date of the Order related to the DeliveryNote. - `Items.DeliveryNotes.Culture` (string) The culture code of the DeliveryNote. This is the culture code used when asking for DeliveryNotes, not the original. MaxLength: 16. - `Items.DeliveryNotes.YourReference` (string) Not used. MaxLength: 255. - `Items.DeliveryNotes.SMSNotificationNumber` (string) Not used. MaxLength: 50. - `Items.DeliveryNotes.Items` (array) The items delivered. - `Items.DeliveryNotes.Items.Id` (integer,null) The internal id of the DeliveryNoteItem. - `Items.DeliveryNotes.Items.RowNumber` (number) The row number of the DeliveryNoteItem. - `Items.DeliveryNotes.Items.ItemNo` (string) The PartNo of the DeliveryNoteItem. MaxLength: 50. - `Items.DeliveryNotes.Items.ItemDescription` (string) The name of the DeliveryNoteItem. MaxLength: 255. - `Items.DeliveryNotes.Items.QtyOrdered` (number) The 1uantity ordered. This is the total quantity ordered. - `Items.DeliveryNotes.Items.QtyDelivered` (number) The quantity delivered. This is the quantity delivered on this DeliverNoteItem. - `Items.DeliveryNotes.Items.QtyBackordered` (number) The quantity not delivered. This is the quantity still missing on this DeliverNoteItem. - `Items.DeliveryNotes.Items.Comment` (string) Free text comment on the DeliverNoteItem. MaxLength: 255. - `Items.DeliveryNotes.Items.TrackingCodes` (array) The external tracking code of the DeliveryNoteItem. Obsolete! - Not used. Tracking info is in DeliveryNotePackage. - `Items.DeliveryNotes.Items.TrackingCodes.Id` (integer,null) - `Items.DeliveryNotes.Items.TrackingCodes.FreightForwarder` (string) MaxLength: 50. - `Items.DeliveryNotes.Items.TrackingCodes.TrackingCode` (string) MaxLength: 50. - `Items.DeliveryNotes.Items.Status` (string) The status text of the DeliveryNoteItem. See ListOrderStatuses for information about available statuses. MaxLength: 50. - `Items.DeliveryNotes.Packages` (array) Package information for the DeliveryNote. - `Items.DeliveryNotes.Packages.Id` (integer,null) The internal id of the DeliveryNotePackage. - `Items.DeliveryNotes.Packages.ParcelNumber` (string) The external parcel number of the DeliveryNotePackage from the Speditor. Used to track parcels online. MaxLength: 50. - `Items.DeliveryNotes.Packages.Status` (string) The status text of the DeliveryNotePackage. See ListOrderStatuses for information about available statuses. MaxLength: 50. - `Items.DeliveryNotes.DivisionCode` (string) The external store code for the delivering Store. MaxLength: 50. - `Items.DeliveryNotes.Status` (string) The status text of the DeliveryNote. See ListOrderStatuses for information about available statuses. MaxLength: 50. - `Items.DeliveryNotes.Info` (array) A list of infos used to keep application specific data on the deliveryNote. - `Items.Info` (array) A list of infos used to keep application specific data on the order. - `Items.TypeId` (integer) The type of the order. 1 for normal sales order and 3 for orders from subscriptions. 2 is reserved for purchase orders. - `Items.DeliveryMark` (string) The delivery mark of the Order. Gets it's value from the OrderReference field of the basket. MaxLength: 255. - `Items.DropPoint` (object)