Stock Update

  • Through this service; You can update the breakdown stock of integrated products.
  • You can update multiple breakdown stocks at once.
  • Breakdown id (variant_id) or barcode (barcode) can be sent as parameters and the system is searched accordingly.
  • POST https://marketplace-stg.modanisa.com/api/marketplace/updateProductStock
    Parameter Explanation Data Type Compulsory
    variant_id - barcode Breakdown ID or barcode of the company string Yes
    quantity Breakdown stocks integer Yes

    Request:
    {
        "Products": [
            {
                "variant_id": "123153",
                "quantity": 12
            },
            {
                "barcode": "643241233",
                "quantity": 5
            }
        ]
    }
    
    

    Success Response:
    {
        "success": true,
        "message": "success",
        "status_code": 200,
        "batchId": "211021-71QUVC0XJTMFVY9VFXMRIUC3UKO240FR6FYQJDI4OS4"
    }
    
    

    If your request returns to you of type "Success", you will see the "BatchId" parameter in the response data. You can track the status of the product you request by querying this parameter from Batch service.


    Error Response:
    {
        "success": false,
        "data": "",
        "message": "Invalid Data",
        "status_code": 400
    }