GET
/
v2
/
product
/
list
curl --request GET \
  --url https://app.getswipe.in/api/partner/v2/product/list \
  --header 'Authorization: <api-key>'
{
  "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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

num_records
integer

Number of records to fetch, default : all items will be sent in response

page
integer
default:1

Page number

Response

200
application/json
Item List fetched successfully
success
boolean

Success flag

Example:

true

message
string

Response message

Example:

""

error_code
string

Error Code

Example:

""

errors
object

Errors

data
object