List invoices for the caller organization (cursor-paginated)
curl --request GET \
--url https://api.example.com/v1/invoices \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/v1/invoices"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/v1/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.example.com/v1/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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.example.com/v1/invoices")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "ckxinv042",
"publicId": "ckpub042",
"orgId": "ckorg001",
"buyerId": "ckbuy001",
"buyerEmail": "buyer@acme.com",
"buyerName": "ACME Imports LLC",
"sellerConnectedAccountId": "ckacc042",
"sellerExternalId": "seller-42",
"sellerName": "Fazenda Boa Vista",
"status": "draft",
"currency": "USD",
"amount": "12500.00",
"requestNetworkId": null,
"paymentChain": "base",
"paymentAddress": "0x5fbe…a91c",
"dueDate": null,
"expiresAt": null,
"cancelReason": null,
"pendingApproval": false,
"buyerRef": null,
"dueNumber": null,
"exportContractRef": null,
"incoterm": null,
"portOfLoading": null,
"feeBps": 50,
"feeAmount": "62.50",
"brlSettledAmount": null,
"fxRateAtSettlement": null,
"createdAt": "2026-06-30T12:00:00.000Z",
"updatedAt": "2026-06-30T12:00:00.000Z",
"lineItems": [
{
"id": "ckli001",
"description": "Order #42 — green coffee, 18t",
"quantity": "1",
"unitPrice": "12500.00",
"subtotal": "12500.00",
"ncmCode": null,
"originState": null
}
],
"timeline": [
{
"id": "ckev001",
"invoiceId": "ckxinv042",
"type": "created",
"source": "caratuva",
"externalEventId": null,
"occurredAt": "2026-06-30T12:00:00.000Z"
}
]
}
],
"nextCursor": null
}Invoices
List invoices for the caller organization (cursor-paginated)
Returns the most recently created invoices first. Pass cursor (the previous response’s nextCursor) to fetch the next page. nextCursor is null when there are no more results.
GET
/
v1
/
invoices
List invoices for the caller organization (cursor-paginated)
curl --request GET \
--url https://api.example.com/v1/invoices \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.example.com/v1/invoices"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.example.com/v1/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.example.com/v1/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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/invoices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.example.com/v1/invoices")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/invoices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "ckxinv042",
"publicId": "ckpub042",
"orgId": "ckorg001",
"buyerId": "ckbuy001",
"buyerEmail": "buyer@acme.com",
"buyerName": "ACME Imports LLC",
"sellerConnectedAccountId": "ckacc042",
"sellerExternalId": "seller-42",
"sellerName": "Fazenda Boa Vista",
"status": "draft",
"currency": "USD",
"amount": "12500.00",
"requestNetworkId": null,
"paymentChain": "base",
"paymentAddress": "0x5fbe…a91c",
"dueDate": null,
"expiresAt": null,
"cancelReason": null,
"pendingApproval": false,
"buyerRef": null,
"dueNumber": null,
"exportContractRef": null,
"incoterm": null,
"portOfLoading": null,
"feeBps": 50,
"feeAmount": "62.50",
"brlSettledAmount": null,
"fxRateAtSettlement": null,
"createdAt": "2026-06-30T12:00:00.000Z",
"updatedAt": "2026-06-30T12:00:00.000Z",
"lineItems": [
{
"id": "ckli001",
"description": "Order #42 — green coffee, 18t",
"quantity": "1",
"unitPrice": "12500.00",
"subtotal": "12500.00",
"ncmCode": null,
"originState": null
}
],
"timeline": [
{
"id": "ckev001",
"invoiceId": "ckxinv042",
"type": "created",
"source": "caratuva",
"externalEventId": null,
"occurredAt": "2026-06-30T12:00:00.000Z"
}
]
}
],
"nextCursor": null
}⌘I