Skip to main content
GET
/
getInvoices
getInvoices
curl --request GET \
  --url https://alphainsider.com/api/getInvoices \
  --header 'Authorization: <authorization>'
{
  "success": true,
  "response": [
    {
      "invoice_id": "NJ9Fo2OSoM5MRy5ithwnw",
      "user_id": "user_1",
      "description": "Pro Account Monthly Subscription",
      "status": "paid",
      "updated_at": "2024-10-22T20:59:25.765Z",
      "created_at": "2024-10-22T20:59:22.304Z",
      "amount": "5000",
      "amount_refunded": "0",
      "source": {
        "source_id": "ta-fz_Z_fkHau1d5k3HUR",
        "user_id": "user_1",
        "type": "card",
        "direction": "in",
        "primary": true,
        "description": "Card (VISA ....4242)",
        "name": "fds fds",
        "city": "fds",
        "country": "US",
        "line_one": "fds",
        "line_two": "fds",
        "district": "fd",
        "postal": "33132",
        "status": "active",
        "updated_at": "2024-10-21T17:51:08.576296+00:00",
        "created_at": "2024-08-30T13:41:24.478454+00:00"
      }
    }
  ]
}

Headers

Authorization
string<JWT>
required

User API token.

Query Parameters

invoice_id[]
string[]

Array of invoice IDs. Leave empty to get all invoices.

Maximum array length: 100

Invoice ID.

source_id
string

Source ID.

status
enum<string>

Invoice status.

Available options:
pending,
paid,
failed,
chargeback
limit
number

Number of results to return.

offset_id
string

Offet by ID. Used for pagination.

Response

Request was successful.