Payments Made

Payments made to vendors, with bill allocations. Read-only via the API.

GET/api/v1/payments-made

List payments made

Scope: paymentsMade.read

Parameters

NameInTypeRequiredDescription
pagequerynumberOptional1-based page number.
limitquerynumberOptionalPage size, max 200.
qquerystringOptionalFree-text search on payment number, reference number, or vendor name.

Example request

curl "https://invoice.avscorp.in/api/v1/payments-made" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

JSON
{
  "id": "clx2pmt001000000000000001",
  "paymentNumber": "PMT-2026-0058",
  "vendorId": "clx2vnd001000000000000001",
  "vendorName": "Shree Textile Suppliers",
  "paymentDate": "2026-07-15T00:00:00.000Z",
  "mode": "BANK_TRANSFER",
  "referenceNumber": "UTR1234567890",
  "paidThroughAccount": "HDFC Current A/C",
  "amount": 30000,
  "allocated": 30000,
  "openingBalanceApplied": 0,
  "currencyCode": "INR",
  "exchangeRate": 1,
  "notes": null,
  "createdAt": "2026-07-15T08:00:00.000Z",
  "updatedAt": "2026-07-15T08:00:00.000Z"
}

Possible errors: unauthorized, insufficient_scope, forbidden

GET/api/v1/payments-made/{id}

Get a payment made

Scope: paymentsMade.read

Adds bill allocations and createdBy on top of the list row shape.

Parameters

NameInTypeRequiredDescription
idpathstringRequiredPayment ID.

Example request

curl "https://invoice.avscorp.in/api/v1/payments-made/clx2pmt001000000000000001" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example response

JSON
{
  "id": "clx2pmt001000000000000001",
  "paymentNumber": "PMT-2026-0058",
  "vendorId": "clx2vnd001000000000000001",
  "vendorName": "Shree Textile Suppliers",
  "paymentDate": "2026-07-15T00:00:00.000Z",
  "mode": "BANK_TRANSFER",
  "referenceNumber": "UTR1234567890",
  "paidThroughAccount": "HDFC Current A/C",
  "amount": 30000,
  "allocated": 30000,
  "openingBalanceApplied": 0,
  "currencyCode": "INR",
  "exchangeRate": 1,
  "notes": null,
  "createdAt": "2026-07-15T08:00:00.000Z",
  "updatedAt": "2026-07-15T08:00:00.000Z",
  "createdBy": "clx2usr001000000000000001",
  "allocations": [
    {
      "id": "clx2pma001000000000000001",
      "paymentId": "clx2pmt001000000000000001",
      "billId": "clx2bil001000000000000001",
      "billNumber": "BILL-2026-0091",
      "amount": 30000
    }
  ]
}

Possible errors: unauthorized, insufficient_scope, forbidden, not_found