Recalculate draft invoice (v2)
Changed onRecalculates a draft SUBSCRIPTION invoice in-place (replaces line items, reapplies credits/coupons/taxes). Use when subscription or usage data changed before finalizing.
Request
- Base URLhttps://us.api.flexprice.io/v1
- URLhttps://us.api.flexprice.io/v1/invoices/{id}/recalculate-v2
- AuthAPI key in header x-api-key
Path parameters
Invoice ID
Query parameters
Whether to finalize the invoice after recalculation (default: true)
Response
OK
Changes
- warning
removed the optional property
/from the response with the status - warning
added the new
VOIDEDenum value to theresponse property for the response status - info
added the optional property
///to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
////to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- warning
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
added the new
too_many_requestsenum value to theresponse property for the response status - warning
added the new
too_many_requestsenum value to theresponse property for the response status - warning
added the new
too_many_requestsenum value to theresponse property for the response status - info
added the optional property
to the response with the status
- warning