Get invoice by ID
GET/invoices/:id
Retrieve a single invoice by its unique identifier.
Request
Path Parameters
id uuidrequired
Invoice UUID
Query Parameters
action string
Possible values: [json
, link
]
Invoice action
Responses
200: Get invoice details
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/invoices/:id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"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",
"download_url": "https://us-east-1.telnyxstorage.com/porting-documents/telnyx/..."
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}