POST product/addlocation

This method will add a location for the product

Request Information

Parameters

NameDescriptionAdditional information
location
1) ProductCode: To get the product
            2) Address1
            3) Address2
            4) Address3
            5) City 
            6) County
            7) Postcode

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 2,
  "Address1": "sample string 3",
  "Address2": "sample string 4",
  "Address3": "sample string 5",
  "City": "sample string 6",
  "County": "sample string 7",
  "Postcode": "sample string 8",
  "CountryId": 1,
  "ProductCode": "sample string 9"
}

application/xml, text/xml

Sample:
<ProductLocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <Address1>sample string 3</Address1>
  <Address2>sample string 4</Address2>
  <Address3>sample string 5</Address3>
  <City>sample string 6</City>
  <CountryId>1</CountryId>
  <County>sample string 7</County>
  <Id>1</Id>
  <Postcode>sample string 8</Postcode>
  <ProductCode>sample string 9</ProductCode>
  <ProductId>2</ProductId>
</ProductLocationModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
1

application/xml, text/xml

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