curl --request PUT \
--url https://us.api.flexprice.io/v1/collections/reminders/update/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"body": "<string>",
"expected_body": "<string>",
"expected_subject": "<string>",
"status_reason": "<string>",
"subject": "<string>",
"tone": "<string>"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.collections.update_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.updateReminderDraft("<id>", {});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Collections.UpdateReminderDraft(ctx, "<id>", types.UpdateReminderRequest{})
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>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Update reminder
Use when you need to approve, hold, skip or reopen (status pending) a reminder, edit its tone, subject or body, or both at once. The request decides: status is pending, approved, held or skipped (omit it to keep the current one); status_reason is required for held and optional for skipped. A tone change rewrites subject and body from that tone’s template, then a subject or body in the same request is applied on top. Allowed moves: pending to approved, held or skipped; held to pending, approved or skipped; approved or skipped to pending. Mail can only be edited while pending or held. Where emails are on for the environment, approving queues the email and fails with 400 when the customer has no email address (customer_email is empty and no contact person lists invoice_payment_reminder in email_types) or the tenant has no reply-to email; where emails are off, approving only records the decision.
curl --request PUT \
--url https://us.api.flexprice.io/v1/collections/reminders/update/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"body": "<string>",
"expected_body": "<string>",
"expected_subject": "<string>",
"status_reason": "<string>",
"subject": "<string>",
"tone": "<string>"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.collections.update_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.updateReminderDraft("<id>", {});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Collections.UpdateReminderDraft(ctx, "<id>", types.UpdateReminderRequest{})
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>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Body
Target status and/or mail changes
Response
OK

