cURL
curl --request GET \ --url https://app.getswipe.in/api/partner/v2/inventory/warehouses/list \ --header 'Authorization: Bearer <token>'
{ "success": false, "errors": {}, "error_code": "", "message": "", "warehouses": [ { "warehouse_id": 1, "name": "Main Warehouse" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Success
The response is of type object.
object