GET
/
invoices
curl --request GET \
  --url https://api.live.paisr.tech/{version}/invoices \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "invoices": [
      {
        "id": "inv_123456",
        "sid": 600783,
        "subscription_id": "sub_123456",
        "customer": {
          "id": "cus_123456",
          "name": "Jane Smith",
          "email": "jane@example.com",
          "billing_details": null,
          "shipping_details": null
        },
        "voucher": {
          "id": "vch_123456",
          "type": "percentage",
          "rate": 10
        },
        "summary": "A simple pizza order",
        "amount": {
          "sub_total": 150,
          "discount_total": 15,
          "net_total": 135
        },
        "status": "paid",
        "currency": "SRD",
        "session": {
          "url": "https://checkout.paisr.tech/ey7bTCm6tur63CR6mzbuq23r",
          "expires_in": "30 minutes"
        },
        "due_at": "2023-11-07T05:31:56Z",
        "paid_at": "2023-11-07T05:31:56Z",
        "void_at": "2023-11-07T05:31:56Z",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

resource_id
string

The ID of the resource you want to filter based on. (e.g. Customer, Subscription or Voucher ID's)

currency
string

The currency you want to filter based on.

status
enum<string>
Available options:
draft,
unpaid,
paid,
void
Example:

"paid"

Response

200
application/json
Successfully retrieved the list of invoices.
success
boolean
Example:

true

data
object