Get Started
Document V2
Payment V2
Customer V2
Vendor V2
Product V2
Subscriptions V2
Utility V2
Vendor V2
Add a vendor
POST
/
v2
/
vendor
curl --request POST \
--url https://app.getswipe.in/api/partner/v2/vendor \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"vendor_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": {
"addr_id": -1,
"addr_id_v2": "addr1",
"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",
"tags": [
"<string>"
],
"custom_fields": [
{
"label": "Custom Field 1",
"value": "Value 1"
}
]
}'
{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}
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/v2/vendor \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"vendor_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": {
"addr_id": -1,
"addr_id_v2": "addr1",
"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",
"tags": [
"<string>"
],
"custom_fields": [
{
"label": "Custom Field 1",
"value": "Value 1"
}
]
}'
{
"success": true,
"message": "",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}
Assistant
Responses are generated using AI and may contain mistakes.