# Update an invoice to a given status in relation to an external finance system Update the external identifier record linked to a specific sales invoice; the updateable fields are export status, external ID and exported date time. This operation is essential for synchronizing the invoice export status with external financial systems, ensuring that the invoice export status is maintained in line with the integrated external system. The request body should include the external ID, export status and the exported date. If the specified sales invoice ID does not exist, a 404 Not Found error will be returned. If the invoice is not in the 'POSTED' status, a 400 Bad Request error will be returned. In case of an unexpected system error, a 500 Internal Server Error will be triggered. Endpoint: PATCH /api/v3/salesInvoices/{id}/updateSalesInvoiceExportStatus Version: 3.0.9 Security: OAuth2 ## Path parameters: - `id` (integer, required) ID of the sales invoice to update the export status of Example: 123 ## Request fields (application/json): - `externalId` (string, required) External ID of the financial update Example: "ext-12345" - `exportedDate` (string, required) Date when the financial update was exported - `exportStatus` (string, required) Status of the export Enum: "CREATED", "EXPORTED", "FAILED", "IMPORTED", "PENDING", "SENT", "SKIPPED" - `organisationSettingsId` (integer, required) The organisation id Example: 1 ## Response 200 fields