Get customer details
curl --request GET \
--url https://app.getswipe.in/api/partner/v2/customer/{customer_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getswipe.in/api/partner/v2/customer/{customer_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getswipe.in/api/partner/v2/customer/{customer_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": [
{
"customer_id": "123",
"name": "TATA RATAN",
"phone": 1234567890,
"email": "reddi@reddi.reddi",
"cc_emails": "a@example.com,b@example.com",
"discount": 10,
"gstin": "27AARCS7202C1ZD",
"company_name": "GSTN",
"opening_balance": "1245",
"credit_limit": 200,
"billing_address": [
{
"state": "State Name",
"country": "India",
"addr_id": 1,
"addr_id_v2": "addr1",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": ""
}
],
"shipping_address": [
{
"state": "State Name",
"country": "India",
"addr_id": 1,
"addr_id_v2": "addr1",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": ""
}
],
"opening_balance_type": 1,
"dial_code": "91",
"profile_image": "",
"pan": "ABCD1234F",
"notes": "Testing api",
"tags": [
"<string>"
],
"custom_fields": [
{
"label": "Custom Field 1",
"value": "Value 1"
}
],
"visibility": 1
}
]
}{
"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!"
}
}Customers
Get customer details
Returns one customer’s details by your customer_id.
GET
/
v2
/
customer
/
{customer_id}
Get customer details
curl --request GET \
--url https://app.getswipe.in/api/partner/v2/customer/{customer_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getswipe.in/api/partner/v2/customer/{customer_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.getswipe.in/api/partner/v2/customer/{customer_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": [
{
"customer_id": "123",
"name": "TATA RATAN",
"phone": 1234567890,
"email": "reddi@reddi.reddi",
"cc_emails": "a@example.com,b@example.com",
"discount": 10,
"gstin": "27AARCS7202C1ZD",
"company_name": "GSTN",
"opening_balance": "1245",
"credit_limit": 200,
"billing_address": [
{
"state": "State Name",
"country": "India",
"addr_id": 1,
"addr_id_v2": "addr1",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": ""
}
],
"shipping_address": [
{
"state": "State Name",
"country": "India",
"addr_id": 1,
"addr_id_v2": "addr1",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": ""
}
],
"opening_balance_type": 1,
"dial_code": "91",
"profile_image": "",
"pan": "ABCD1234F",
"notes": "Testing api",
"tags": [
"<string>"
],
"custom_fields": [
{
"label": "Custom Field 1",
"value": "Value 1"
}
],
"visibility": 1
}
]
}{
"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!"
}
}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 customer ID to be fetched

