POST 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": "51a9e17a-2d98-41e1-b832-e3f9fa3c844c",
"masterId": "31e14920-c3b9-47e8-be6b-9924d58a5660",
"branchId": "b5c963bc-67f3-4285-9f1f-0bac94fdb6ae",
"branchName": "sample string 1",
"code": "sample string 2",
"name": "sample string 3",
"imageBase64": "sample string 4",
"imageId": "89a89318-b4f3-46ca-9c2a-ddaa16b9cfa4",
"imageUrl": "sample string 5",
"subTitle": "sample string 6",
"type": 7,
"allBranch": true,
"groupId": "38c4335c-b109-4835-b980-0501b8020b9f",
"groupName": "sample string 9",
"price": 10.1,
"order": 11,
"note": "sample string 12",
"prices": [
{
"id": "ad248b4f-b3f5-46ad-922d-e5e04176cc2b",
"productId": "ecbb2da1-c3b1-4edc-9cf8-12902853efbc",
"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": "ad248b4f-b3f5-46ad-922d-e5e04176cc2b",
"productId": "ecbb2da1-c3b1-4edc-9cf8-12902853efbc",
"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>b5c963bc-67f3-4285-9f1f-0bac94fdb6ae</branchId>
<branchName>sample string 1</branchName>
<code>sample string 2</code>
<groupId>38c4335c-b109-4835-b980-0501b8020b9f</groupId>
<groupName>sample string 9</groupName>
<id>51a9e17a-2d98-41e1-b832-e3f9fa3c844c</id>
<imageBase64>sample string 4</imageBase64>
<imageId>89a89318-b4f3-46ca-9c2a-ddaa16b9cfa4</imageId>
<imageUrl>sample string 5</imageUrl>
<masterId>31e14920-c3b9-47e8-be6b-9924d58a5660</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>ad248b4f-b3f5-46ad-922d-e5e04176cc2b</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>ecbb2da1-c3b1-4edc-9cf8-12902853efbc</productId>
<type>3</type>
</ProductPrice>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>ad248b4f-b3f5-46ad-922d-e5e04176cc2b</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>ecbb2da1-c3b1-4edc-9cf8-12902853efbc</productId>
<type>3</type>
</ProductPrice>
</prices>
<subTitle>sample string 6</subTitle>
<type>7</type>
</Product>