curl --request POST \
--url https://us.api.flexprice.io/v1/invoices/{id}/recalculate \
--header 'x-api-key: <api-key>'{
"message": "<string>",
"run_id": "<string>",
"workflow_id": "<string>"
}Starts an async workflow that creates a fresh replacement invoice for a voided SUBSCRIPTION invoice (same billing period). Returns workflow_id and run_id; poll workflow status or GET the new invoice via recalculated_invoice_id after completion.
curl --request POST \
--url https://us.api.flexprice.io/v1/invoices/{id}/recalculate \
--header 'x-api-key: <api-key>'{
"message": "<string>",
"run_id": "<string>",
"workflow_id": "<string>"
}