Get a customer
curl --request GET \
--url https://app.getswipe.in/api/partner/v1/customer/{customer_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getswipe.in/api/partner/v1/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/v1/customer/{customer_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"customer_details": {
"customer_id": "123",
"name": "TATA RATAN",
"phone": 1234567890,
"email": "reddi@reddi.reddi",
"discount": 10,
"gstin": "27AARCS7202C1ZD",
"company_name": "GSTN",
"opening_balance": "1245",
"credit_limit": 200,
"billing_address": [
{
"state": "State Name",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"country": "India"
}
],
"shipping_address": [
{
"state": "State Name",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"country": "India"
}
],
"opening_balance_type": 1,
"dial_code": "91",
"profile_image": "",
"pan": "ABCD1234F",
"notes": "Testing api",
"cc_emails": "reddi@reddi.reddi,acb.a@bcd.con"
}
}{
"success": false,
"error_code": "INVALID_CUSTOMER_ID",
"message": "Error Message",
"errors": "List of errors"
}{
"success": false,
"error_code": "INVALID_CUSTOMER_ID",
"message": "Error Message",
"errors": "List of errors"
}{
"success": false,
"error_code": "INVALID_CUSTOMER_ID",
"message": "Error Message",
"errors": "List of errors"
}Customer
Get a customer
v1 is deprecated — use the v2 endpoint instead. Returns one customer’s details by your customer_id.
GET
/
v1
/
customer
/
{customer_id}
Get a customer
curl --request GET \
--url https://app.getswipe.in/api/partner/v1/customer/{customer_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.getswipe.in/api/partner/v1/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/v1/customer/{customer_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"customer_details": {
"customer_id": "123",
"name": "TATA RATAN",
"phone": 1234567890,
"email": "reddi@reddi.reddi",
"discount": 10,
"gstin": "27AARCS7202C1ZD",
"company_name": "GSTN",
"opening_balance": "1245",
"credit_limit": 200,
"billing_address": [
{
"state": "State Name",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"country": "India"
}
],
"shipping_address": [
{
"state": "State Name",
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"country": "India"
}
],
"opening_balance_type": 1,
"dial_code": "91",
"profile_image": "",
"pan": "ABCD1234F",
"notes": "Testing api",
"cc_emails": "reddi@reddi.reddi,acb.a@bcd.con"
}
}{
"success": false,
"error_code": "INVALID_CUSTOMER_ID",
"message": "Error Message",
"errors": "List of errors"
}{
"success": false,
"error_code": "INVALID_CUSTOMER_ID",
"message": "Error Message",
"errors": "List of errors"
}{
"success": false,
"error_code": "INVALID_CUSTOMER_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 customer ID to be fetched

