Create new vendors in your organization with comprehensive details
application/json
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Vendor name (1-255 characters) |
email | string | No | Vendor email address (must be valid email format) |
phone | string | No | Vendor phone number (must include country code, e.g., +919876543210) |
locality | string | No | Vendor locality type. Valid values: DOMESTIC, INTERNATIONAL. Defaults to DOMESTIC if not provided |
paymentTerms | string | No | Payment terms for the vendor. See accepted values below |
gstNumber | string | No | GST number for the vendor |
panNumber | string | No | PAN number for the vendor |
address | object | No | Vendor address details (see Address Object below) |
gstNumber, the address will be automatically extracted from GST data.
However, if you also provide an address object, the user-provided address will always take precedence over the GST-derived one.
When providing an address, the following fields are available:
| Parameter | Type | Required | Description |
|---|---|---|---|
addressLine1 | string | Yes | Primary address line |
addressLine2 | string | No | Secondary address line |
city | string | No | City name |
state | string | Yes | State Name (below is the list of valid values) |
zipCode | string | Yes | ZIP or postal code |
country | string | No | Country name |
address object is provided
state field should use uppercase underscore-separated codes (e.g., UTTAR_PRADESH, MAHARASHTRA, etc.).
Below is the complete list of supported State and Union Territory values:
| State / UT Name | Value |
|---|---|
| Andhra Pradesh | ANDHRA_PRADESH |
| Arunachal Pradesh | ARUNACHAL_PRADESH |
| Assam | ASSAM |
| Bihar | BIHAR |
| Chhattisgarh | CHHATTISGARTH |
| Goa | GOA |
| Gujarat | GUJARAT |
| Haryana | HARYANA |
| Himachal Pradesh | HIMACHAL_PRADESH |
| Jharkhand | JHARKHAND |
| Karnataka | KARNATAKA |
| Kerala | KERALA |
| Madhya Pradesh | MADHYA_PRADESH |
| Maharashtra | MAHARASHTRA |
| Manipur | MANIPUR |
| Meghalaya | MEGHALAYA |
| Mizoram | MIZORAM |
| Nagaland | NAGALAND |
| Odisha | ODISHA |
| Punjab | PUNJAB |
| Rajasthan | RAJASTHAN |
| Sikkim | SIKKIM |
| Tamil Nadu | TAMIL_NADU |
| Telangana | TELANGANA |
| Tripura | TRIPURA |
| Uttar Pradesh | UTTAR_PRADESH |
| Uttarakhand | UTTARAKHAND |
| West Bengal | WEST_BENGAL |
| Andaman and Nicobar Islands | ANDAMAN_AND_NICOBAR_ISLANDS |
| Chandigarh | CHANDIGARH |
| Dadra and Nagar Haveli and Daman and Diu | DADRA_AND_NAGAR_HAVELI_AND_DAMAN_AND_DIU |
| Lakshadweep | LAKSHADWEEP |
| Delhi | DELHI |
| Puducherry | PUDUCHERRY |
| Jammu and Kashmir | JAMMU_AND_KASHMIR |
| Ladakh | LADAKH |
paymentTerms field accepts the following values:
due_eomdue_on_receiptnet_7net_15net_30net_45net_60net_90net_120net_150net_180none200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the created vendor details |
data.vendorId | string | Unique vendor ID |
data.vendorState | string | Created Vendor State |
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
400 Bad Request
Duplicate Phone Number:
401 Unauthorized
403 Forbidden
400 Bad Request or 500 Internal Server Error
name is required; all other fields are optionaladdress object (addressLine1, state, and zipCode are mandatory within the address)locality values (DOMESTIC for vendors within your country, INTERNATIONAL for foreign vendors)