POST api/V3/Product/Update
Updates a product. If Variants are null they are ignored. This method requires that the product model must have either Guid or ERPId set. GUID will be used for reference and can't be Updated
Request Information
URI Parameters
None.
Body Parameters
Product to be modified
V3.ProductUpdate| Name | Description | Type | Additional information |
|---|---|---|---|
| Deactivated |
Product is disabled |
boolean |
None. |
| ProductGuid |
Guid of the product |
string |
None. |
| Name |
NAme of the Product of the SKU |
string |
Required String length: inclusive between 0 and 100 |
| VariantName |
Name of the Variant of the SKU |
string |
None. |
| MRP |
Maximum Retail Price of the Product just for indication |
string |
None. |
| Price |
Price to Retailer also kown as PTR |
decimal number |
None. |
| Unit |
Unit of Measurement for the product. e.g. 'box' or 'pcs' |
string |
Required String length: inclusive between 0 and 50 |
| LocalName |
Local Name of the Product |
string |
String length: inclusive between 0 and 100 |
| Image |
Not available in APIs |
string |
None. |
| StandardUnitConversionFactor |
Standard Unit Conversion Factor for the Standard Unit |
decimal number |
None. |
| SuperUnitConversionFactor |
Super Unit Conversion Factor for the Super Unit |
decimal number |
None. |
| DisplayOrder |
Order Position at which the Product is displayed in App |
integer |
None. |
| PackagingType |
Type of Packaging paper/Box/Pouch etc... |
string |
String length: inclusive between 0 and 20 |
| IsPromoted |
True or False indicating if the product is a Promoted Product |
boolean |
None. |
| Description |
Brief Description if needed... |
string |
None. |
| ProductERPId |
SAP or ERP id of the product |
string |
Required String length: inclusive between 1 and 50 |
| Schemes |
Scheme details for the product |
string |
None. |
| PackSize |
Pack Size of the Product |
string |
None. |
| Color |
Color of the Product |
string |
String length: inclusive between 0 and 64 |
| AlternateCategory |
Alternate Category of the Product |
string |
None. |
| IsNewLaunch |
IsNewProduct as True or False |
boolean |
None. |
| MBQ |
Minimum Batch Quantity |
integer |
Range: inclusive between 1 and 2147483647 |
| ExpiryInDays |
Expiry in days of the product |
integer |
None. |
| GSTCategory |
Category for Tax at Sale Point |
string |
None. |
Request Formats
application/json, text/json
{
"Deactivated": true,
"ProductGuid": "sample string 2",
"Name": "sample string 3",
"VariantName": "sample string 4",
"MRP": "sample string 5",
"Price": 6.1,
"Unit": "sample string 7",
"LocalName": "sample string 8",
"Image": "sample string 9",
"StandardUnitConversionFactor": 1.1,
"SuperUnitConversionFactor": 1.1,
"DisplayOrder": 1,
"PackagingType": "sample string 10",
"IsPromoted": true,
"Description": "sample string 11",
"ProductERPId": "sample string 12",
"Schemes": "sample string 13",
"PackSize": "sample string 14",
"Color": "sample string 15",
"AlternateCategory": "sample string 16",
"IsNewLaunch": true,
"MBQ": 1,
"ExpiryInDays": 1,
"GSTCategory": "sample string 17"
}
application/xml, text/xml
<ProductUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models"> <AlternateCategory>sample string 16</AlternateCategory> <Color>sample string 15</Color> <Description>sample string 11</Description> <DisplayOrder>1</DisplayOrder> <ExpiryInDays>1</ExpiryInDays> <GSTCategory>sample string 17</GSTCategory> <Image>sample string 9</Image> <IsNewLaunch>true</IsNewLaunch> <IsPromoted>true</IsPromoted> <LocalName>sample string 8</LocalName> <MBQ>1</MBQ> <MRP>sample string 5</MRP> <Name>sample string 3</Name> <PackSize>sample string 14</PackSize> <PackagingType>sample string 10</PackagingType> <Price>6.1</Price> <ProductERPId>sample string 12</ProductERPId> <Schemes>sample string 13</Schemes> <StandardUnitConversionFactor>1.1</StandardUnitConversionFactor> <SuperUnitConversionFactor>1.1</SuperUnitConversionFactor> <Unit>sample string 7</Unit> <VariantName>sample string 4</VariantName> <Deactivated>true</Deactivated> <ProductGuid>sample string 2</ProductGuid> </ProductUpdate>
Response Information
Resource Description
Response Description with message and GUID or, ErrorMessage as String
ApiResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| ERPId |
ERPID of the Requested insertion/updation |
string |
None. |
| Message |
Error Message for the indicated ERPID |
string |
None. |
| ResponseStatus |
Status of the action requested from Api |
ResponseStatus |
None. |
| GUID |
GUID of the database Entry with respect to the ERP Id Provided |
string |
None. |
Response Formats
application/json, text/json
{
"ERPId": "sample string 1",
"Message": "sample string 2",
"ResponseStatus": "Failure",
"GUID": "sample string 3"
}
application/xml, text/xml
<ApiResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage>