POST product
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": "4d913f5d-ca7d-4b80-921e-3eb51346950e",
"masterId": "9f96ee00-6a1d-4a45-a69a-dabd3a4cb956",
"branchId": "2ef98bf4-22ef-4a55-902b-8cc829516fa4",
"branchName": "sample string 1",
"code": "sample string 2",
"name": "sample string 3",
"imageBase64": "sample string 4",
"imageId": "89c85ef3-5c30-4877-af94-49eaa46ee5f7",
"imageUrl": "sample string 5",
"subTitle": "sample string 6",
"type": 7,
"allBranch": true,
"groupId": "234b1d07-580a-4199-bab7-b0d959ef5d02",
"groupName": "sample string 9",
"price": 10.1,
"order": 11,
"note": "sample string 12",
"prices": [
{
"id": "12b1f338-d01c-490a-b623-fe28c002fefa",
"productId": "167a56e9-e1a1-4743-82a2-1af2c4daba25",
"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": "12b1f338-d01c-490a-b623-fe28c002fefa",
"productId": "167a56e9-e1a1-4743-82a2-1af2c4daba25",
"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>2ef98bf4-22ef-4a55-902b-8cc829516fa4</branchId>
<branchName>sample string 1</branchName>
<code>sample string 2</code>
<groupId>234b1d07-580a-4199-bab7-b0d959ef5d02</groupId>
<groupName>sample string 9</groupName>
<id>4d913f5d-ca7d-4b80-921e-3eb51346950e</id>
<imageBase64>sample string 4</imageBase64>
<imageId>89c85ef3-5c30-4877-af94-49eaa46ee5f7</imageId>
<imageUrl>sample string 5</imageUrl>
<masterId>9f96ee00-6a1d-4a45-a69a-dabd3a4cb956</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>12b1f338-d01c-490a-b623-fe28c002fefa</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>167a56e9-e1a1-4743-82a2-1af2c4daba25</productId>
<type>3</type>
</ProductPrice>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>12b1f338-d01c-490a-b623-fe28c002fefa</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>167a56e9-e1a1-4743-82a2-1af2c4daba25</productId>
<type>3</type>
</ProductPrice>
</prices>
<subTitle>sample string 6</subTitle>
<type>7</type>
</Product>