GET api/itemapi/item/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
ItemViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| descriptions | Dictionary of string [key] and string [value] |
None. |
|
| active | boolean |
None. |
|
| code | string |
Required String length: inclusive between 0 and 30 |
|
| color_id | globally unique identifier |
None. |
|
| customer_id | globally unique identifier |
Required |
|
| grouping_quantity | integer |
None. |
|
| id | globally unique identifier |
None. |
|
| item_service_id | globally unique identifier |
None. |
|
| item_garment_type_id | globally unique identifier |
None. |
|
| item_segment_id | globally unique identifier |
None. |
|
| item_type_id | globally unique identifier |
None. |
|
| purchase_price | decimal number |
None. |
|
| sale_price | decimal number |
None. |
|
| size_id | globally unique identifier |
None. |
|
| supplier_code | string |
String length: inclusive between 0 and 30 |
|
| supplier_description | string |
String length: inclusive between 0 and 100 |
|
| unit | string |
String length: inclusive between 0 and 10 |
|
| weight | integer |
None. |
|
| root_code | string |
String length: inclusive between 0 and 30 |
Response Formats
application/json, text/json
Sample:
{
"descriptions": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"active": true,
"code": "sample string 2",
"color_id": "1153103f-6e00-43f0-9725-f96b522e3181",
"customer_id": "9057b743-d71f-45f7-aaa7-d0bb9ddd0ef1",
"grouping_quantity": 1,
"id": "666a80ba-8247-44e7-b696-436f4e5c73db",
"item_service_id": "76c31699-9232-451d-852e-40fff95fc469",
"item_garment_type_id": "6ea4075e-2bf9-4910-98fc-e1955459ae61",
"item_segment_id": "a41370eb-ff0f-43c5-b07d-7c51a08e6f58",
"item_type_id": "c3824c10-3487-4f40-a7c9-ff8269d82ce5",
"purchase_price": 1.0,
"sale_price": 1.0,
"size_id": "b025d873-aa0c-4440-af01-378508bc749c",
"supplier_code": "sample string 6",
"supplier_description": "sample string 7",
"unit": "sample string 8",
"weight": 1,
"root_code": "sample string 9"
}
application/xml, text/xml
Sample:
<item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<active>true</active>
<code>sample string 2</code>
<color_id>1153103f-6e00-43f0-9725-f96b522e3181</color_id>
<customer_id>9057b743-d71f-45f7-aaa7-d0bb9ddd0ef1</customer_id>
<grouping_quantity>1</grouping_quantity>
<id>666a80ba-8247-44e7-b696-436f4e5c73db</id>
<item_garment_type_id>6ea4075e-2bf9-4910-98fc-e1955459ae61</item_garment_type_id>
<item_segment_id>a41370eb-ff0f-43c5-b07d-7c51a08e6f58</item_segment_id>
<item_service_id>76c31699-9232-451d-852e-40fff95fc469</item_service_id>
<item_type_id>c3824c10-3487-4f40-a7c9-ff8269d82ce5</item_type_id>
<purchase_price>1</purchase_price>
<root_code>sample string 9</root_code>
<sale_price>1</sale_price>
<size_id>b025d873-aa0c-4440-af01-378508bc749c</size_id>
<supplier_code>sample string 6</supplier_code>
<supplier_description>sample string 7</supplier_description>
<unit>sample string 8</unit>
<weight>1</weight>
<descriptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</descriptions>
</item>