curl --request GET \
--url https://us.api.flexprice.io/v1/collections/reminders \
--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.list_reminder_drafts()
# 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.listReminderDrafts();
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.ListReminderDrafts(ctx, dtos.ListReminderDraftsRequest{})
if err != nil {
log.Fatal(err)
}
if res.ListRemindersResponse != nil {
// handle response
}
}{
"as_of": "<string>",
"available_currencies": [
"<string>"
],
"drafts": [
{
"amount": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"customer_email": "<string>",
"customer_id": "<string>",
"customer_name": "<string>",
"days_overdue": 123,
"due_date": "2023-11-07T05:31:56Z",
"edited": true,
"email": {
"sent_at": "2023-11-07T05:31:56Z",
"status": "queued",
"status_reason": "<string>",
"to": [
"<string>"
]
},
"id": "<string>",
"invoice_id": "<string>",
"invoice_number": "<string>",
"original_body": "<string>",
"original_subject": "<string>",
"original_tone": "friendly",
"status": "pending",
"status_reason": "<string>",
"subject": "<string>",
"tone": "friendly",
"tone_reason": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"page": 123,
"range": {
"from": "<string>",
"to": "<string>"
},
"summary": {
"approved": 123,
"customer_count": 123,
"held": 123,
"invoice_count": 123,
"overdue_totals": [
{
"amount": "<string>",
"currency": "<string>"
}
],
"skipped": 123,
"to_review": 123
}
}{
"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>"
}List reminder drafts
Use when you need the payment reminder of each overdue invoice with its tone, text and status. A reminder nobody acted on is rendered when read and stored nowhere; only edits and decisions are stored. The id of a reminder is its invoice id. The list is paged and nothing is sent. Order: status=approved lists the newest approval first (ties by invoice id); every other list puts the largest remaining balance first (ties by invoice id). Approvals made after as_of are left out of the list and the summary. from and to narrow the list and the summary by due date (invoices without a due date are left out when either is given); The summary (counts per status, totals per currency) follows from, to, currency and q like the board, and ignores status and customer_id so the status tabs count every status; available_currencies lists the currencies of open invoices and of invoices paid in the last 7 days, regardless of filters.
curl --request GET \
--url https://us.api.flexprice.io/v1/collections/reminders \
--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.list_reminder_drafts()
# 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.listReminderDrafts();
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.ListReminderDrafts(ctx, dtos.ListReminderDraftsRequest{})
if err != nil {
log.Fatal(err)
}
if res.ListRemindersResponse != nil {
// handle response
}
}{
"as_of": "<string>",
"available_currencies": [
"<string>"
],
"drafts": [
{
"amount": "<string>",
"approved_at": "2023-11-07T05:31:56Z",
"body": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"customer_email": "<string>",
"customer_id": "<string>",
"customer_name": "<string>",
"days_overdue": 123,
"due_date": "2023-11-07T05:31:56Z",
"edited": true,
"email": {
"sent_at": "2023-11-07T05:31:56Z",
"status": "queued",
"status_reason": "<string>",
"to": [
"<string>"
]
},
"id": "<string>",
"invoice_id": "<string>",
"invoice_number": "<string>",
"original_body": "<string>",
"original_subject": "<string>",
"original_tone": "friendly",
"status": "pending",
"status_reason": "<string>",
"subject": "<string>",
"tone": "friendly",
"tone_reason": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"has_more": true,
"page": 123,
"range": {
"from": "<string>",
"to": "<string>"
},
"summary": {
"approved": 123,
"customer_count": 123,
"held": 123,
"invoice_count": 123,
"overdue_totals": [
{
"amount": "<string>",
"currency": "<string>"
}
],
"skipped": 123,
"to_review": 123
}
}{
"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>"
}
