post http://staging-apigateway.snapdeal.com/seller-api/listing/edit
API to be used for edit listing.
note
Ensure that following pre-requisite APIs are used befor using this API
- Get Attributes API to know the attributes needed to list the product under the right category
- Pre-listing financials API to know the approximate financial split upfront
- Post upload image to upload the product images needed for listing the product.
Request
ParameterName | DataType | ParameterType | Requirement | Description |
---|---|---|---|---|
categoryId | int | Body | Mandatory | Id of the category (has to be product type) for which attributes are required |
categoryUrl | String | Body | Optional | categoryUrl |
sellerSKU | String | Body | Mandatory | Seller's unique identifier of the product |
brandId | int | Body | Optional | brandId |
attrNameToValueMap | Map<String, String> | Body | Mandatory | Map containing attributes got from the category attributes API as key and their values |
Response
metadata :
FieldName | DataType | Description |
---|---|---|
requestId | String | Unique ID for the request |
clientId | String | PartnerI Id |
responseTime | Long | Response Time |
requestedURI | String | Requested URI |
message | String | Error message |
payload :
FieldName | DataType | Description |
---|---|---|
uploadId | String | uploadId |
errorMessage | String | errorMessage |
attributeErrorMap | Map<String, String> | Map of Attributes and errors related to them.if there is no errors its value is null. |
Note
with above uploadId we can hit the Feed apis to get the status.