Vendor Details API
curl --request GET \
--url https://api.pazy.io/v1.0/vendor/:vendorIdimport requests
url = "https://api.pazy.io/v1.0/vendor/:vendorId"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pazy.io/v1.0/vendor/:vendorId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pazy.io/v1.0/vendor/:vendorId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pazy.io/v1.0/vendor/:vendorId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pazy.io/v1.0/vendor/:vendorId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pazy.io/v1.0/vendor/:vendorId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyVendor APIs
Vendor Details API
Retrieve detailed vendor information including tax, address, accounting, and payment summary data
Vendor Details API
curl --request GET \
--url https://api.pazy.io/v1.0/vendor/:vendorIdimport requests
url = "https://api.pazy.io/v1.0/vendor/:vendorId"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.pazy.io/v1.0/vendor/:vendorId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pazy.io/v1.0/vendor/:vendorId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pazy.io/v1.0/vendor/:vendorId"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.pazy.io/v1.0/vendor/:vendorId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pazy.io/v1.0/vendor/:vendorId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyAuthentication
All requests require an API key in the request headers. Headers:Authorization: Api-Key YOUR_API_KEY
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
vendorId | string | Yes | The unique slug identifier of the vendor |
Code Examples
curl -X GET https://api.pazy.io/v1.0/vendor/vendor_identifier \
-H "Authorization: Api-Key YOUR_API_KEY"
const response = await fetch('https://api.pazy.io/v1.0/vendor/vendor_identifier', {
method: 'GET',
headers: {
'Authorization': 'Api-Key YOUR_API_KEY'
}
});
const result = await response.json();
import requests
url = "https://api.pazy.io/v1.0/vendor/vendor_identifier"
headers = {
"Authorization": "Api-Key YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
result = response.json()
Success Response
HTTP Status:200 OK
Response Fields:
| Field | Type | Description |
|---|---|---|
ok | boolean | Indicates whether the request was successful |
data | object | Contains the vendor details |
data.id | string | Unique slug identifier for the vendor |
data.name | string | Vendor display name. Falls back to legal name if display name is unavailable |
data.expenseAccount | object | Expense account mapped to the vendor |
data.expenseAccount.id | number or null | Unique identifier of the expense account |
data.expenseAccount.name | string or null | Expense account name |
data.GSTIN | string | Vendor GSTIN. Empty string if not set |
data.PAN | string | Vendor PAN. Empty string if not set |
data.dateCreated | string | ISO 8601 timestamp when the vendor was created |
data.email | string | Vendor email address. Empty string if not set |
data.ownerId | string | Unique slug identifier of the vendor owner |
data.ownerName | string | Full name of the vendor owner |
data.totalPaidAmount | number or string | Total amount paid to the vendor |
data.outstandingAmount | number or string | Total outstanding amount for the vendor |
data.overdueAmount | number or string | Total overdue amount for the vendor |
data.advanceAmount | number or string | Total advance amount available for the vendor |
data.advancePendingAmount | number or string | Pending advance amount for the vendor |
data.currency | string | Currency code for the vendor amount summaries. Defaults to INR when unavailable |
data.accountingSynced | boolean | Indicates whether the vendor is synced to the connected accounting platform |
data.accountingSyncId | string | Identifier of the vendor in the connected accounting platform |
data.accountingPlatform | string | Connected accounting platform name. Present only when an accounting integration exists |
data.address | object | Vendor address details |
data.address.line1 | string | Primary address line |
data.address.line2 | string | Secondary address line |
data.address.state | string | State or region |
data.address.country | string | Country |
data.address.pinCode | string | Postal or PIN code |
data.locality | string | Vendor locality, such as DOMESTIC or INTERNATIONAL |
data.msmeStatus | string | MSME status. Possible normalized values are YES, NO, or NOT_AVAILABLE |
data.stats | object | Vendor activity counters |
data.stats.draftInvoicesCount | number | Number of draft invoices associated with the vendor |
data.stats.advancePaymentRequestsCount | number | Number of active advance payment requests associated with the vendor |
data.selfUrl | string | Share URL for the vendor |
data.taxation | object | Vendor tax configuration |
data.taxation.tds | object | TDS configuration for the vendor |
data.taxation.tds.name | string or null | TDS ledger name |
data.taxation.tds.ratePercent | number or null | TDS rate percentage |
data.taxation.tds.section | string or null | TDS section |
data.bankingDetails | object or null | Vendor banking details. null if no bank account is configured |
data.bankingDetails.type | string | Bank account type. Possible values: IFSC (Indian bank account), IBAN (International bank account), UPI (UPI ID) |
data.bankingDetails.primaryIdentifier | string | Primary identifier for the account. For IFSC type, this is the bank account number. For IBAN type, this is the IBAN. For UPI type, this is the UPI ID |
data.bankingDetails.secondaryIdentifier | string | Secondary identifier for the account. For IFSC type, this is the IFSC code. For IBAN type, this is the SWIFT code. Empty string if not applicable |
Response Example
{
"ok": true,
"data": {
"id": "vendor_identifier",
"name": "ABC Suppliers",
"expenseAccount": {
"id": 123,
"name": "Purchases"
},
"GSTIN": "29ABCDE1234F1Z5",
"PAN": "ABCDE1234F",
"dateCreated": "2026-03-28T08:12:25.088Z",
"email": "contact@abcsuppliers.com",
"ownerId": "<userId>",
"ownerName": "John Doe",
"totalPaidAmount": 25000,
"outstandingAmount": 15000,
"overdueAmount": 5000,
"advanceAmount": 10000,
"advancePendingAmount": 4000,
"currency": "INR",
"accountingSynced": true,
"accountingSyncId": "LEDGER-ABC-SUPPLIERS",
"accountingPlatform": "TALLY",
"address": {
"line1": "123 Business Park",
"line2": "Near Tech Hub",
"state": "MAHARASHTRA",
"country": "India",
"pinCode": "400001"
},
"locality": "DOMESTIC",
"msmeStatus": "YES",
"stats": {
"draftInvoicesCount": 2,
"advancePaymentRequestsCount": 1
},
"selfUrl": "https://app.pazy.io/p/vendor/update/vendor_identifier",
"taxation": {
"tds": {
"name": "TDS Contractor",
"ratePercent": 10,
"section": "194C"
}
},
"bankingDetails": {
"type": "IFSC",
"primaryIdentifier": "12345678901",
"secondaryIdentifier": "ABCD0123456"
}
}
}
Error Responses
Missing Vendor ID
HTTP Status:400 Bad Request
{
"ok": false,
"error": {
"code": "MISSING_REQUIRED_FIELD",
"message": "Vendor ID is required"
}
}
Vendor Not Found
HTTP Status:404 Not Found
{
"ok": false,
"error": {
"code": "VENDOR_NOT_FOUND",
"message": "Vendor not found"
}
}
Access Denied
HTTP Status:403 Forbidden
{
"ok": false,
"error": {
"code": "ACCESS_DENIED",
"message": "Access denied: You can only view vendors you own"
}
}
Authentication Errors
HTTP Status:401 Unauthorized
{
"ok": false,
"error": {
"code": "MISSING_CREDENTIALS",
"message": "Missing Credentials"
}
}
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API Key"
}
}
Permission Errors
HTTP Status:403 Forbidden
{
"ok": false,
"error": {
"code": "INSUFFICIENT_PERMISSIONS",
"message": "Permission check failed - PERMISSION_CHECK_FAILED"
}
}
Internal Error
HTTP Status:500 Internal Server Error
{
"ok": false,
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal error"
}
}
Best Practices
- Use the
vendorIdreturned from the Vendor Creation API or Vendor Search API to retrieve details - Store
data.idas the stable vendor identifier for related APIs such as vendor documents, audit trail, advances, and payments - Check
accountingSyncedandaccountingSyncIdbefore relying on accounting-platform identifiers - Treat amount fields as optional because they may be empty strings when no matching financial activity exists
- Access is limited to users with vendor read permission and an admin or accountant role
Was this page helpful?