GET product?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Product| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| masterId | globally unique identifier |
None. |
|
| branchId | globally unique identifier |
None. |
|
| branchName | string |
None. |
|
| code | string |
None. |
|
| name | string |
None. |
|
| imageBase64 | string |
None. |
|
| imageId | globally unique identifier |
None. |
|
| imageUrl | string |
None. |
|
| subTitle | string |
None. |
|
| type | integer |
None. |
|
| allBranch | boolean |
None. |
|
| groupId | globally unique identifier |
None. |
|
| groupName | string |
None. |
|
| price | decimal number |
None. |
|
| order | integer |
None. |
|
| note | string |
None. |
|
| prices | Collection of ProductPrice |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "4a561d6e-0ab4-4cb7-ae93-79acb8ff3d9c",
"masterId": "ead5b20b-e20b-42fe-b31e-c5d8265f8a1b",
"branchId": "ff84166b-64c3-4d42-b8b8-39b7b1a7a6bd",
"branchName": "sample string 1",
"code": "sample string 2",
"name": "sample string 3",
"imageBase64": "sample string 4",
"imageId": "122e91cb-d1ee-4273-9093-ddcdd2ea7f07",
"imageUrl": "sample string 5",
"subTitle": "sample string 6",
"type": 7,
"allBranch": true,
"groupId": "8ddf62c0-dd30-4d98-ad37-a7f3bc9ff278",
"groupName": "sample string 9",
"price": 10.1,
"order": 11,
"note": "sample string 12",
"prices": [
{
"id": "db3e43c3-9243-4d8d-99dc-fe67a7595b88",
"productId": "72fabfea-1d46-468f-a7b7-56c56ef75ccd",
"isStudent": true,
"name": "sample string 2",
"type": 3,
"month": 4,
"day": 5,
"price": 6.1,
"limitPrice": 7.1,
"note": "sample string 8",
"appVisible": true
},
{
"id": "db3e43c3-9243-4d8d-99dc-fe67a7595b88",
"productId": "72fabfea-1d46-468f-a7b7-56c56ef75ccd",
"isStudent": true,
"name": "sample string 2",
"type": 3,
"month": 4,
"day": 5,
"price": 6.1,
"limitPrice": 7.1,
"note": "sample string 8",
"appVisible": true
}
]
}
application/xml, text/xml
Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Careby.Api.Models">
<allBranch>true</allBranch>
<branchId>ff84166b-64c3-4d42-b8b8-39b7b1a7a6bd</branchId>
<branchName>sample string 1</branchName>
<code>sample string 2</code>
<groupId>8ddf62c0-dd30-4d98-ad37-a7f3bc9ff278</groupId>
<groupName>sample string 9</groupName>
<id>4a561d6e-0ab4-4cb7-ae93-79acb8ff3d9c</id>
<imageBase64>sample string 4</imageBase64>
<imageId>122e91cb-d1ee-4273-9093-ddcdd2ea7f07</imageId>
<imageUrl>sample string 5</imageUrl>
<masterId>ead5b20b-e20b-42fe-b31e-c5d8265f8a1b</masterId>
<name>sample string 3</name>
<note>sample string 12</note>
<order>11</order>
<price>10.1</price>
<prices>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>db3e43c3-9243-4d8d-99dc-fe67a7595b88</id>
<isStudent>true</isStudent>
<limitPrice>7.1</limitPrice>
<month>4</month>
<name>sample string 2</name>
<note>sample string 8</note>
<price>6.1</price>
<productId>72fabfea-1d46-468f-a7b7-56c56ef75ccd</productId>
<type>3</type>
</ProductPrice>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>db3e43c3-9243-4d8d-99dc-fe67a7595b88</id>
<isStudent>true</isStudent>
<limitPrice>7.1</limitPrice>
<month>4</month>
<name>sample string 2</name>
<note>sample string 8</note>
<price>6.1</price>
<productId>72fabfea-1d46-468f-a7b7-56c56ef75ccd</productId>
<type>3</type>
</ProductPrice>
</prices>
<subTitle>sample string 6</subTitle>
<type>7</type>
</Product>