Product V2
Get Item Details
Get Started
Document V2
Payment V2
Customer V2
Vendor V2
Product V2
Subscriptions V2
Utility V2
Product V2
Get Item Details
GET
/
v2
/
product
/
{item_id}
curl --request GET \
--url https://app.getswipe.in/api/partner/v2/product/{item_id} \
--header 'Authorization: <api-key>'
{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"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",
"status": "Active"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Item ID to be fetched
Response
200
application/json
Success
Success flag
Example:
true
Response message
Example:
"Message"
Error Code
Example:
""
Errors
Unique id for each item.
Example:
"ITEM123"
Name of the Product
Example:
"Item Name"
Opening Quantity
Example:
1
Price per item without Tax
Example:
100
Price per item with Tax
Example:
118
Product or Service enum
Available options:
Product
, Service
Example:
"Product"
Tax percentage for each item . Only valid tax rates are accepted
Example:
18
Default Discount Percent
Example:
10
Item Description
Example:
"Item Description"
HSN Code
Example:
"1234"
Item quantity unit. You can find the GST-approved units in the UQC Codes section at: https://einvoice1.gst.gov.in/Others/MasterCodes.
Example:
"kg"
Category
Example:
"Electronics"
Status of the Item
Example:
"Active"
curl --request GET \
--url https://app.getswipe.in/api/partner/v2/product/{item_id} \
--header 'Authorization: <api-key>'
{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"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",
"status": "Active"
}
}