cURL
curl --request GET \ --url https://app.getswipe.in/api/partner/v2/product/list \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "", "error_code": "", "errors": {}, "data": { "items": [ { "id": "ITEM123", "name": "Item Name", "quantity": 1, "unit_price": 100, "tax_rate": 18, "price_with_tax": 118, "discount_percent": 10, "description": "Item Description", "hsn_code": "1234", "item_type": "Product", "unit": "kg", "category": "Electronics", "swipe_id": "1" } ], "total_records": 10 } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Number of records to fetch, default : all items will be sent in response
Page number
Item List fetched successfully
The response is of type object.
object