{"templateId":"markdown","sharedDataIds":{},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown","redocly_category":"API Reference","owner":"AI"},"seo":{"title":"Norce Commerce Query examples","description":"Examples based on best practices","keywords":"technical, postman, examples"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["last updated: 2024-09-06"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"norce-commerce-query-examples"},"children":["Norce Commerce Query examples"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Examples based on best practices"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://www.postman.com/collection/3490f495-82b0-4a54-9040-a4f187fee579"},"children":["Link to postman collection"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"_set-testdata"},"children":["_Set testdata"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"set-pg---norce-open-demo"},"children":["Set PG - norce-open-demo"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"metadata"},"children":["Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All endpoints for fetching metadata information.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"Can also use the reference portal ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/api-reference/#norce-commerce-query"},"children":["https://docs.norce.io/api-reference/#norce-commerce-query"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"application-metadata"},"children":["Application Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"application-serviceroot"},"children":["Application ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"core-metadata"},"children":["Core Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Core/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"core-serviceroot"},"children":["Core ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Core"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"customers-metadata"},"children":["Customers Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Customers/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"customers-serviceroot"},"children":["Customers ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Customers"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"orders-metadata"},"children":["Orders Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"orders-serviceroot"},"children":["Orders ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"products-metadata"},"children":["Products Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"products-serviceroot"},"children":["Products ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"reporting-metadata"},"children":["Reporting Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Reporting/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"reporting-serviceroot"},"children":["Reporting ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Reporting"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"shopping-metadata"},"children":["Shopping Metadata"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Shopping/$metadata"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"shopping-serviceroot"},"children":["Shopping ServiceRoot"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Shopping"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"products-and-pricing"},"children":["Products and pricing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Examples when working with products, pricing, availability etc."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"product-information-to-norce-commerce"},"children":["Product information to Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read more about product integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/productintegration/#product-information-to-norce-commerce"},"children":["https://docs.norce.io/productintegration/#product-information-to-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["There might be required to lookup information using Query, here are some examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-manufacturercodes"},"children":["Lookup ManufacturerCodes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientManufacturers?$select=ManufacturerId,ManufacturerCode,Name"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-category-codes"},"children":["Lookup Category Codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/Categories?$select=Id,Code,DefaultName"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"get-flags"},"children":["Get Flags"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ProductFlags?$select=Id,TypeId,GroupId,DefaultName,DefaultDescription,IsManuallyEditable,Code&$expand=Cultures($select=CultureCode,Name,Description),Group($select=Id,DefaultName,DefaultDescription;$expand=Cultures($select=CultureCode,Name,Description))"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"get-parametrics"},"children":["Get Parametrics"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/Parametrics?$select=Id,DefaultName,HasListValues,HasMultipleValues,IsVariantType,IsRequired,IsHidden ,Code,IsReadOnly"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"get-parametriclistvalues"},"children":["Get ParametricListValues"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ParametricListValues?$select=Id,ParametricId,DefaultVarcharValue,DefaultDescription,Code"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"get-parametricmultiplevalues"},"children":["Get ParametricMultipleValues"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ParametricMultipleValues?$select=Id,ParametricId,DefaultValue,DefaultDescription,Code"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"product-information-from-norce-commerce"},"children":["Product information from Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Listen to skuchanged notification in Norce Commerce Event. Fetch ProductSku´s from Norce Commerce Query."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See examples here."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-for-skuchangednotification"},"children":["Lookup for SkuChangedNotification"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/ProductSkus('{{lookupPartNo}}')?$expand=PriceLists($select=PriceListId,QtyBreak,CurrencyId,PriceSale,CostPurchase,PriceStandard,PriceRecommended,ChosenSupplierId),Product($select=ManufacturerId,ManufacturerPartNo;$expand=SupplierSkus($select=PartNo,SupplierId))&$select=PartNo,StatusId,ErpName,EanCode"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"small-export"},"children":["Small Export"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/ProductSkus?$expand=Product($select=DefaultName,ImageKey,DefaultUniqueUrlName;$expand=Variant($select=DefaultName,ImageKey,DefaultUniqueUrlName))&$select=PartNo,StatusId"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"parametervaluesfromproductskus"},"children":["ParameterValuesFromProductSkus"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/ProductSkus('{{lookupPartNo}}')?$expand=Product($expand=Parametrics($select=DefaultVarcharValue,DefaultHtmlValue,IntegerValue,DecimalValue,BooleanValue,DateValue,ListId,NormalizedValue,IsVariantUnique),ParametricMultiple($select=MultipleId);$select=Id)&$select=PartNo,ProductId,ErpName"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"flagsfromproductskus"},"children":["FlagsFromProductSkus"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/ProductSkus('{{lookupPartNo}}')?$expand=Product($select=Id;$expand=Flags($select=FlagId,IsActive))&$select=PartNo,ProductId,ErpName"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"price-information-from-and-to-norce-storm"},"children":["Price information from and to Norce [Storm]"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read more about the price integrations here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/priceintegration/#price-information-to-norce-commerce"},"children":["https://docs.norce.io/priceintegration/#price-information-to-norce-commerce"]}," and here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/priceintegration/#price-information-from-norce-commerce"},"children":["https://docs.norce.io/priceintegration/#price-information-from-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Or if prices should be fetched and sent to other system, listen to SkuChangedNotification and lookup codes and other information with quesry (if needed)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-pricelists"},"children":["Lookup Pricelists"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientPriceLists?$select=PriceListId,Name,Agreement"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-prices-from-products"},"children":["Lookup Prices from Products"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/ProductSkuPriceLists?$filter=PartNo eq '{{lookupPartNo}}' and PriceListId eq {{lookupPricelist}} and IsActive eq true&$select=PartNo,PriceListId,QtyBreak,CurrencyId,PriceSale,CostPurchase,CostUnit"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"availability-information-to-norce-commerce"},"children":["Availability information to Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read about availability integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/onhandintegration/#availability-information-to-norce-commerce"},"children":["https://docs.norce.io/onhandintegration/#availability-information-to-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["However there might be required to lookup information using Query, here are some examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-warehouse-and-location-codes"},"children":["Lookup Warehouse and Location codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientWarehouses?$expand=Locations($select=LocationId,Code,Name,IsStandard)&$select=WarehouseId,Code,Name,IsStandard"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"price-lists-to-norce-storm"},"children":["Price lists to Norce [Storm]"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read about price list integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/productintegration/#price-lists-to-norce-commerce"},"children":["https://docs.norce.io/productintegration/#price-lists-to-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["However there might be required to lookup information using Query, here are some examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-pricelists-1"},"children":["Lookup Pricelists"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientPriceLists?$select=PriceListId,Name,Agreement"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-warehouse-and-location-codes-1"},"children":["Lookup Warehouse and Location codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientWarehouses?$expand=Locations($select=LocationId,Code,Name,IsStandard)&$select=WarehouseId,Code,Name,IsStandard"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"images-to-norce-commerce"},"children":["Images to Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read about Image integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/productintegration/#images-and-files-to-norce-commerce"},"children":["https://docs.norce.io/productintegration/#images-and-files-to-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["However there might be required to lookup information using Query, here are some examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-file-types"},"children":["Lookup file types"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Core/FileTypes?$select=Id,Extension,MimeType"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"competitor-information-to-norce-commerce"},"children":["Competitor information to Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read about competitor integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/productintegration/#competitor-information-to-norce-commerce"},"children":["https://docs.norce.io/productintegration/#competitor-information-to-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["However there might be required to lookup information using Query, here are some examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-salesarea"},"children":["Lookup Salesarea"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Core/SalesAreas?$select=Id,DefaultName,DefaultCurrencyId,DefaultVatCodeId"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"suppliers"},"children":["Suppliers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Examples when working with supplier products, supplier stock, costs and supplier content etc."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"supplier-catalog-to-norce-commerce"},"children":["Supplier catalog to Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read about supplier integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/supplierintegration/#automatically-integrate-a-supplier-catalog-to-norce-commerce"},"children":["https://docs.norce.io/supplierintegration/#automatically-integrate-a-supplier-catalog-to-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["However there might be required to lookup information using Query, here are some examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-suppliers"},"children":["Lookup Suppliers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientSuppliers?$select=SupplierId,SupplierCode,Name,IsActive"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-file-types-1"},"children":["Lookup file types"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Core/FileTypes?$select=Id,Extension,MimeType,IsActive"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-supplier-pricelist-codes-not-implemented"},"children":["Lookup Supplier pricelist codes (not implemented)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ``"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-supplier-warehouse-codes"},"children":["Lookup Supplier warehouse codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientSuppliers?$expand=Warehouses($select=WarehouseId,Name,StandardLeadTimeDayCount),WarehouseLocations($select=WarehouseId,LocationId,Name)&$select=SupplierId,SupplierCode,Name"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"supplier-information-from-norce-commerce"},"children":["Supplier information from Norce Commerce"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read about supplier integration here: ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://docs.norce.io/supplierintegration/#get-supplier-information-from-norce-commerce"},"children":["https://docs.norce.io/supplierintegration/#get-supplier-information-from-norce-commerce"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Here is examples on how to fetch supplier information from Norce."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"primary-supplier-information"},"children":["Primary supplier information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For orders with products that needs to be purchased from supplier, this lookup for every order row will give the information needed about the best supplier to by from at the moment."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":5,"id":"lookup-additional-supplier-sku-info"},"children":["Lookup additional supplier sku info"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/SupplierProductSkus?$filter=PartNo eq '{{lookupSupplierPartNo}}' and SupplierId eq {{lookupSupplierId}}&$expand=PriceLists($expand=PriceList($select=Id,DefaultName,Code);$select=SupplierId,SupplierPriceListId,QtyBreak,CurrencyId,CostPurchase,CostPurchaseLastChecked;$filter=SupplierPriceListId eq {{lookupSupplierPriceListId}}),OnHands($select=WarehouseId,LocationId,OnHandValue,OnHandLastChecked)&$select=PartNo,SupplierId,Name"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":5,"id":"lookup-chosen-supplier-from-partno"},"children":["Lookup chosen supplier from partno"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Products/ProductSkus('{{lookupPartNo}}')?$expand=PriceLists($filter=PriceListId eq {{lookupPricelist}};$select=QtyBreak,PriceSale,CostPurchase,CostUnit,ChosenSupplierId,ChosenSupplierPartNo,ChosenSupplierPriceListId,ChosenSupplierQtyBreak)&$select=PartNo,ErpName"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-supplier-information"},"children":["Lookup Supplier information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Application/ClientSuppliers?$expand=Warehouses($select=WarehouseId,Name,StandardLeadTimeDayCount),WarehouseLocations($select=WarehouseId,LocationId,Name),Infos($select=TypeId,Value)&$select=SupplierId,SupplierCode,Name"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"shopping"},"children":["Shopping"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Examples when working with baskets, customers, companies, etc."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"order-events"},"children":["Order events"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Listen to order received event or any other order event. Fetch order or basket data from Norce Commerce Query."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See examples here."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-order-information"},"children":["Lookup Order information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Orders?$filter=OrderNo eq '{{lookupOrderNo}}'&$expand=Items($select=Id,LineNumber,ParentLineNumber,PartNo,ProductName,QtyOrdered,VatRate,PriceSale,PriceStandard,DiscountPercentage,DiscountAmount,LineAmount;$expand=Infos($select=TypeId,Value)),Infos($select=TypeId,Value),Payer($select=FirstName,LastName,EmailAddress,CellPhoneNumber,CompanyName,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,ShippingPhoneNumber,Gln),Buyer($select=FirstName,LastName,EmailAddress,CellPhoneNumber,CompanyName,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,ShippingPhoneNumber,Gln),ShipTo($select=FirstName,LastName,EmailAddress,CellPhoneNumber,CompanyName,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,ShippingPhoneNumber,Gln),DropPoint($select=FirstName,LastName,EmailAddress,CellPhoneNumber,CompanyName,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,ShippingPhoneNumber,Gln),Quotation($select=Id;$expand=Infos($select=TypeId,Value),Items($select=LineNumber,PartNo,ProductNameWhenCreated;$expand=Infos($select=TypeId,Value))) &$select=Id,ApplicationId,QuotationId,OrderNo,OrderDate,BuyerCompanyCode,BuyerCustomerCode,PayerCompanyCode,PayerCustomerCode,StatusId,Source,DeliveryMode,PaymentTerms,CurrencyId,FreightCost,DeliveryAttention,DeliveryCareOf,DeliveryAddressLine1,DeliveryAddressLine2,DeliveryZipCode,DeliveryCity,DeliveryRegion,DeliveryCountryId,DeliveryMark,InvoiceMark,PaymentMethodId,DeliveryMethodId,DropPointCode"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-basket-information"},"children":["Lookup Basket information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Quotations?$filter=Id eq {{lookupBasketId}}&$expand=Infos($select=TypeId,Value),Items($select=LineNumber,PartNo,ProductNameWhenCreated,Qty,PriceSale,PriceListId,VatCode,PromotionIdSeed,ParentLineNumber,Comment,TotalPriceSaleExVat,TotalPriceSaleIncVat,RequirementPromotionIdSeed;$expand=Infos($select=TypeId,Value)),Addresses($select=ClientCustomerAddressId,ClientCompanyAddressId,TypeId,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,CompanyName,FirstName,LastName,CellPhoneNumber,Email,ShippingPhoneNumber,Gln)&$select=Id,ApplicationId,StatusId,Comment,PaymentMethodId,DeliveryMethodId,PayerFirstName,PayerMiddleName,PayerLastName,PayerCellPhoneNumber,PayerEmail,CurrencyId,DiscountCode,BuyerFirstName,BuyerMiddleName,BuyerLastName,BuyerCellPhoneNumber,BuyerEmail,CustomerOrderReference,PickupCode,DeliveryMethodCode"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"customer-lookups"},"children":["Customer lookups"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When importing customers some lookups may be required."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See examples here."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-customer-information"},"children":["Lookup Customer information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Customers/Customers({{lookupCustomerId}})?$expand=Companies($select=IsPrimary;$expand=Company($select=CompanyCode,Name)),Addresses($select=TypeId,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,ShippingPhoneNumber),Orders($select=ApplicationId,QuotationId,OrderNo,OrderDate,StatusId),Infos($select=TypeId,Value),Flags($select=FlagId,IsActive)&$select=Id,CustomerCode,EmailAddress,FirstName,MiddleName,LastName,PhoneNumber,CellPhoneNumber,OldCustomerNo,ReplacementCustomerId,ApplicationId"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"company-lookups"},"children":["Company lookups"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When importing companies some lookups may be required."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See examples here."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"lookup-company-information"},"children":["Lookup Company information"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Customers/Companies({{lookupCompanyId}})?$expand=Customers($select=Department,OrganizationTitle;$expand=Customer($select=Id,CustomerCode,EmailAddress,FirstName,MiddleName,LastName,PhoneNumber,CellPhoneNumber)),Infos($select=TypeId,Value),Addresses($select=TypeId,CareOf,AddressLine1,AddressLine2,ZipCode,City,Region,CountryId,Gln,ShippingPhoneNumber),Flags($select=FlagId,IsActive),PriceLists($select=PriceListId,IsExclusive)&$select=Id,CompanyCode,TypeId,OrganizationNo,Name"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"order-lookups"},"children":["Order Lookups"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Som different ways to look up order and basket information"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getorders-from-a-date"},"children":["GetOrders (from a date)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Orders?$select=ApplicationId,QuotationId,OrderNo,OrderDate,StatusId&$expand=Quotation($select=DiscountCode)&$filter=OrderDate gt 2024-04-01Z"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getorder-by-quotationid"},"children":["GetOrder (by quotationId)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Orders?$select=ApplicationId,QuotationId,OrderNo,OrderDate&$filter=QuotationId%20eq%20{{lookupBasketId}}&$expand=Items($select=LineNumberString,PartNo,ProductName,QtyOrdered,PriceSale)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"getquotations-from-status-id"},"children":["GetQuotations from status id"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Quotations?$filter=StatusId eq 8 or StatusId eq 10&$select=Id,ApplicationId,StatusId,BuyerFirstName,BuyerLastName,Created"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"customer"},"children":["Customer"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"customers"},"children":["Customers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Customers/Customers?$expand=Addresses($select=ZipCode,City,Region,CountryId),Orders($select=ApplicationId,OrderNo,OrderDate,StatusId),Infos($select=TypeId,Value) &$select=Id,CustomerCode,OldCustomerNo,ReplacementCustomerId,ApplicationId&$filter=Created gt 2024-01-01T00:00:00.00Z"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"company"},"children":["Company"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"fetch-company-discounts"},"children":["Fetch company discounts"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Customers/Companies?$expand=Discounts($select=ValueCode,DiscountPct,PriceListTypeIdSeed)&$select=CompanyCode,Name"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"orders"},"children":["Orders"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"getinvoice"},"children":["GetInvoice"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Invoices?$expand=Items($select=LineNumber,PartNo,ProductName,Quantity,CurrencyId,VatRate,CostUnit,PriceSale,DiscountPercentage,DiscountAmount,LineAmount,LineNumberString,PriceUnit;$expand=OrderItem($select=OrderId,LineNumber)),Address($select=TypeId,Name,Attention,CareOf,Line1,Line2,ZipCode,City,Region,CountryId,EmailAddress,PhoneNumber,ShippingPhoneNumber,Gln)&$select=Id,InvoiceNo,TypeId,ReferenceOrderId,DeliveryDate,InvoiceDate,InvoiceDueDate,CurrencyId,SumLineDiscount,FreightCost,InvoiceFee,CostValue,SalesBalance,InvoiceAmount,InvoiceRoundOff,Vat,InvoiceName,InvoiceAttention,InvoiceCareOf,InvoiceAddressLine1,InvoiceAddressLine2,InvoiceZipCode,InvoiceCity,InvoiceRegion,InvoiceCountryId,NoteText,LastInvoiceForOrder,ReferenceNoPsp,PaymentMethodId,DeliveryMethodId,IsDebit,CreditedInvoiceId,Comment&$filter=InvoiceNo eq '{{lookupInvoiceNo}}'"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"getinvoices"},"children":["GetInvoices"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Invoices?$expand=Items($select=LineNumber,PartNo,ProductName,Quantity,LineAmount;$expand=OrderItem($select=OrderId,LineNumber))&$select=Id,InvoiceNo,ReferenceOrderId,InvoiceDate,InvoiceAmount&$filter=InvoiceDate gt 2024-04-01T00:00:00.00Z"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"getdeliverynote"},"children":["GetDeliveryNote"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/DeliveryNotes?$filter=NoteNo eq '{{lookupDNoteNo}}'&$expand=Items($select=LineNumber,PartNo,ProductName,QtyOrdered,Quantity,QtyBackOrdered,NoteText,Department,OrderItemId)&$select=Id,NoteNo,TypeId,ReferenceOrderId,DeliveryName,DeliveryAttention,DeliveryCareOf,DeliveryAddressLine1,DeliveryAddressLine2,DeliveryZipCode,DeliveryCity,DeliveryRegion,DeliveryCountryId,DeliveryDate,DeliveryTerms,DeliveryMode,Source,DeliveryMark,NoteText,ShippingNo"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"getorders"},"children":["GetOrders"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://{{apihost}}/commerce/query/2.0/Orders/Orders?$select=Id,OrderNo,OrderDate,BuyerCompanyCode&$filter=OrderDate gt 2024-04-01T00:00:00.00Z&$expand=Items($select=LineNumber,PartNo,ProductName,QtyOrdered,LineAmount)"]}]}]},"headings":[{"value":"Norce Commerce Query examples","id":"norce-commerce-query-examples","depth":1},{"value":"_Set testdata","id":"_set-testdata","depth":2},{"value":"Set PG - norce-open-demo","id":"set-pg---norce-open-demo","depth":3},{"value":"Metadata","id":"metadata","depth":2},{"value":"Application Metadata","id":"application-metadata","depth":3},{"value":"Application ServiceRoot","id":"application-serviceroot","depth":3},{"value":"Core Metadata","id":"core-metadata","depth":3},{"value":"Core ServiceRoot","id":"core-serviceroot","depth":3},{"value":"Customers Metadata","id":"customers-metadata","depth":3},{"value":"Customers ServiceRoot","id":"customers-serviceroot","depth":3},{"value":"Orders Metadata","id":"orders-metadata","depth":3},{"value":"Orders ServiceRoot","id":"orders-serviceroot","depth":3},{"value":"Products Metadata","id":"products-metadata","depth":3},{"value":"Products ServiceRoot","id":"products-serviceroot","depth":3},{"value":"Reporting Metadata","id":"reporting-metadata","depth":3},{"value":"Reporting ServiceRoot","id":"reporting-serviceroot","depth":3},{"value":"Shopping Metadata","id":"shopping-metadata","depth":3},{"value":"Shopping ServiceRoot","id":"shopping-serviceroot","depth":3},{"value":"Products and pricing","id":"products-and-pricing","depth":2},{"value":"Product information to Norce Commerce","id":"product-information-to-norce-commerce","depth":3},{"value":"Lookup ManufacturerCodes","id":"lookup-manufacturercodes","depth":4},{"value":"Lookup Category Codes","id":"lookup-category-codes","depth":4},{"value":"Get Flags","id":"get-flags","depth":4},{"value":"Get Parametrics","id":"get-parametrics","depth":4},{"value":"Get ParametricListValues","id":"get-parametriclistvalues","depth":4},{"value":"Get ParametricMultipleValues","id":"get-parametricmultiplevalues","depth":4},{"value":"Product information from Norce Commerce","id":"product-information-from-norce-commerce","depth":3},{"value":"Lookup for SkuChangedNotification","id":"lookup-for-skuchangednotification","depth":4},{"value":"Small Export","id":"small-export","depth":4},{"value":"ParameterValuesFromProductSkus","id":"parametervaluesfromproductskus","depth":4},{"value":"FlagsFromProductSkus","id":"flagsfromproductskus","depth":4},{"value":"Price information from and to Norce [Storm]","id":"price-information-from-and-to-norce-storm","depth":3},{"value":"Lookup Pricelists","id":"lookup-pricelists","depth":4},{"value":"Lookup Prices from Products","id":"lookup-prices-from-products","depth":4},{"value":"Availability information to Norce Commerce","id":"availability-information-to-norce-commerce","depth":3},{"value":"Lookup Warehouse and Location codes","id":"lookup-warehouse-and-location-codes","depth":4},{"value":"Price lists to Norce [Storm]","id":"price-lists-to-norce-storm","depth":3},{"value":"Lookup Pricelists","id":"lookup-pricelists-1","depth":4},{"value":"Lookup Warehouse and Location codes","id":"lookup-warehouse-and-location-codes-1","depth":4},{"value":"Images to Norce Commerce","id":"images-to-norce-commerce","depth":3},{"value":"Lookup file types","id":"lookup-file-types","depth":4},{"value":"Competitor information to Norce Commerce","id":"competitor-information-to-norce-commerce","depth":3},{"value":"Lookup Salesarea","id":"lookup-salesarea","depth":4},{"value":"Suppliers","id":"suppliers","depth":2},{"value":"Supplier catalog to Norce Commerce","id":"supplier-catalog-to-norce-commerce","depth":3},{"value":"Lookup Suppliers","id":"lookup-suppliers","depth":4},{"value":"Lookup file types","id":"lookup-file-types-1","depth":4},{"value":"Lookup Supplier pricelist codes (not implemented)","id":"lookup-supplier-pricelist-codes-not-implemented","depth":4},{"value":"Lookup Supplier warehouse codes","id":"lookup-supplier-warehouse-codes","depth":4},{"value":"Supplier information from Norce Commerce","id":"supplier-information-from-norce-commerce","depth":3},{"value":"Primary supplier information","id":"primary-supplier-information","depth":4},{"value":"Lookup additional supplier sku info","id":"lookup-additional-supplier-sku-info","depth":5},{"value":"Lookup chosen supplier from partno","id":"lookup-chosen-supplier-from-partno","depth":5},{"value":"Lookup Supplier information","id":"lookup-supplier-information","depth":4},{"value":"Shopping","id":"shopping","depth":2},{"value":"Order events","id":"order-events","depth":3},{"value":"Lookup Order information","id":"lookup-order-information","depth":4},{"value":"Lookup Basket information","id":"lookup-basket-information","depth":4},{"value":"Customer lookups","id":"customer-lookups","depth":3},{"value":"Lookup Customer information","id":"lookup-customer-information","depth":4},{"value":"Company lookups","id":"company-lookups","depth":3},{"value":"Lookup Company information","id":"lookup-company-information","depth":4},{"value":"Order Lookups","id":"order-lookups","depth":3},{"value":"GetOrders (from a date)","id":"getorders-from-a-date","depth":4},{"value":"GetOrder (by quotationId)","id":"getorder-by-quotationid","depth":4},{"value":"GetQuotations from status id","id":"getquotations-from-status-id","depth":4},{"value":"Customer","id":"customer","depth":2},{"value":"Customers","id":"customers","depth":3},{"value":"Company","id":"company","depth":2},{"value":"Fetch company discounts","id":"fetch-company-discounts","depth":3},{"value":"Orders","id":"orders","depth":2},{"value":"GetInvoice","id":"getinvoice","depth":3},{"value":"GetInvoices","id":"getinvoices","depth":3},{"value":"GetDeliveryNote","id":"getdeliverynote","depth":3},{"value":"GetOrders","id":"getorders","depth":3}],"frontmatter":{"seo":{"title":"Norce Commerce Query examples","description":"Examples based on best practices","keywords":"technical, postman, examples"},"metadata":{"redocly_category":"API Reference","owner":"AI"}},"lastModified":"2026-10-21T08:28:15.208Z","pagePropGetterError":{"message":"","name":""}},"slug":"/api-reference/examples/postman-query-examples","userData":{"isAuthenticated":false,"teams":["anonymous"]}}