Skip to main content
GET
/
v1
/
invoices
/
{type}
Get invoices
curl --request GET \
  --url https://api.example.com/v1/invoices/{type}
{
  "message": "Rental invoices retrieved successfully!",
  "code": 200,
  "data": {
    "invoiceCount": 2,
    "invoices": {
      "2025": [
        {
          "InvoiceID": "inv_abc123",
          "UserID": "user_xyz789",
          "due_date_month": "3",
          "due_date_year": "2025"
        }
      ],
      "2024": [
        {
          "InvoiceID": "inv_def456",
          "UserID": "user_xyz789",
          "due_date_month": "12",
          "due_date_year": "2024"
        }
      ]
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/azfar-imtiaz/PayPulse-Cloud/llms.txt

Use this file to discover all available pages before exploring further.

Authentication

All requests to this endpoint must include a valid JWT in the Authorization header.
Authorization: Bearer <token>

Path parameters

type
string
required
Invoice type. Must be rental or retail.

Query parameters

The following query parameters are supported for retail invoices only (type=retail). They are not valid when type=rental.
subtype
string
Filter by retail invoice sub-type. Valid values: food-delivery, clothing, technology, subscriptions, grocery, utility, miscellaneous, travel.
invoice-id
string
Retrieve the parsed detail record for a specific retail invoice. Requires subtype to also be set.
counts
boolean
When true, return invoice counts instead of invoice records. Can be combined with subtype to count a specific category. Cannot be used together with invoice-id.

Behavior by mode

GET /v1/invoices/rentalReturns all rental invoices for the user from the RentalInvoices DynamoDB table, grouped by year. No query parameters are supported for rental invoices.Response data:
  • invoiceCount — total number of invoices
  • invoices — object keyed by year (e.g. "2025"), each value an array of invoice objects
curl --request GET \
  --url https://api.paypulse.io/v1/invoices/rental \
  --header 'Authorization: Bearer <token>'

Response (rental invoices)

message
string
Example: "Rental invoices retrieved successfully!"
code
number
200 on success.
data
object | null
null when no invoices exist. Otherwise:

Error responses

StatusError codeDescription
400INVALID_REQUESTThe type path parameter is not rental or retail, an invalid subtype value was provided, invoice-id was given without subtype, or counts and invoice-id were combined.
401INVALID_CREDENTIALSThe Authorization header is missing or the token is invalid.
401TOKEN_EXPIREDThe JWT has expired.
404INVALID_REQUESTInvoice not found (when using invoice-id).
502DEPENDENCY_FAILUREA downstream dependency (DynamoDB) returned an error.
500INTERNAL_SERVER_ERRORAn unexpected server-side error occurred.
{
  "message": "Rental invoices retrieved successfully!",
  "code": 200,
  "data": {
    "invoiceCount": 2,
    "invoices": {
      "2025": [
        {
          "InvoiceID": "inv_abc123",
          "UserID": "user_xyz789",
          "due_date_month": "3",
          "due_date_year": "2025"
        }
      ],
      "2024": [
        {
          "InvoiceID": "inv_def456",
          "UserID": "user_xyz789",
          "due_date_month": "12",
          "due_date_year": "2024"
        }
      ]
    }
  }
}

Build docs developers (and LLMs) love