Update Existing Product Information

Prev Next

Update API provides a service to update the existing products in your product catalog. You can send any of the field requests to update your product catalogs directly.

If the update requested item_id does not exist on the Product Catalog, the update will not be saved.

Endpoint and Headers

POST https://catalog.api.useinsider.com/v2/update

Visit our Postman collection to test this request.

Headers

HeadersSample ValueDescription
X-PARTNER-NAMEmy-parter-nameThis is your partner name. Navigate to InOne > Inone Settings > Account Settings to copy your partner name. The partner name should be lowercase.
X-REQUEST-TOKEN1a2b3c4d5e6fThis key is required to authorize your request. Refer to API Authentication Tokens to generate your Catalog API token.

Query Parameters

As stated, the following product fields should be sent as parameters in the object, along with their field name and data type. If any of the required fields are not sent through the Catalog API, the respective product is not updated or inserted. At least one update field should be sent, except for the required fields.

If any undefined attribute is sent through the Catalog API, the respective product(s) will be updated without the undefined attribute(s).
Field NameDescriptionData TypeRequired
item_idUnique product IDStringYes
localeLanguage of the websiteStringYes
nameName of the productStringNo
urlURL address of the productStringNo
image_urlURL address of the product imageStringNo
categoryCategory tree of the productArray (of string)No
descriptionProduct descriptionStringNo
priceUnit price of the product. Object key is currency (string), and the value will be in float type.Object {String:Float}No
original_priceOriginal price of the product without any discount. Object key is currency (string), and the value will be in float type.Object {String:Float}No
in_stockThe stock status of the productIntegerNo
variantsOther variants of the given product IDArray (of string)No
brandBrand information of the productStringNo
colorColor information of the productStringNo
sizeSize information of the productStringNo
groupcodeInformation for group product variants.StringNo
product_attributesThe object of the custom product attributesObject {key:value}No

Sample Request 1

The sample below displays a request to update an existing product in your Product Catalog using the Update API.

You can send one or more product objects in JSON format (batched in a comma-separated list). Any field you provide in the request will be updated in the product catalog.

[{
        "item_id": "2159967",
        "locale": "en_US",      
        "in_stock": 1,    
        "price": {            
              "USD": 40.9        
          },              
        "original_price": {            
              "USD": 49.9        
          } 
}]

Sample Response 1

Catalog API returns responses with a status code 200 for successful requests. Successful responses display the number of valid products to be updated and the complete information about the failed products.

{
    "success": true,
    "message": {
        "invalidRatio": 0,
        "valid": {
            "count": 1
        },
        "invalid": {
            "count": 0,
            "details": []
        },
        "warnings": {
            "count": 0,
            "details": []
        }
    }
}

Sample Request 2

The sample below displays a request to update an existing product in your product catalog.

The Update API can return successful responses with warnings in cases where optional attributes are incorrectly entered. In such cases:

  • The product(s) in the request are still being processed and updated.
  • Attributes that triggered the warnings are ignored and not updated in your product catalog.
 [{
    "item_id": "Item-123",
    "locale": "en_US",
    "in_stock": 1,
    "price": {
        "USD": 35.5
    },
    "original_price": {
        "USD": 35.5
    },
    "product_attributes": {
        "stock_code": "01020304"
    }
}]

Sample Response 2

In this example, if the stock_code attribute is not defined as a Product Attribute for you before requesting the Catalog API, responses include a warning message as follows.

{
    "success": true,
    "message": {
        "invalidRatio": 0,
        "valid": {
            "count": 1
        },
        "invalid": {
            "count": 0,
            "details": []
        },
        "warnings": {
            "count": 1,
            "details": [
                {
                    "message": "Product attribute keys are not included in partners attribute.(stock_code)is not included in partner attribute map.",
                    "count": 1,
                    "document_ids": [
                        "Item-123:en_US"
                    ]
                }
            ]
        }
    }
}

400 Invalid Data Exception; Couldn't Parse JSON

{
    "status": false,
    "message": "Request data is not in valid JSON format."
}

400 Maximum Allowed Record Count

{
    "status": false,
    "message": "Maximum allowed request size is exceeded."
}

400 Maximum Allowed Request Size

{
    "status": false,
    "message": "Maximum allowed request size is exceeded."
}

401 Partner Cannot Be Validated

{
    "status": false,
    "message": "Partner does not have necessary integration settings for Catalog API."
}

401 Wrong Token Usage

{
    "status": false,
    "message": "Partner token authentication failed."
}

500 Internal Server Error

{
    "status": false,
    "message": "Internal server error."
}

Limitations

  • This API allows only existing data to be sent. If a non-existent product is sent, it will not be updated.
  • For all the other limitations, refer to Catalog API Limitations.