PUT /v1/external/inventory/{product_id}/update

This API is used to update your product inventory details.

First, you need to pass the product_id of the product in the endpoint URL. You can then set the quantity and action you want to perform on the existing inventory of the specified product.

Note:

Path:

EXAMPLE
https://apiv2.shiprocket.in/v1/external/inventory/17454637/update

Parameters:

PARAMSREQUIREDDATA TYPEDESCRIPTIONEXAMPLE
quantityYESintegerThe quantity of the product you want.2
actionYESintegerThe action you want to perform. Value: - add : Adds the specific quantity to the product inventory. - replace : Replaces the existing quantity with the specified number. - remove : Removes the specific number from the product inventory.add

Servers

Path parameters

Name Type Required Description
product_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
action String No
quantity String No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.