External Inventory API

With this function you can set stock quantity for products available from external warehouse and name of the external warehouse. Settings can be made for multiple products at once, the data must be listed by product. If a product (SKU) is listed more than once in the submitted data, the last correct data in the list will be saved for the product.

For Marketplace use, please go and refer to related help which fields you need to specify

In case of XML:

Url: https://app.webshippy.com/wspyapi/ExternalWarehouseInventory/xml

Request:

<?xml version="1.0" encoding="utf-8"?>
<request>
    <apiKey>api-key-comes-here</apiKey>
    <products>
        <product>
        <sku>szuperhos-polo-piros-xl</sku>
        <externalQuantity>50</externalQuantity>
        <externalWarehouse>Külső raktár</externalWarehouse>
        </product>
    </products>
    <products>
        <product>
        <sku>cicanaci-one-size</sku>
        <externalQuantity>100</externalQuantity>
        <externalWarehouse>Külső raktár</externalWarehouse>
        </product>
    </products>
</request>

Response (example):

<?xml version="1.0" encoding="utf-8"?>
<response>
  <status>success</status>
  <message>
    <elem>2 updates successful.</elem>
  </message>
  <products>
    <elem>
      <sku>szuperhos-polo-piros-xl</sku>
      <message>Update successful.</message>
    </elem>
	<elem>
      <sku>cicanaci-one-size</sku>
      <message>Update successful.</message>
    </elem>
  </products>
</response>

In case of JSON:

Url: https://app.webshippy.com/wspyapi/ExternalWarehouseInventory/json

Request:

{
  "apiKey": "api-key-comes-here",
  "products": [
    {
      "sku": "szuperhos-polo-piros-xl",
      "externalQuantity": "50",
      "externalWarehouse": "Külső raktár"
    },
    {
      "sku": "cicanaci-one-size",
      "externalQuantity": "100",
      "externalWarehouse": "Külső raktár"
    }
  ]
}

Response (example):

{
    "status": "success",
    "message": [
        "2 updates successful."
    ],
    "products": [
        {
            "sku": "szuperhos-polo-piros-xl",
            "message": "Update successful."
        },
        {
            "sku": "cicanaci-one-size",
            "message": "Update successful."
        },
    ]
}

Additional response possibilities:

  • X updates successful.

  • X updates successful. Rest Y records caused warning.

  • No products present

Last updated