User Tools

Site Tools


udropship:umarketplace:m2:vendor-api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
udropship:umarketplace:m2:vendor-api [2022/04/26 07:11]
wtsergo
udropship:umarketplace:m2:vendor-api [2022/04/26 07:14] (current)
wtsergo [Perform Inventory update]
Line 550: Line 550:
  
 '' ''
-Example:\\ +Example:
-POST  http://magento.loc/index.php/rest/V1/udstock/update/\\ +
-{"items":[{"sku":"24-MB01","vendor_sku":"v2-24-MB01","stock_qty":"11"},{"vendor_sku":"v2-24-MB04","stock_qty":"22"},{"vendor_sku":"not-existing-vendor-sku","stock_qty":"22"},{"sku":"not-existing-sku","vendor_sku":"not-existing-vendor-sku","stock_qty":"22"}]}\\ +
-\\ +
-RESPONSE\\ +
-"Updated 2 items of 4: (Product not found for vendor sku \"not-existing-vendor-sku\", Product not found for sku \"not-existing-sku\")"+
 '' ''
 +<code>
 +POST  http://magento.loc/index.php/rest/V1/udstock/update/
 +{
 +    "items": [
 +        {
 +            "sku": "24-MB01",
 +            "vendor_sku": "v2-24-MB01",
 +            "stock_qty": "11"
 +        },
 +        {
 +            "vendor_sku": "v2-24-MB04",
 +            "stock_qty": "22"
 +        },
 +        {
 +            "vendor_sku": "not-existing-vendor-sku",
 +            "stock_qty": "22"
 +        },
 +        {
 +            "sku": "not-existing-sku",
 +            "vendor_sku": "not-existing-vendor-sku",
 +            "stock_qty": "22"
 +        }
 +    ]
 +}
 +</code>
 +''
 +RESPONSE
 +''
 +<code>
 +"Updated 2 items of 4: (Product not found for vendor sku "not-existing-vendor-sku", Product not found for sku "not-existing-sku")"
 +</code>
  
udropship/umarketplace/m2/vendor-api.1650957118.txt.gz · by wtsergo