Update customer mapping
curl --request POST \
--url https://app.getswipe.in/api/partner/v2/customer/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_mapping": [
{
"customer_id": "<string>",
"swipe_id": 1,
"force_update": true
}
]
}
'import requests
url = "https://app.getswipe.in/api/partner/v2/customer/list"
payload = { "customer_mapping": [
{
"customer_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({customer_mapping: [{customer_id: '<string>', swipe_id: 1, force_update: true}]})
};
fetch('https://app.getswipe.in/api/partner/v2/customer/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {}
}{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}Customers
Update customer mapping
Re-links your customer IDs to existing Swipe records in bulk. Use this after changing IDs in your own system, so future calls don’t create duplicate customers.
POST
/
v2
/
customer
/
list
Update customer mapping
curl --request POST \
--url https://app.getswipe.in/api/partner/v2/customer/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_mapping": [
{
"customer_id": "<string>",
"swipe_id": 1,
"force_update": true
}
]
}
'import requests
url = "https://app.getswipe.in/api/partner/v2/customer/list"
payload = { "customer_mapping": [
{
"customer_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({customer_mapping: [{customer_id: '<string>', swipe_id: 1, force_update: true}]})
};
fetch('https://app.getswipe.in/api/partner/v2/customer/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {}
}{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}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

