POST Customers/FavoriteProducts
FavoriteProducts where a Product is bound as a principal or child
Request Information
URI Parameters
None.
Body Parameters
CustomerRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | string |
Required String length: inclusive between 0 and 128 |
|
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": "sample string 1",
"Lang": "sample string 2",
"StoreID": 3
}
application/xml, text/xml
Sample:
<CustomerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Customer"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 2</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">3</StoreID> <ID>sample string 1</ID> </CustomerRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of FavoriteProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| CustomerID | string |
None. |
|
| ProductID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ID": 1,
"CustomerID": "sample string 2",
"ProductID": 3
},
{
"ID": 1,
"CustomerID": "sample string 2",
"ProductID": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfFavoriteProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.View.Customer">
<FavoriteProduct>
<CustomerID>sample string 2</CustomerID>
<ID>1</ID>
<ProductID>3</ProductID>
</FavoriteProduct>
<FavoriteProduct>
<CustomerID>sample string 2</CustomerID>
<ID>1</ID>
<ProductID>3</ProductID>
</FavoriteProduct>
</ArrayOfFavoriteProduct>