Invoice Supporting Document Upload API
Invoice APIs
Invoice Supporting Document Upload API
Upload one or more supporting documents against an existing invoice
Invoice Supporting 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 |
|---|---|---|---|
invoiceId | string | Yes | Unique identifier of the invoice 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 invoice |
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
Invoice 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 supporting documents - Use the Invoice Supporting Documents API to list the documents already attached to an invoice
- Each file is capped at 50 MB; split larger files before uploading
- Supporting documents are stored separately from the original invoice file uploaded via the Invoice Creation API