Vendor Invite Creation API
Vendor APIs
Vendor Invite Creation API
Create vendor invitations to onboard new vendors to your organization
Vendor Invite 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 | Yes | 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 |
sendEmail | boolean | No | Whether to send an email invitation to the vendor. Defaults to false if not provided |
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 vendor invite creation response data |
data.inviteLink | string | Unique invitation link that can be shared with the vendor to complete their onboarding. The vendor can use this link to access the invitation form |
Response Example
If
sendEmail is set to true, the invitation email will be sent automatically to the vendor’s email address. Otherwise, you can share the inviteLink manually.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
Duplicate Vendor Errors
HTTP Status:400 Bad Request
Duplicate Phone Number:
Invalid Phone Number
HTTP Status:400 Bad Request
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 Invitations
- Use
sendEmail: trueif you want automatic email delivery - If
sendEmail: false, share theinviteLinkmanually with the vendor - Ensure vendor contact information (email, phone) is accurate to avoid duplicate errors
- Check for duplicate errors before attempting to create a vendor invite