Billing
List invoices
Lists your paid invoices, newest first, from your 24 most recent. Not paginated. Each is a Stripe invoice object; amounts are in the currency’s smallest unit (cents for USD), times are Unix timestamps.
GET
/
invoices
List invoices
curl --request GET \
--url https://api.followr.ai/api/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.followr.ai/api/invoices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.followr.ai/api/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.followr.ai/api/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": "in_1QkR4tK2mN4pX8vZa1B2c3D4",
"object": "invoice",
"number": "4F2A9C1B-0021",
"status": "paid",
"paid": true,
"currency": "usd",
"subtotal": 3900,
"total": 3900,
"amount_due": 3900,
"amount_paid": 3900,
"amount_remaining": 0,
"created": 1794657600,
"period_start": 1792065600,
"period_end": 1794657600,
"customer": "cus_PqR7sT8uV9wX0y",
"customer_email": "alex@northside.example",
"subscription": "sub_1QhT7sK2mN4pX8vZ",
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1Nb2Cd3Ef4Gh5Ij6/live_YWNjdF8xTmIyQ2QzRWY0R2g1SWo2",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1Nb2Cd3Ef4Gh5Ij6/live_YWNjdF8xTmIyQ2QzRWY0R2g1SWo2/pdf",
"lines": {
"object": "list",
"has_more": false,
"data": [
{
"id": "il_1QkR4tK2mN4pX8vZb5C6d7E8",
"object": "line_item",
"description": "1 × Team (at $39.00 / month)",
"amount": 3900,
"currency": "usd",
"quantity": 1,
"period": {
"start": 1794657600,
"end": 1797249600
}
}
]
}
}
]
}Authorizations
⌘I
List invoices
curl --request GET \
--url https://api.followr.ai/api/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.followr.ai/api/invoices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.followr.ai/api/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.followr.ai/api/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"id": "in_1QkR4tK2mN4pX8vZa1B2c3D4",
"object": "invoice",
"number": "4F2A9C1B-0021",
"status": "paid",
"paid": true,
"currency": "usd",
"subtotal": 3900,
"total": 3900,
"amount_due": 3900,
"amount_paid": 3900,
"amount_remaining": 0,
"created": 1794657600,
"period_start": 1792065600,
"period_end": 1794657600,
"customer": "cus_PqR7sT8uV9wX0y",
"customer_email": "alex@northside.example",
"subscription": "sub_1QhT7sK2mN4pX8vZ",
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1Nb2Cd3Ef4Gh5Ij6/live_YWNjdF8xTmIyQ2QzRWY0R2g1SWo2",
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1Nb2Cd3Ef4Gh5Ij6/live_YWNjdF8xTmIyQ2QzRWY0R2g1SWo2/pdf",
"lines": {
"object": "list",
"has_more": false,
"data": [
{
"id": "il_1QkR4tK2mN4pX8vZb5C6d7E8",
"object": "line_item",
"description": "1 × Team (at $39.00 / month)",
"amount": 3900,
"currency": "usd",
"quantity": 1,
"period": {
"start": 1794657600,
"end": 1797249600
}
}
]
}
}
]
}