Correct E-Invoice Conversion
PATCH/einvoice/conversions/:conversion_id
Applies corrections and confirmations and checks the invoice again before it answers.
- revision: the
revisionyou read last. It goes up with every change to the conversion; if it changed since, the request is a409 revision_conflict. - data: a JSON merge patch (RFC 7396) of the invoice. In an array of objects, an element with a known
keyis changed, one with an unknown key or no key is appended, and"_delete": trueremoves one;nullremoves a value. Values set here get originclientand count as confirmed. - confirm: JSON pointers whose current value you confirm, e.g. a check point. A pointer without a value is a
400 invalid_datanaming its index (body.confirm.0). - format: switches the output format and with it the checks.
- reapply_config: applies the project's current seller config again.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
The conversion, checked again, with its new revision
The body is malformed, or the invoice values do not fit the schema (code: invalid_data, every failure in errors)
Unauthorized
Forbidden
No such conversion in the API key's project, or e-invoice conversion is not enabled for the project (code: einvoice_not_enabled)
The conversion's status or revision does not allow the request; code is one of revision_conflict, conversion_released, conversion_busy, conversion_failed