The Products resource allows products to be listed, viewed, created, and updated. An individual product’s details can be viewed or updated by appending its identifier (a GUID formatted as XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) to the URI.
The full range of URIs and HTTP Verbs supported are:
If set to true, returns a brief summary of the Product list that only includes: Guid, ProductCode, ProductDescription, DefaultPurchasePrice, DefaultSellPrice, SellPriceTier1, DefaultSupplierId.
customerCode
If you have added customer specific product prices, the list of Product(s) will be displayed. The CustomerSellPrice field will display the customer price.
excludeAssembled
If set to true, assembled Products will not be displayed.
excludeComponents
If set to true, component Products will not be displayed.
includeAttributes
If set to true, returns the attributes associated with the requested Product.
includeObsolete
If set to true, returns all Products, including obsolete. If set to false or if it is not specified then returns only active (i.e. non-obsolete) Products.
modifiedSince
Returns Products created or modified since the specified date.
orderBy
Orders the list by LastModifiedOn or CreatedOn date. By default the list is ordered by `ProductCode`.
pageSize
Specifies the page size for pagination. Default page size is 200 Products.
Note: Requesting large numbers of products can be susceptible to poor network performance. Please reduce the page size if you experience delayed requests.
product
Only returns Products that contain the term in the code or description.
ProductBarcode
Only returns Products with the specific product barcode.
productCode
Returns Products that start with the specific product code.
productDescription
Returns Products that start with the specific product description.
productGroup
Returns Products with the specific product group. Does not work for sub groups.
productId
Returns Products with the specific product id. You can enter multiple product Ids separated by commas.
smart
If set to true, overrides all other filters and returns all Products currently in stock, and those that have been in stock in the last 6 months.
sort
Orders the list by CreatedOn date sorted in ascending or descending order.
Note: Date filters should be provided in the ISO format YYYY-MM-DD.
Filters are used by adding the filter and value to the URI:
/Products?productCode=ACME&includeObsolete=true
/Products?orderBy=CreatedOn - returns products ordered by created on date sorted in ascending order.
/Products?orderBy=CreatedOn&sort=asc - returns products ordered by created on date sorted in ascending order.
/Products?orderBy=CreatedOn&sort=desc - returns products ordered by created on date sorted in descending order.
/Products?CustomerCode=[abc123] - returns the list of products with customer specific prices.
/Products?excludeAssembled=true - excludes all assembled products from the list.
/Products?excludeComponents=true - excludes all component product from the list.
/Products?excludeAssembled=true&excludeComponents=true - excludes all Component and Assembled products from the list.
Only applicable if Automatic Product Charge is toggled on.
Barcode
String
200
BinLocation
String
50
Only applicable if Per Warehouse Controls are toggled off.
CommerceCode
String
14
'International Commerce Codes' setting must be enabled to update this field. Only digits 0 - 9 can be entered.
CustomsDescription
String
500
'International Commerce Codes' setting must be enabled to update this field. A simplified description of the product to appear on a commercial invoice.
Required to update an existing Product if not provided in the URI. Automatically generates a Guid if not provided when creating a new Product.
Height
Nullable Decimal
ICCCountryCode
String
2
'International Commerce Codes' setting must be enabled to update this field. Use 2 two-letter country codes following ISO 3166-1 alpha-2.
ICCCountryName
String
100
'International Commerce Codes' setting must be enabled to update this field. We will apply the correct ICC country based on the ICCCountryCode.
IsComponent
Boolean
true,false
IsSellable
Boolean
true,false
Default is True. If you do not want the product to be available on the Sales Quotes / Sales Orders, you must set it to False.
IsPurchasable
Boolean
true,false
Default is True. If you do not want the product to be available to Purchase, you must set it to False.
MaxStockAlertLevel
Nullable Decimal
MinStockAlertLevel
Nullable Decimal
MinimumOrderQuantity
Nullable Decimal
Null or missing property will not override existing information.
MinimumSaleQuantity
Nullable Decimal
Null or missing property will not override existing information.
MinimumSellPrice
Nullable Decimal
Null or missing property will not override existing information. Products will not be sold below this amount. The value cannot be lower than the default sell price.
NeverDiminishing
Nullable Boolean
true,false
NominalCost
Nullable Decimal
Notes
String
1024
Obsolete
Boolean
true,false
PackSize
Nullable Decimal
ProductCode
String
100
Yes
Unique code. Can only be set when adding a record.
'International Commerce Codes' setting must be enabled to update this field. Not required but validated. Refer to the drop-down lists on any Product page for accepted values, or leave the field blank.
Note: At a minimum, a valid Guid or Name is required.
Property
Type
Length
Required
Guid
Guid
Name
String
20
Obsolete
Boolean
Examples for Request POST /Products/{productGuid}
show xml example
<?xml version="1.0"?><Productxmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://api.unleashedsoftware.com/version/1"><Guid>c97c6b46-f1cc-4741-b236-f882995e7d9a</Guid><ProductCode>API_POST_Example_1</ProductCode><ProductDescription>API Post Example_1</ProductDescription><UnitOfMeasure><Guid>c97c6b46-f1cc-4741-b236-f882995e7d9d</Guid></UnitOfMeasure><AlternateUnitsOfMeasure><AlternateUnitOfMeasure><Guid>84a37eba-02c2-44cf-aecd-3b9a492eed3f</Guid><ConversionRate>5</ConversionRate><PackSize>2</PackSize></AlternateUnitOfMeasure><AlternateUnitOfMeasure><Guid>794b39bc-6416-46ec-8149-d12616cbaf3d</Guid><ConversionRate>1</ConversionRate><Width>1.2</Width><Weight>10</Weight><Height>3</Height><Depth>2</Depth></AlternateUnitOfMeasure></AlternateUnitsOfMeasure><NeverDiminishing>false</NeverDiminishing><LastCost>0.0000</LastCost><DefaultPurchasePrice>1987.0000</DefaultPurchasePrice><DefaultSellPrice>2499.9900</DefaultSellPrice><AverageLandPrice>0.0000</AverageLandPrice><Obsolete>false</Obsolete><TaxablePurchase>true</TaxablePurchase><TaxableSales>true</TaxableSales><IsComponent>false</IsComponent><IsAssembledProduct>true</IsAssembledProduct><CommerceCode>555555</CommerceCode><CustomsDescription>description</CustomsDescription><SupplementaryClassificationAbbreviation>GT</SupplementaryClassificationAbbreviation><ICCCountryCode>AO</ICCCountryCode><ICCCountryName>Angola</ICCCountryName><ProductGroup><Guid>62ad81e4-ae76-4357-bfe8-7bef8e1c4c4e</Guid><GroupName>Furniture</GroupName></ProductGroup><ProductSubGroup><Guid>77b05cc5-4f7b-424c-89c7-63aabda06ef4</Guid><GroupName>Storage</GroupName></ProductSubGroup><IsSerialized>false</IsSerialized><IsBatchTracked>false</IsBatchTracked><MinimumSellPrice>2.0000</MinimumSellPrice><MinimumSaleQuantity>1.0000</MinimumSaleQuantity><MinimumOrderQuantity>1.0000</MinimumOrderQuantity><NominalCost>15.0000</NominalCost><AutomaticChargeCost>1.2</AutomaticChargeCost><Supplier><Guid>7ab407d9-acb5-4136-86da-f06cf57d8d38</Guid><SupplierCode>BERRY</SupplierCode><SupplierName>Berry Boutique</SupplierName><UnitOfMeasure><Guid>84a37eba-02c2-44cf-aecd-3b9a492eed3f</Guid><Name>EA</Name><Obsolete>false</Obsolete></UnitOfMeasure><LeadTimeDays>1</LeadTimeDays></Supplier></Product>
show json example
{"Guid":"c97c6b46-f1cc-4741-b236-f882995e7d9f","ProductCode":"API_POST_Example","ProductDescription":"API Post Example","UnitOfMeasure":{"Guid":"c97c6b46-f1cc-4741-b236-f882995e7d9d"},"AlternateUnitsOfMeasure":[{"Guid":"84a37eba-02c2-44cf-aecd-3b9a492eed3f","ConversionRate":5,"PackSize":2},{"Guid":"794b39bc-6416-46ec-8149-d12616cbaf3d","ConversionRate":1,"Width":1.2,"Weight":10,"Height":3,"Depth":2}],"NeverDiminishing":false,"LastCost":5024.94,"DefaultPurchasePrice":1987,"DefaultSellPrice":2499.99,"AverageLandPrice":2015.6756,"Obsolete":false,"TaxablePurchase":true,"TaxableSales":true,"IsComponent":false,"IsAssembledProduct":true,"CommerceCode":"555555","CustomsDescription":"test","SupplementaryClassificationAbbreviation":"GT","ICCCountryCode":"AO","ICCCountryName":"Angola","ProductGroup":{"GroupName":"Furniture","Guid":"62ad81e4-ae76-4357-bfe8-7bef8e1c4c4e"},"ProductSubGroup":{"GroupName":"Storage","Guid":"77b05cc5-4f7b-424c-89c7-63aabda06ef4"},"IsSerialized":false,"IsBatchTracked":false,"MinimumSellPrice":2.0000,"MinimumSaleQuantity":1.0000,"MinimumOrderQuantity":1.0000,"AutomaticChargeCost":1.2,"NominalCost":15.0000,"Supplier":{"Guid":"7ab407d9-acb5-4136-86da-f06cf57d8d38","SupplierCode":"BERRY","SupplierName":"Berry Boutique","UnitOfMeasure":{"Guid":"84a37eba-02c2-44cf-aecd-3b9a492eed3f","Name":"EA","Obsolete":false},"LeadTimeDays":1}}
Use the API Sandbox to see how the object is rendered in JSON or XML.
Note:An Unleashed account is required before you can use the API Sandbox.
Trial accounts are also allowed to connect to the API.
You can register a new account here: Register.