GET
/
invoices
/
{invoice_id}
curl --request GET \
  --url https://api.live.paisr.tech/{version}/invoices/{invoice_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "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.

Path Parameters

invoice_id
string
required

The Invoice ID.

Response

200
application/json
Successfully retrieved invoice details.
success
boolean
Example:

true

data
object