Skip to main content
GET
/
invoices
List Invoices
curl --request GET \
  --url https://www.withvayu.org/invoices \
  --header 'Authorization: Bearer <token>'
{
  "invoices": [
    {
      "customerId": "<string>",
      "name": "<string>",
      "billingCycle": {
        "startTime": "2023-11-07T05:31:56Z",
        "endTime": "2023-11-07T05:31:56Z"
      },
      "revenueBreakdown": {
        "total": 123,
        "subtotal": 123,
        "overage": 123,
        "discount": 123,
        "creditsUsed": 123,
        "tax": 1
      },
      "billingStatus": "None",
      "dueDate": "2023-11-07T05:31:56Z",
      "accountId": "<string>",
      "lineItems": [
        {
          "invoiceId": "<string>",
          "revenueBreakdown": {
            "total": 123,
            "subtotal": 123,
            "overage": 123,
            "discount": 123,
            "creditsUsed": 123,
            "tax": 1
          }
        }
      ],
      "amount": 123,
      "id": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "contractId": "<string>",
      "paymentInfo": {
        "transactionId": "<string>",
        "date": "2023-11-07T05:31:56Z",
        "paymentMethod": "<string>",
        "amount": 123,
        "currency": "USD",
        "status": "<string>",
        "note": "<string>",
        "customerId": "<string>"
      }
    }
  ],
  "total": 123,
  "hasMore": true,
  "nextCursor": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
number
default:10
Required range: 1 <= x <= 1000
cursor
string

Response

RequestSuccess

invoices
object[]
required
total
number
required
hasMore
boolean
required
nextCursor
string