Inventory Methods
Updated: Nov 25th, 2013 | | Categories: General
Inventory List (GET) – /items.[format] (page, categoryId)
The Items list is paginated. You can pass the “page” query string parameter followed by a number to access the other pages. You can also pass the “categoryId” parameter to access items for a particular category. This will return all of the details for items. The pagination limit is currently set to match your SalesBinder account (16 per page).
Syntax:
http://[subdomain].salesbinder.com/api/items.[format]
Example:
http://demo.salesbinder.com/api/items.json?page=2&categoryId=979db3a8-f7fc-4b73-ba05-b87abfbf6e5e
HTTP Request Type: GET
Inventory Categories List (GET) – /categories.[format] (page)
Just like Items, the Categories method is paginated too. You can pass the “page” query string parameter followed by a number to access each of the pages. The pagination limit is currently set to match your SalesBinder account (16 per page).
Syntax:
http://[subdomain].salesbinder.com/api/categories.json
Example:
http://demo.salesbinder.com/api/categories.json?page=5
HTTP Request Type: GET
View Inventory Item (GET) – /items/[id].[format]
To get the details of a specific inventory item, you simply need to pass the item “id”.
Syntax:
http://[subdomain].salesbinder.com/api/items/[id].json
Example:
http://demo.salesbinder.com/api/items/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: GET
Add New Inventory Item (POST) – /items.[format]
Syntax:
http://[subdomain].salesbinder.com/api/items.json
Example:
http://demo.salesbinder.com/api/items.json
HTTP Request Type: POST
Edit Inventory Item (PUT) – /items/[id].[format]
Syntax:
http://[subdomain].salesbinder.com/api/items/[id].json
Example:
http://demo.salesbinder.com/api/items/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: PUT
Delete Inventory Item (DELETE) – /items/[id].[format]
To delete a specific item, you simply need to pass the item “id”.
Syntax:
http://[subdomain].salesbinder.com/api/items/[id].json
Example:
http://demo.salesbinder.com/api/items/5487185e-b83f-46c2-bb91-2416ae304d03.json
HTTP Request Type: DELETE
