Each part has the following properties and is accessed via /api/part.
Complete details in PartProperties.
The unique id for this part. It will never change.
part.
A date when the part was created.
A date when the part was last updated.
The name the part is known by.
An integer between 1 and 2147483647.
Defaults to 1.
This is how many of the part are in stock.
A File id.
Sets an image of the part.
The ID is from a File.
If a photo_id is specified,
then an extra property called photo will be added which will briefly describe the image.
A full written description of the part.
The retail price of this part.
The same as price,
but represents the price for each when purchased in quantities of 10 or greater.
The same as price_10,
but represents the price for each when purchased in quantities of 100 or greater.
The same as price_100,
but represents the price for each when purchased in quantities of 1000 or greater.
The same as price,
but ignores sales.
The same as original_price,
but represents the price for each when purchased in quantities of 10 or greater.
The same as original_price_10,
but represents the price for each when purchased in quantities of 100 or greater.
The same as original_price_100,
but represents the price for each when purchased in quantities of 1000 or greater.
A Sku id. The stock keeping unit to be used when adding this to the Cart.
The weight of this part in pounds.
The color of the part.
Defaults to Pictured.
See Part Options below for details.
Basic taxonomy for the part.
Defaults to Miscellaneous.
See Part Options below for details.
The methods used to fetch and manipulate parts.
Provides a list of the options that can be used to fill out various fields when creating or updating a part.
GET /api/part/_options
Returns:
{
"color" : [...],
"category" : [...]
}
NOTE: You can also get this data by adding _include_options=1 to the parameter list when fetching a part.
POST /api/part
Required. The unique session id provided by a Session method.
Required.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Optional.
Returns:
{
"id" : "xxx",
"name" : "Joystick Pawn",
...
}
PUT /api/part/xxx
See Create Part for details.
DELETE /api/part/xxx
Required. The unique session id provided by a Session method.
Returns:
{
"success" : 1
}
GET /api/part/xxx
Optional. The unique session id provided by a Session method.
Optional. See "Options" in Intro and Part Options above for details.
Optional. See "Relationships" in Intro and Part Relationships above for details.
Returns:
{
"id" : "xxx",
"name" : "Rope",
...
}
See Search.