Get Started
Document V2
Payment V2
Customer V2
Vendor V2
Product V2
Subscriptions V2
Utility V2
Product V2
Update an Item
PUT
/
v2
/
product
curl --request PUT \
--url https://app.getswipe.in/api/partner/v2/product \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--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",
"cess_rate": 0,
"cess_amount": 0,
"barcode": "2273546838467",
"category": "Electronics",
"custom_columns": [
{
"label": "Custom Label",
"value": "Custom Value"
}
],
"alternative_units": [
{
"alternative_unit": "g",
"conversion_rate": 1000
}
],
"preferences": {
"not_for_sale": false,
"low_stock_alert": 0,
"show_online": false,
"discount_percent": 10
}
}'
{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
200
application/json
Success
The response is of type object
.
curl --request PUT \
--url https://app.getswipe.in/api/partner/v2/product \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--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",
"cess_rate": 0,
"cess_amount": 0,
"barcode": "2273546838467",
"category": "Electronics",
"custom_columns": [
{
"label": "Custom Label",
"value": "Custom Value"
}
],
"alternative_units": [
{
"alternative_unit": "g",
"conversion_rate": 1000
}
],
"preferences": {
"not_for_sale": false,
"low_stock_alert": 0,
"show_online": false,
"discount_percent": 10
}
}'
{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}
Assistant
Responses are generated using AI and may contain mistakes.