Vendor Search API
Vendor APIs
Vendor Search API
Search vendors by GSTIN, PAN, or name. Returns up to 20 matching results.
Vendor Search 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
Query Parameters
At least one ofgstin, pan, or name must be provided.
| Parameter | Type | Required | Description |
|---|---|---|---|
gstin | string | No | Exact GSTIN (15 characters) to search for |
pan | string | No | Exact PAN (10 characters) to search for |
name | string | No | Partial or full vendor name to search for (case-insensitive) |
Code Examples
Success Response
HTTP Status:200 OK
Returns up to 20 vendors matching the search criteria.
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the search results |
data.vendors | array | List of matching vendors |
data.vendors[].vendorId | string | Unique slug identifier for the vendor (use this as vendorId in PO APIs) |
data.vendors[].name | string | Vendor display name |
data.vendors[].gstin | string | Vendor GSTIN (null if not set) |
data.vendors[].pan | string | Vendor PAN (null if not set) |
Response Example
Empty Results
If no vendors match the search criteria, an empty array is returned:Error Responses
Missing Search Parameters
HTTP Status:400 Bad Request
Invalid GSTIN Format
HTTP Status:400 Bad Request
Invalid PAN Format
HTTP Status:400 Bad Request
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Internal Error
HTTP Status:500 Internal Server Error
Best Practices
- Provide at least one of
gstin,pan, orname— the API returns a400if none are supplied gstinandpanrequire exact matches (15 and 10 characters respectively)namesupports partial matching — searchingABCwill matchABC Suppliers,ABC Trading Co., etc.- The
vendorIdin the response is the slug to use when creating or updating purchase orders via the PO Creation API or PO Update API - Results are capped at 20 — use more specific search terms if needed