List Invoices

Get a list of invoices.

Endpoint

GET ${baseUrl}/invoices

Response

interface InvoiceListResponse {
  success: boolean
  data: {
    u: string
    fullname: string
    email: string
    id: string
    amt: number
    ts: string
    t: string
    ra: number
    cr: number
  }[]
}

Example Request

const response = await fetch('${baseUrl}/invoices', {
  headers: {
    Authorization: 'Basic YOUR_API_KEY',
  },
})
 
const data = await response.json()

Error Codes

Status CodeDescription
200Success
401Unauthorized
403Forbidden
500Server Error