Customer
Add a customer
POST
/
v1
/
customer
curl --request POST \
--url https://app.getswipe.in/api/partner/v1/customer \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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": [
{
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"state": "State Name",
"country": "India"
}
],
"shipping_address": [
{
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"state": "State Name",
"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",
"status": "Active"
}'
{
"success": true,
"message": "Customer added successfully"
}
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
201
application/json
Success
The response is of type object
.
curl --request POST \
--url https://app.getswipe.in/api/partner/v1/customer \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"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": [
{
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"state": "State Name",
"country": "India"
}
],
"shipping_address": [
{
"address_line1": "",
"address_line2": "",
"pincode": "500075",
"city": "",
"state": "State Name",
"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",
"status": "Active"
}'
{
"success": true,
"message": "Customer added successfully"
}
Assistant
Responses are generated using AI and may contain mistakes.