POST api/V3/Distributor/DistributorToProductMapping
Api for Create / Update Distributor Product Mappings
Request Information
URI Parameters
None.
Body Parameters
Distributors Product Mappings to be created/updated
Collection of V3.DistributorToProductMappings| Name | Description | Type | Additional information |
|---|---|---|---|
| DistributorErpId |
Erp Id of Distributor |
string |
None. |
| ProductErpId |
Erp Id of Product |
string |
None. |
| Action |
Action -> Attach / Detach |
string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"DistributorErpId": "sample string 1",
"ProductErpId": "sample string 2",
"Action": "sample string 3"
},
{
"DistributorErpId": "sample string 1",
"ProductErpId": "sample string 2",
"Action": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfDistributorToProductMappings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
<DistributorToProductMappings>
<Action>sample string 3</Action>
<DistributorErpId>sample string 1</DistributorErpId>
<ProductErpId>sample string 2</ProductErpId>
</DistributorToProductMappings>
<DistributorToProductMappings>
<Action>sample string 3</Action>
<DistributorErpId>sample string 1</DistributorErpId>
<ProductErpId>sample string 2</ProductErpId>
</DistributorToProductMappings>
</ArrayOfDistributorToProductMappings>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.