Execute invoice modification
Changed onExecute a modification on a draft or finalized invoice. Supports line item changes: add (bulk), update (one line item per call; the edit is versioned, so the line item id changes), and remove (bulk, soft delete). Totals are recalculated from the remaining line items; a manual edit marks the invoice as manually edited, which disables recompute. Modifying a FINALIZED invoice voids it and recreates it as a draft copy carrying all current data (description, billing period, due date, metadata, line items); the modification lands on the copy and the response returns the new draft — chain subsequent calls to the returned invoice id; a call that still targets the voided original is rejected with an error naming the replacement.
Request
- Base URLhttps://us.api.flexprice.io/v1
- URLhttps://us.api.flexprice.io/v1/invoices/{id}/modify/execute
- AuthAPI key in header x-api-key
Path parameters
Invoice ID
Request body
Response
OK
Changes
- info
added the optional property
/to the response with the status
- info
- warning
added the new
END_OF_MONTHenum value to the//response property for the response status - warning
added the new
END_OF_NEXT_MONTHenum value to the//response property for the response status - warning
added the new
credit_noteenum value to the///response property for the response status - warning
added the new
not_collectingenum value to the/response property for the response status - warning
added the new
not_collectingenum value to the///response property for the response status - warning
added the new
not_subject_to_taxenum value to the/response property for the response status - warning
added the new
not_subject_to_taxenum value to the///response property for the response status - warning
added the new
not_supportedenum value to the/response property for the response status - warning
added the new
not_supportedenum value to the///response property for the response status - warning
added the new
reverse_chargeenum value to the/response property for the response status - warning
added the new
reverse_chargeenum value to the///response 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
- warning