Delete an item
curl --request DELETE \
--url https://app.getswipe.in/api/partner/v1/product/{item_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getswipe.in/api/partner/v1/product/{item_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getswipe.in/api/partner/v1/product/{item_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Product added successfully"
}{
"success": false,
"error_code": "INVALID_PRODUCT_ID",
"message": "Error Message",
"errors": "List of errors"
}{
"success": false,
"error_code": "INVALID_PRODUCT_ID",
"message": "Error Message",
"errors": "List of errors"
}Product
Delete an item
v1 is deprecated — use the v2 endpoint instead. Deletes an item by your item_id. Deleted items move to the Deleted tab in the dashboard.
DELETE
/
v1
/
product
/
{item_id}
Delete an item
curl --request DELETE \
--url https://app.getswipe.in/api/partner/v1/product/{item_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getswipe.in/api/partner/v1/product/{item_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getswipe.in/api/partner/v1/product/{item_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Product added successfully"
}{
"success": false,
"error_code": "INVALID_PRODUCT_ID",
"message": "Error Message",
"errors": "List of errors"
}{
"success": false,
"error_code": "INVALID_PRODUCT_ID",
"message": "Error Message",
"errors": "List of errors"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is an API key from the API Integration section of your dashboard. Keys are scoped to the company they are generated in — for testing, add a separate test company and generate the key there, so requests never touch your real books.
Path Parameters
The item ID to be deleted

