cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/collections/board \
--header 'x-api-key: <api-key>'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.collections.get_collections_board()
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.collections.getCollectionsBoard();
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/dtos"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Collections.GetCollectionsBoard(ctx, dtos.GetCollectionsBoardRequest{})
if err != nil {
log.Fatal(err)
}
if res.CollectionsBoardResponse != nil {
// handle response
}
}{
"as_of": "<string>",
"available_currencies": [
"<string>"
],
"columns": [
{
"cards": [
{
"amount": "<string>",
"currency": "<string>",
"customer_id": "<string>",
"customer_name": "<string>",
"days_overdue": 123,
"due_date": "2023-11-07T05:31:56Z",
"due_in_days": 123,
"invoice_id": "<string>",
"invoice_number": "<string>",
"paid_at": "2023-11-07T05:31:56Z",
"reminder_status": "pending",
"reminder_status_reason": "<string>",
"reminder_tone": "friendly"
}
],
"count": 123,
"has_more": true,
"hint": "<string>",
"key": "not_due",
"title": "<string>",
"totals": [
{
"amount": "<string>",
"currency": "<string>"
}
]
}
],
"range": {
"from": "<string>",
"to": "<string>"
}
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Collections
Get collections board
Use when you need every open invoice by where it stands: sent but not due, overdue (one card per invoice, split by reminder status), and paid in the last 7 days. Counts and per-currency totals cover whole columns and follow the q and currency filters; by default no cards are returned (limit 0): each column carries count and totals, and has_more is true when the column has cards to fetch with GET /collections/board/columns/. With limit above 0 the first page of cards is returned too, and has_more says more cards follow. available_currencies lists the currencies of open invoices and of the invoices the Paid column can show, before q and currency apply.
GET
/
collections
/
board
cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/collections/board \
--header 'x-api-key: <api-key>'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.collections.get_collections_board()
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.collections.getCollectionsBoard();
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/dtos"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Collections.GetCollectionsBoard(ctx, dtos.GetCollectionsBoardRequest{})
if err != nil {
log.Fatal(err)
}
if res.CollectionsBoardResponse != nil {
// handle response
}
}{
"as_of": "<string>",
"available_currencies": [
"<string>"
],
"columns": [
{
"cards": [
{
"amount": "<string>",
"currency": "<string>",
"customer_id": "<string>",
"customer_name": "<string>",
"days_overdue": 123,
"due_date": "2023-11-07T05:31:56Z",
"due_in_days": 123,
"invoice_id": "<string>",
"invoice_number": "<string>",
"paid_at": "2023-11-07T05:31:56Z",
"reminder_status": "pending",
"reminder_status_reason": "<string>",
"reminder_tone": "friendly"
}
],
"count": 123,
"has_more": true,
"hint": "<string>",
"key": "not_due",
"title": "<string>",
"totals": [
{
"amount": "<string>",
"currency": "<string>"
}
]
}
],
"range": {
"from": "<string>",
"to": "<string>"
}
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}
