PartNumberAvailability
Part number availability
New endpoint available: PartNumber/Availability
Introduction
The PartNumberAvailability API tells you if the combination of catalog/part number is available inside TraceParts database. The catalog and part number that you call will be evaluated in our database of aliases to match with any existing variant
API Key
This web service requires an API Key. Please use the form to request your API Key.
Description
The API returns if the part number exists on TraceParts. In this case, will be returned the TraceParts CatalogID, the TraceParts ProductID and the part number.
Building a URL
The PartNumberAvailability API request takes the following form:
https://ws.tracepartsonline.net/tpowebservices/PartNumberAvailability?parameters
Parameters
Certain parameters are required while others are optional. As it is standard in URLs, all parameters are separated using the ampersand (&) character. The list of parameters and their possible values are enumerated below.
Required parameters
Parameter Name | Data type | Default value | Description |
---|---|---|---|
ApiKey | string | none | Code calling an API to track and control how the API is used |
Format | string | none | Answer file type (xml, json) |
Catalog | string | none | Catalog label as you have in your own data |
PartNumber | string | none | Part Number as you have in your own data |
Optional parameters
Parameter Name | Data type | Default value | Description |
---|---|---|---|
UserEmail | string | none | User email / User ID |
ActiveJsonLight | boolean | 0 | Enables the light version when json is the answer file type |
SearchPNAliases | boolean | 0 | 1: Remove punctuation of the input partnumber before comparison |
PartNumberDetails | boolean | 0 | 1: Give the version of the PartID and the SelectionPath related to the part number |
Example of PartNumberAvailability API
The request below returns the TraceParts information related to a former label of a catalog with a part number non written as wanted by the supplier of the data.
https://ws.tracepartsonline.net/tpowebservices/PartNumberAvailability?PartNumber=PRA-13654&Catalog=Sarel&SearchPNAliases=1&Format=xml&ApiKey={ApiKey}
By changing the Format and adding the ActiveJsonLight, PartNumberAvailability returns the data as a light Json file.
https://ws.tracepartsonline.net/tpowebservices/PartNumberAvailability?PartNumber=PRA-13654&Catalog=Sarel&SearchPNAliases=1&Format=json&ActiveJsonLight=1&ApiKey={ApiKey}
PartNumberAvailability responses
PartNumberAvailability responses are returned in the format indicated by the Format parameter within the URL request’s path.
JSON Output
A sample HTTP request is shown below, displaying the information related to the available part number.
{
"availability":"true",
"partId":"10-08072011-067165",
"classificationId":"SCHNEIDER_ELECTRIC_DISTRI",
"partNumber":"PRA13654"
}
XML Output
Same example as above.
<WsPartNumberAvailability>
<Availability>true</Availability>
<ClassificationId>SCHNEIDER_ELECTRIC_DISTRI</ClassificationId>
<PartId>10-08072011-067165</PartId>
<PartNumber>PRA13654</PartNumber>
</WsPartNumberAvailability>
PartNumberAvailability response elements
PartNumberAvailability responses contain four elements:
- “Availability”: true or false if the PartNumber is available or not on the TraceParts database.
- “ClassificationId”: TraceParts ID for the catalog. It is 33 characters maximum (A through Z, 0 through 9 and – and _ ).
- “PartId”: It is the TraceParts product ID. A product can be a collection of several part numbers, or a single one. The choice is made by the supplier of the data.
- “PartNumber”: part number without any special characters, ignored by TraceParts for the search feature (” “,”-“,”.”,”/”,”+”).
- “SelectionPath”: sequence of parameters which defines a unique configuration for one given product.
- “Version”: TraceParts version of the product. This version is updated as soon as a change is done in the product data.
Developer support
Please contact us for any problem, question or comment related to this content integration.
Last updated March 14, 2018
Updated 9 months ago