Get Invoices
curl --request GET \
--url https://api.fyatu.com/api/v3/account/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/account/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.fyatu.com/api/v3/account/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.fyatu.com/api/v3/account/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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fyatu.com/api/v3/account/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fyatu.com/api/v3/account/invoices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/account/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 200,
"message": "Invoices retrieved successfully",
"data": {
"invoices": [
{
"invoiceId": "INV-2026-01",
"period": "2026-01",
"subtotal": 49,
"totalAmount": 49,
"paidAmount": 49,
"currency": "USD",
"status": "PAID",
"issuedAt": "2026-01-01T00:00:00+00:00",
"dueDate": "2026-01-15",
"paidAt": "2026-01-10T08:22:00+00:00"
},
{
"invoiceId": "INV-2025-12",
"period": "2025-12",
"subtotal": 49,
"totalAmount": 49,
"paidAmount": 20,
"currency": "USD",
"status": "PARTIALLY_PAID",
"issuedAt": "2025-12-01T00:00:00+00:00",
"dueDate": "2025-12-15",
"paidAt": null
}
],
"pagination": {
"page": 1,
"perPage": 20,
"totalItems": 2,
"totalPages": 1
}
},
"meta": {
"requestId": "req_abc123def456",
"timestamp": "2026-01-15T14:35:00+00:00"
}
}{
"success": false,
"status": 401,
"message": "Unable to identify business",
"error": {
"code": "AUTH_TOKEN_INVALID"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-01-05T10:30:00+00:00"
}
}Account
Get Invoices
List your business billing invoices — subscription charges, outstanding amounts, and payment status. GET /account/invoices.
GET
/
account
/
invoices
Get Invoices
curl --request GET \
--url https://api.fyatu.com/api/v3/account/invoices \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/account/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.fyatu.com/api/v3/account/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.fyatu.com/api/v3/account/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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fyatu.com/api/v3/account/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fyatu.com/api/v3/account/invoices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/account/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"status": 200,
"message": "Invoices retrieved successfully",
"data": {
"invoices": [
{
"invoiceId": "INV-2026-01",
"period": "2026-01",
"subtotal": 49,
"totalAmount": 49,
"paidAmount": 49,
"currency": "USD",
"status": "PAID",
"issuedAt": "2026-01-01T00:00:00+00:00",
"dueDate": "2026-01-15",
"paidAt": "2026-01-10T08:22:00+00:00"
},
{
"invoiceId": "INV-2025-12",
"period": "2025-12",
"subtotal": 49,
"totalAmount": 49,
"paidAmount": 20,
"currency": "USD",
"status": "PARTIALLY_PAID",
"issuedAt": "2025-12-01T00:00:00+00:00",
"dueDate": "2025-12-15",
"paidAt": null
}
],
"pagination": {
"page": 1,
"perPage": 20,
"totalItems": 2,
"totalPages": 1
}
},
"meta": {
"requestId": "req_abc123def456",
"timestamp": "2026-01-15T14:35:00+00:00"
}
}{
"success": false,
"status": 401,
"message": "Unable to identify business",
"error": {
"code": "AUTH_TOKEN_INVALID"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-01-05T10:30:00+00:00"
}
}Overview
Retrieve a paginated list of billing invoices issued to your business account. Invoices are generated monthly for subscription-based pricing plans and may also be issued for outstanding fees.Pagination
| Parameter | Default | Max |
|---|---|---|
page | 1 | - |
perPage | 20 | 100 |
Response Fields
| Field | Type | Description |
|---|---|---|
invoiceId | string | Unique invoice identifier |
period | string | Billing period in YYYY-MM format |
subtotal | number | Amount before any adjustments |
totalAmount | number | Total amount due |
paidAmount | number | Amount already paid |
currency | string | Always USD |
status | string | PENDING, PAID, PARTIALLY_PAID, OVERDUE, or VOID |
issuedAt | string | ISO 8601 timestamp when invoice was issued |
dueDate | string|null | Due date in YYYY-MM-DD format |
paidAt | string|null | ISO 8601 timestamp when invoice was fully paid |
Invoice Statuses
| Status | Description |
|---|---|
PENDING | Invoice issued, payment not yet received |
PAID | Invoice fully paid |
PARTIALLY_PAID | Partial payment received; remaining balance outstanding |
OVERDUE | Past due date without full payment |
VOID | Invoice cancelled |
Example Usage
const response = await fetch('https://api.fyatu.com/api/v3/account/invoices?page=1&perPage=10', {
headers: {
'Authorization': `Bearer ${accessToken}`
}
});
const { data } = await response.json();
console.log(`Total invoices: ${data.pagination.totalItems}`);
data.invoices.forEach(inv => {
const outstanding = inv.totalAmount - inv.paidAmount;
console.log(`Invoice ${inv.invoiceId} (${inv.period}): $${inv.totalAmount} — ${inv.status}`);
if (outstanding > 0) {
console.log(` Outstanding: $${outstanding.toFixed(2)}`);
}
});
Use Cases
- Billing overview: See all invoices and their payment status
- Outstanding balance: Find unpaid or partially paid invoices
- Payment history: Confirm when invoices were settled
Authorizations
JWT access token obtained from /auth/token
Query Parameters
Page number (default: 1)
Required range:
x >= 1Items per page (default: 20, max: 100)
Required range:
1 <= x <= 100⌘I

