Vendor Advances API
Vendor APIs
Vendor Advances API
Retrieve advances for a specific vendor by its identifier
Vendor Advances 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
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the Vendor to retrieve |
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 advances response data |
data.advances | array | List of advances entries associated with the vendor |
data.advances[].id | string | Unique identifier for the advance |
data.advances[].dateCreated | string | ISO 8601 timestamp of when the advance was created |
data.advances[].paymentReason | string | Reason for the payment e.g. ADVANCE, PURCHASE_ORDER_ADVANCE |
data.advances[].matchingState | string | Matching status of the advance e.g. MATCHED, UNMATCHED |
data.advances[].currency | string | Currency code for the advance e.g. INR |
data.advances[].paymentRequest | object | Associated payment request |
data.advances[].tax | object | Tax details associated with the advance |
data.advances[].amount | object | Breakdown of advance amounts |
data.advances[].amount.totalAmount | number | Total amount of the advance |
data.advances[].amount.amountSettled | number | Amount that has been settled |
data.advances[].amount.pendingAmount | number | Amount still pending settlement |
data.advances[].syncStatus | string | Sync status with external systems e.g. NOT_SYNCED, SYNCED |
data.advances[].invoices | array | List of invoices linked to this advance |
data.advances[].invoices[].id | string | Unique identifier for the invoice |
data.advances[].invoices[].invoiceNo | string | Human-readable invoice number |
data.advances[].invoices[].amountSettled | number | Amount settled against this invoice |
data.advances[].invoices[].currency | string | Currency code for the invoice |
data.advances[].user | object | Information about the user associated with the advance |
data.advances[].user.id | string | Unique identifier for the user |
data.advances[].user.name | string | Name of the user |
data.context | object | Additional context for the advances |
data.context.count | number | The total number of advances |
Response Example
Error Responses
Missing Vendor ID
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
Best Practices
Access Control
- Only vendors you created or where you are the vendor owner are accessible (unless you have admin or auditor role)
- Use the vendor
idreturned from the vendor creation endpoint to retrieve advances