Vendor Payments API
Vendor APIs
Vendor Payments API
Retrieve payments for a specific vendor by its identifier
Vendor Payments 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 |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
fields | string | Yes | CSV string of extra field you want to get |
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 payments response data |
data.vendorPayments[].transactionId | string | Unique transaction identifier for the payment |
data.vendorPayments[].resourceId | string | Unique identifier of the associated resource |
data.vendorPayments[].resourceType | string | Type of the resource e.g. INVOICE, PURCHASE_ORDER |
data.vendorPayments[].invoiceNo | string | Human-readable invoice number |
data.vendorPayments[].currency | string | Currency code for the payment e.g. INR, USD |
data.vendorPayments[].amount | string | Amount paid to the vendor |
data.vendorPayments[].paidVia | string | Payment method used e.g. PLATFORM, MANUAL |
data.vendorPayments[].paidBy | object | Information about the user who made the payment |
data.vendorPayments[].paidBy.id | string | Unique identifier for the user |
data.vendorPayments[].paidBy.name | string | Name of the user |
data.vendorPayments[].paymentState | string | Current state of the payment e.g. FINISHED, PENDING |
data.vendorPayments[].paymentDate | string | ISO 8601 timestamp of when the payment was made |
data.vendorPayments[].utr | string | Unique Transaction Reference number for the payment |
data.context.count | number | Total number of vendor payments |
data.context.totalAmountByCurrency | object | Total payment amounts grouped by currency code |
data.context.vendorBankDetails | object | Bank account details of the vendor |
data.context.vendorBankDetails.accountName | string | Name on the vendor’s bank account |
data.context.vendorBankDetails.accountIFSC | string | IFSC code of the vendor’s bank |
data.context.vendorBankDetails.accountType | string | Type of account identifier e.g. IFSC |
data.context.vendorBankDetails.accountNumber | string | Vendor’s bank account number (Only if you ask for this in fields query params) |
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 payments