Vendor V2
Add a vendor
Changed onCreates a vendor keyed by your own id. Vendors are the parties on purchase-side documents. They are also created automatically when a document references an unknown vendor party.id.
post/v2/vendor
Request
- Base URLhttps://app.getswipe.in/api/partner
- URLhttps://app.getswipe.in/api/partner/v2/vendor
- AuthHTTP bearer
Request body
Example request
{
"vendor_id": "123",
"name": "TATA RATAN",
"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",
"pincode": "500075",
"state": "State Name",
"country": "India"
},
"opening_balance_type": 1,
"dial_code": "91",
"pan": "ABCD1234F",
"notes": "Testing api",
"cc_emails": "reddi@reddi.reddi,acb.a@bcd.con",
"status": "Active",
"custom_fields": [
{
"label": "Custom Field 1",
"value": "Value 1"
}
],
"visibility": 1
}Response
Success
Example response
{
"success": true,
"data": {
"message": "No data found!"
}
}Changes
- breaking
removed the enum value
KoreaNorthof the request property/ - breaking
removed the enum value
KoreaSouthof the request property/ - info
api operation id
v2_post_vendorremoved and replaced withpost_vendor - info
added the new optional request property
- info
the request property
/became optional - info
the request property
/became optional - info
added the new
LADAKH(NEWLY ADDED)enum value to the request property/ - info
added the new
Republic of Korea (South Korea)enum value to the request property/ - info
removed the pattern
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+(\.[a-zA-Z]{2,5})+$from the request property
- breaking