cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/collections/reminders/{id} \
--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_reminder_draft(id="<id>")
# 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.getReminderDraft("<id>");
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Collections.GetReminderDraft(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.InvoiceReminderResponse != nil {
// handle response
}
}{
"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"
}{
"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 reminder draft
Use when you need the reminder of one overdue invoice. The id is the invoice id; 404 when the invoice is not open and overdue.
GET
/
collections
/
reminders
/
{id}
cURL
curl --request GET \
--url https://us.api.flexprice.io/v1/collections/reminders/{id} \
--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_reminder_draft(id="<id>")
# 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.getReminderDraft("<id>");
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Collections.GetReminderDraft(ctx, "<id>")
if err != nil {
log.Fatal(err)
}
if res.InvoiceReminderResponse != nil {
// handle response
}
}{
"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"
}{
"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>"
}Response
OK

