Browse Documentation
GET Get item category

LIST ALL ITEM CATEGORIES

GET /item_categories

Get a list of all Item Categories

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \

-XGET \

https://dev.accounteer.com/api/v0.1/item_categories/

  1.  


Response

After sending the above request, a JSON response will be returned like below if authorizer has created one or more item categories.

[{ "id": "8ebdfa28f6316a0f7d710d79ea877761240eb528", "organization_id": "6b9fbba6eb9d482ae0e86bb0d8928c9776db097f", "parent": "item name",  "name": "item name", "date_created": "2018-01-04", "date_updated": "2018-01-05" }, { "id": "aae4e54cc51b295c50ffc282c5c15a60eec464df", "organization_id": "6b9fbba6eb9d482ae0e86bb0d8928c9776db097f", "parent": null,  "name": "Item 2", "date_created": "2018-01-05", "date_updated": "2018-01-05" }, { "id": "b870f9c60f9e410a45d844e259c0f60dc6f129ab", "organization_id": "6b9fbba6eb9d482ae0e86bb0d8928c9776db097f", "parent": null,  "name": "Item 2", "date_created": "2018-01-05", "date_updated": "2018-01-05" }]

  1.  



GET AN ITEM CATEGORY

GET /item_categories/:id

Get a  particular Item Category

Request

curl -s -H "Content-Type: application/json" -H "Authorization: Bearer token" \

-XGET \

https://dev.accounteer.com/api/v0.1/item_categories/8ebdfa28f6316a0f7d710d79ea877761240eb528

  1.  


Response

After sending the above request, a JSON response will be returned like below if authorizer has created an item category with the provided ID.

  1.  [{ "id": "8ebdfa28f6316a0f7d710d79ea877761240eb528", "organization_id": "6b9fbba6eb9d482ae0e86bb0d8928c9776db097f", "parent": "item name",  "name": "item name", "date_created": "2018-01-04", "date_updated": "2018-01-05"  }]
  2.