Product V2
Get item details
Changed onReturns one item's catalog details by your item_id.
get/v2/product/{item_id}
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/product/{item_id}
- AuthHTTP bearer
Path parameters
item_idstring required
Item ID to be fetched
Response
Success
Example response
{
"success": true,
"message": "Message",
"data": {
"id": "ITEM123",
"name": "Item Name",
"quantity": 1,
"unit_price": 100,
"tax_rate": 18,
"price_with_tax": 118,
"purchase_price_with_tax": 118,
"description": "Item Description",
"hsn_code": "1234",
"item_type": "Product",
"unit": "kg",
"barcode": "2273546838467",
"category": "Electronics",
"alternative_units": [
{
"alternative_unit": "g",
"conversion_rate": 1000
}
],
"custom_columns": [
{
"label": "Custom Label",
"value": "Custom Value"
}
],
"preferences": {
"discount_percent": 10
},
"visibility": 1
}
}Changes
- breaking
the
/response's property type changed fromobjectto no type for status - info
api operation id
v2_get_productremoved and replaced withget_product - info
added the optional property
/to the response with the status
- breaking