API to update the inventory to Magento without manging stock

Here we’re having a REST API which is used to update the inventory from any external Source of integration
Here we have considered NetSuite


API: https://example.com/rest/default/V1/inventory/stocks/{stockId}

body

{

  • “stock”: {
    • “stock_id”: 0,
    • “name”: “string”,
    • “extension_attributes”: {}
    }

}

Response Example





Leave a comment

Your email address will not be published. Required fields are marked *