POST Customers/AddFavoriteProduct

Adds favoriteProduct to a Customer

Request Information

URI Parameters

None.

Body Parameters

FavoriteProductBinding
NameDescriptionTypeAdditional information
CustomerID

string

Required

String length: inclusive between 0 and 128

ProductID

integer

None.

Lang

string

None.

StoreID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerID": "sample string 1",
  "ProductID": 2,
  "Lang": "sample string 3",
  "StoreID": 4
}

application/xml, text/xml

Sample:
<FavoriteProductBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Customer">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">sample string 3</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Common.Base">4</StoreID>
  <CustomerID>sample string 1</CustomerID>
  <ProductID>2</ProductID>
</FavoriteProductBinding>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>