PUT product/price
Request Information
URI Parameters
None.
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": "7c04b51e-4eeb-415d-8e1e-ad6a7ef01dac",
"masterId": "7cf9f2f4-f413-4a05-9ec5-0aa4f43733eb",
"branchId": "d0fd204b-2b3f-40a1-9d5c-309ce339f3ef",
"branchName": "sample string 1",
"code": "sample string 2",
"name": "sample string 3",
"imageBase64": "sample string 4",
"imageId": "47cbf0ff-55d8-4699-a664-3eae5c5f1492",
"imageUrl": "sample string 5",
"subTitle": "sample string 6",
"type": 7,
"allBranch": true,
"groupId": "024f1e14-590e-48ac-bd61-579bbec9102d",
"groupName": "sample string 9",
"price": 10.1,
"order": 11,
"note": "sample string 12",
"prices": [
{
"id": "c826928d-ea27-4d3d-973c-2f3a602bd405",
"productId": "85d79265-0fb0-447e-85a7-7a571b02fa4d",
"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": "c826928d-ea27-4d3d-973c-2f3a602bd405",
"productId": "85d79265-0fb0-447e-85a7-7a571b02fa4d",
"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>d0fd204b-2b3f-40a1-9d5c-309ce339f3ef</branchId>
<branchName>sample string 1</branchName>
<code>sample string 2</code>
<groupId>024f1e14-590e-48ac-bd61-579bbec9102d</groupId>
<groupName>sample string 9</groupName>
<id>7c04b51e-4eeb-415d-8e1e-ad6a7ef01dac</id>
<imageBase64>sample string 4</imageBase64>
<imageId>47cbf0ff-55d8-4699-a664-3eae5c5f1492</imageId>
<imageUrl>sample string 5</imageUrl>
<masterId>7cf9f2f4-f413-4a05-9ec5-0aa4f43733eb</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>c826928d-ea27-4d3d-973c-2f3a602bd405</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>85d79265-0fb0-447e-85a7-7a571b02fa4d</productId>
<type>3</type>
</ProductPrice>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>c826928d-ea27-4d3d-973c-2f3a602bd405</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>85d79265-0fb0-447e-85a7-7a571b02fa4d</productId>
<type>3</type>
</ProductPrice>
</prices>
<subTitle>sample string 6</subTitle>
<type>7</type>
</Product>