Update items mapping
curl --request POST \
--url https://app.getswipe.in/api/partner/v1/product/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_mapping": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
]
}
'import requests
url = "https://app.getswipe.in/api/partner/v1/product/list"
payload = { "item_mapping": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({item_mapping: [{item_id: '<string>', swipe_id: 1, force_update: true}]})
};
fetch('https://app.getswipe.in/api/partner/v1/product/list', 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"
}{
"success": false,
"item_mapping": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"duplicate_item_ids": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"duplicate_swipe_ids": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"not_found_swipe_ids": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"message": "Item ID already mapped !"
}{
"success": false,
"error_code": "INVALID_PRODUCT_ID",
"message": "Error Message",
"errors": "List of errors"
}Product
Update items mapping
v1 is deprecated — use the v2 endpoint instead. Re-links your item IDs to existing Swipe records in bulk. Use this after changing IDs in your own system, so future calls don’t create duplicate items.
POST
/
v1
/
product
/
list
Update items mapping
curl --request POST \
--url https://app.getswipe.in/api/partner/v1/product/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"item_mapping": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
]
}
'import requests
url = "https://app.getswipe.in/api/partner/v1/product/list"
payload = { "item_mapping": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({item_mapping: [{item_id: '<string>', swipe_id: 1, force_update: true}]})
};
fetch('https://app.getswipe.in/api/partner/v1/product/list', 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"
}{
"success": false,
"item_mapping": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"duplicate_item_ids": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"duplicate_swipe_ids": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"not_found_swipe_ids": [
{
"item_id": "<string>",
"swipe_id": 1,
"force_update": true
}
],
"message": "Item ID already mapped !"
}{
"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.
Body
application/json
Show child attributes
Show child attributes

