Skip to main content

List invoices

GET 
/invoices

Retrieve a paginated list of invoices.

Request

Query Parameters

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

    sort string

    Possible values: [period_start, -period_start]

    Specifies the sort order for results.

Responses

200: List of invoices

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/invoices' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"meta": {
"total_results": 20,
"total_pages": 1,
"page_number": 1,
"page_size": 20
},
"data": [
{
"invoice_id": "48eff763-ea80-4345-b688-78249eb165a8",
"file_id": "454ea3b0-9eaa-4fa9-992e-6d9f31c0a37e",
"period_start": "2023-11-01",
"period_end": "2023-11-30",
"paid": true,
"url": "https://api.telnyx.com:443/v2/invoices/48eff763-ea80-4345-b688-78249eb165a8"
}
]
}