Vendor Creation API
Vendor APIs
Vendor Creation API
Create new vendors in your organization with comprehensive details
Vendor Creation API
Documentation Index
Fetch the complete documentation index at: https://docs.pazy.io/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
All requests require an API key in the request headers. Headers:Request
Content-Type:application/json
Body Parameters
| 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) |
Address Object
If you provide a valid and verifiedgstNumber, 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 Values
Thestate 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 |
Payment Terms Values
Payment terms defaults to organization’s default if not provided. ThepaymentTerms field accepts the following values:
due_eomdue_on_receiptnet_7net_15net_30net_45net_60net_90net_120net_150net_180none
Code Examples
Success Response
HTTP Status:200 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 |
VendorStatus Values
- ACTIVE: The vendor is created and is in active state
- APPROVAL_PENDING: The vendor is yet to be approved by the organization’s vendor admins
Response Example
Error Responses
Missing Required Fields
HTTP Status:400 Bad Request
Invalid Email Format
HTTP Status:400 Bad Request
Invalid Locality
HTTP Status:400 Bad Request
Invalid Payment Terms
HTTP Status:400 Bad Request
Address Validation Errors
HTTP Status:400 Bad Request
400 Bad Request
400 Bad Request
Duplicate Vendor Errors
HTTP Status:400 Bad Request
Duplicate Phone Number:
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Vendor Creation Errors
HTTP Status:400 Bad Request or 500 Internal Server Error
Best Practices
Vendor Creation
- Only
nameis required; all other fields are optional - Provide complete address information if you include the
addressobject (addressLine1, state, and zipCode are mandatory within the address) - Use appropriate
localityvalues (DOMESTIC for vendors within your country, INTERNATIONAL for foreign vendors) - Include GST and PAN numbers for Indian domestic vendors for tax compliance
- Ensure vendor contact information (email, phone) is unique to avoid duplicate errors
- Validate payment terms against your organization’s configured options