Open abbasali-io opened 9 months ago
it is agreed, that the changes will be in an array, and we ll have to act upon all the objects in the array as follows
[ { "tdp_auth_key": "[the key]", "wid": "57", // warehouse portal id "pid": "62", // product portal id - the one that is replenished "product_name": "Dates for Orphans", "warehouse_name": "Newport", "updated_stock": 30 // the stock that is added to the current inventory } ]
and instead of incremental_stock, the payload will contain the updates_stock, AFTER the stock adjustment.
@mohsinnaeem21 bhai, we ll update the API and will share with you for testing.
@abbasali-io Bhai I have placed the code on the live server. Please conduct a test on your end and ensure that the data you receive meets your requirements. If you encounter any issues, kindly inform me. Thank you.
Bhai you need to test the API provided by us and let us know how the test go. Thanks
If the stock is assigned by the admins to a certain warehouse, the App needs to know the following details.
{ "tdp_auth_key": "[the key]", "wid": "57", // warehouse portal id "pid": "62", // product portal id - the one that is replenished "product_name": "Dates for Orphans", "warehouse_name": "Newport", "incremental_stock": 30 // the stock that is added to the current inventory }
The endpoint is: https://stockassignedtowarehouse-[*****]-uc.a.run.app // the actual endpoint is in the collection sharedc
API team needs to test the API with the above data and confirm the response