Vendor Document Upload API
Vendor APIs
Vendor Document Upload API
Upload one or more documents (PDF, image) against a vendor
Vendor Document Upload 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:multipart/form-data
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
vendorId | string | Yes | Unique identifier of the vendor to attach documents to |
Form Fields
| Field | Type | Required | Description |
|---|---|---|---|
files | file | Yes | The file(s) to upload. Repeat the field name to upload multiple files in a single request. Max file size 50 MB per file. |
Code Examples
Success Response
HTTP Status:200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
insert | boolean | Indicates that the documents were inserted against the vendor |
context | object | Container for upload metadata |
context.fileUploaded | number | Number of files that were successfully uploaded in this request |
Response Example
Error Responses
Missing File
HTTP Status:400 Bad Request
Vendor Not Found
HTTP Status:404 Not Found
Access Denied
HTTP Status:403 Forbidden
Authentication Errors
HTTP Status:401 Unauthorized
Permission Errors
HTTP Status:403 Forbidden
Internal Error
HTTP Status:500 Internal Server Error
Best Practices
- Repeat the
filesfield name to upload multiple documents in a single call — they are saved as separate vendor documents - Use the Vendor Documents API to list the documents already attached to a vendor before deciding what to upload
- Each file is capped at 50 MB; split larger files before uploading