JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const customerListInvoicesResponse of client.v1.customers.listInvoices('id')) {
console.log(customerListInvoicesResponse.paidDate);
}import os
from stigg import Stigg
client = Stigg(
api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted
)
page = client.v1.customers.list_invoices(
id="id",
)
page = page.data[0]
print(page.paid_date)package main
import (
"context"
"fmt"
"github.com/stiggio/stigg-go"
"github.com/stiggio/stigg-go/option"
)
func main() {
client := stigg.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.V1.Customers.ListInvoices(
context.TODO(),
"id",
stigg.V1CustomerListInvoicesParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
package io.stigg.example;
import io.stigg.client.StiggClient;
import io.stigg.client.okhttp.StiggOkHttpClient;
import io.stigg.models.v1.customers.CustomerListInvoicesPage;
import io.stigg.models.v1.customers.CustomerListInvoicesParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
StiggClient client = StiggOkHttpClient.fromEnv();
CustomerListInvoicesPage page = client.v1().customers().listInvoices("id");
}
}require "stigg"
stigg = Stigg::Client.new(api_key: "My API Key")
page = stigg.v1.customers.list_invoices("id")
puts(page)using System;
using Stigg.Client;
using Stigg.Client.Models.V1.Customers;
StiggClient client = new();
CustomerListInvoicesParams parameters = new() { ID = "id" };
var page = await client.V1.Customers.ListInvoices(parameters);
await foreach (var item in page.Paginate())
{
Console.WriteLine(item);
}stigg v1:customers list-invoices \
--api-key 'My API Key' \
--id idcurl --request GET \
--url https://api.stigg.io/api/v1/customers/{id}/invoices \
--header 'X-API-KEY: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stigg.io/api/v1/customers/{id}/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 => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"invoiceId": "inv_1a2b3c4d",
"invoiceExternalId": "inv_1a2b3c4d",
"invoiceNumber": "INV-1024",
"contractExternalId": "contract-acme-2026",
"customerExternalId": "customer-acme",
"state": "PAID",
"issueDate": "2026-03-01T00:00:00.000Z",
"dueDate": "2026-03-31T00:00:00.000Z",
"paidDate": "2026-03-15T00:00:00.000Z",
"currency": "usd",
"subtotal": 100,
"tax": 8,
"discount": 5,
"total": 103,
"lineItems": [
{
"description": "Enterprise Platform — March 2026",
"quantity": 1,
"unitPrice": 100,
"amount": 100,
"productExternalId": "product-revvenu"
}
]
}
],
"pagination": {
"next": null,
"prev": null
}
}{
"message": "<string>",
"code": "BadUserInput",
"reason": "<string>"
}{
"message": "<string>",
"code": "Unauthenticated"
}{
"message": "<string>",
"code": "IdentityForbidden"
}{
"message": "<string>",
"code": "RateLimitExceeded"
}Invoices
Get a list of invoices
Retrieves a cursor-paginated list of a customer’s invoices, fetched live from the connected billing provider. Ordered by issue date ascending by default; override with orderBy (issueDate | dueDate | total) and orderDir (ASC | DESC). Optionally narrowed to one contract, an issue-date range, and/or a set of invoice states. Returns an empty list when no billing provider is connected or the customer is not synced.
GET
/
api
/
v1
/
customers
/
{id}
/
invoices
JavaScript
import Stigg from '@stigg/typescript';
const client = new Stigg({
apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const customerListInvoicesResponse of client.v1.customers.listInvoices('id')) {
console.log(customerListInvoicesResponse.paidDate);
}import os
from stigg import Stigg
client = Stigg(
api_key=os.environ.get("STIGG_API_KEY"), # This is the default and can be omitted
)
page = client.v1.customers.list_invoices(
id="id",
)
page = page.data[0]
print(page.paid_date)package main
import (
"context"
"fmt"
"github.com/stiggio/stigg-go"
"github.com/stiggio/stigg-go/option"
)
func main() {
client := stigg.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.V1.Customers.ListInvoices(
context.TODO(),
"id",
stigg.V1CustomerListInvoicesParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
package io.stigg.example;
import io.stigg.client.StiggClient;
import io.stigg.client.okhttp.StiggOkHttpClient;
import io.stigg.models.v1.customers.CustomerListInvoicesPage;
import io.stigg.models.v1.customers.CustomerListInvoicesParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
StiggClient client = StiggOkHttpClient.fromEnv();
CustomerListInvoicesPage page = client.v1().customers().listInvoices("id");
}
}require "stigg"
stigg = Stigg::Client.new(api_key: "My API Key")
page = stigg.v1.customers.list_invoices("id")
puts(page)using System;
using Stigg.Client;
using Stigg.Client.Models.V1.Customers;
StiggClient client = new();
CustomerListInvoicesParams parameters = new() { ID = "id" };
var page = await client.V1.Customers.ListInvoices(parameters);
await foreach (var item in page.Paginate())
{
Console.WriteLine(item);
}stigg v1:customers list-invoices \
--api-key 'My API Key' \
--id idcurl --request GET \
--url https://api.stigg.io/api/v1/customers/{id}/invoices \
--header 'X-API-KEY: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.stigg.io/api/v1/customers/{id}/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 => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": [
{
"invoiceId": "inv_1a2b3c4d",
"invoiceExternalId": "inv_1a2b3c4d",
"invoiceNumber": "INV-1024",
"contractExternalId": "contract-acme-2026",
"customerExternalId": "customer-acme",
"state": "PAID",
"issueDate": "2026-03-01T00:00:00.000Z",
"dueDate": "2026-03-31T00:00:00.000Z",
"paidDate": "2026-03-15T00:00:00.000Z",
"currency": "usd",
"subtotal": 100,
"tax": 8,
"discount": 5,
"total": 103,
"lineItems": [
{
"description": "Enterprise Platform — March 2026",
"quantity": 1,
"unitPrice": 100,
"amount": 100,
"productExternalId": "product-revvenu"
}
]
}
],
"pagination": {
"next": null,
"prev": null
}
}{
"message": "<string>",
"code": "BadUserInput",
"reason": "<string>"
}{
"message": "<string>",
"code": "Unauthenticated"
}{
"message": "<string>",
"code": "IdentityForbidden"
}{
"message": "<string>",
"code": "RateLimitExceeded"
}