Invoice List API
Invoice APIs
Invoice List API
Retrieve a paginated list of invoices with filters by date, state, vendor, amount, and tags
Invoice List 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
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Number of records to return. Min 1, Max 100, Default 30. |
cursor | string | No | Cursor for pagination. Default 0. |
dateType | string | No | Type of date to filter by. Default issued_date. Possible values: issued_date, due_date, payment_date, date_created, approved_date. |
startDate | string | No | Start date for filtering (ISO 8601 UTC format: YYYY-MM-DDTHH:mm:ssZ). |
endDate | string | No | End date for filtering (ISO 8601 UTC format: YYYY-MM-DDTHH:mm:ssZ). |
state | array | No | Array of invoice states to filter by. Allowed values: DRAFTED, APPROVAL_PENDING, APPROVED, PAID, ARCHIVED. Currently supports exactly one state. |
invoiceNumber | string | No | Invoice number to filter by. |
invoiceDate | string | No | Invoice date to filter by (YYYY-MM-DD format). |
vendorName | string | No | Vendor name to filter by (partial match). |
vendorId | string | No | Vendor ID to filter by. |
userId | string | No | ID of the user associated with the invoice vendor. |
tagId | integer | No | Filter invoices containing this organization tag id. |
amount | number | No | Filter invoices with amount greater than or equal to this value. |
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 invoice list response data |
data.invoices | array | List of invoices |
data.invoices[].id | string | Unique identifier for the invoice |
data.invoices[].vendorId | string | Unique identifier for the vendor on the invoice |
data.invoices[].vendorName | string | Vendor display name (falls back to legal name) |
data.invoices[].invoiceNumber | string | Invoice number as specified on the invoice document |
data.invoices[].sequenceNumber | string | System-generated sequence number with organization prefix |
data.invoices[].description | string | Description or notes about the invoice |
data.invoices[].invoiceDate | string | Date when the invoice was issued (ISO 8601 format) |
data.invoices[].dueDate | string | Due date for invoice payment (ISO 8601 format) |
data.invoices[].dateCreated | string | Date when the invoice was created in the system (ISO 8601 format) |
data.invoices[].amount | number | Total invoice amount |
data.invoices[].currency | string | Currency code (e.g., INR, USD) |
data.invoices[].remarks | string | Additional remarks or notes associated with the invoice |
data.invoices[].state | string | Current state of the invoice. Possible values: DRAFTED, APPROVAL_PENDING, APPROVED, PAID, DECLINED, ARCHIVED. |
data.invoices[].syncState | string | Synchronization state with accounting system. Possible values: SYNCED, NOT_SYNCED, SYNCED_WITH_ERRORS, etc. |
data.invoices[].source | string | Source of invoice creation. Possible values: API, WEB, EMAIL, SLACK, WHATSAPP, APP, etc. |
data.invoices[].selfUrl | string | Shareable URL for viewing the invoice in the web interface |
data.context | object | Pagination metadata |
data.context.count | number | Number of invoices returned in this page |
data.context.hasMore | boolean | Indicates whether there are more invoices to fetch |
data.context.nextCursor | string | Cursor to fetch the next page |
Response Example
Error Responses
Validation Error
HTTP Status:400 Bad Request
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
- Use
cursorandlimittogether to paginate;nextCursorin the response can be used as thecursorvalue for the next call startDateandendDateare interpreted against the column specified bydateType— changedateTypeto filter by due, payment, created, or approval date instead of the issued date- Use the
idfrom the response as the input to the Invoice Details API for full invoice information - The API returns at most 100 invoices per call regardless of the
limitvalue