# Updates a staged invoice with the specified ID. This endpoint requires the user to be authenticated and have the Api.Helpers.YdPolicyName.atLeast377 policy. The updated staged invoice is returned in the response body if the operation is successful. If the staged invoice was not modified, a 304 Not Modified status code is returned. If a validation error occurs, a 422 Unprocessable Entity status code is returned. If the database schema version is not version 377 or greater, a 403 Forbidden status code is returned. Endpoint: PUT /invoices/staged/{stagedInvoiceId} Version: v3.0: 3.26.2.4 Security: Auth API User Token ## Path parameters: - `stagedInvoiceId` (string, required) The ID of the staged invoice to update. ## Request fields (application/json-patch+json): - `status` (string,null) Sets the status of the invoice. The status can be one of the following values: - Initialized - New - InProcess - ConvertedOpen – ConvertedCommitted - Removed - Unknown - Failed - `storeMatch` (string,null) Sets the store match of the invoice. (what will be used to match to match to a yellow dog store) - `vendorMatch` (string,null) Sets the vendor match of the invoice. (what will be used to match to match to a yellow dog vendor) - `code` (string,null) Sets the code (AKA, Invoice Number) of the invoice. - `description` (string,null) Sets the description of the invoice. - `reference` (string,null) Sets the reference of the invoice. - `instructions` (string,null) Sets the instructions of the invoice. - `notes` (string,null) Sets the notes of the invoice. - `receivedAt` (string,null) Sets when the invoice was received. - `invoicedAt` (string,null) Sets when the invoice was invoiced. - `dueAt` (string,null) Sets when the invoice is due. - `totalAmount` (number) Sets the total amount of the invoice. - `customerNumber` (string,null) sets the customer number from the invoice - `currencyCode` (string,null) Sets the currency Code - `purchaseOrderNumber` (string,null) Sets the purchase order number ## Response 200 fields (application/json): - `id` (string) - `creationKey` (string,null) ## Response 500 fields (application/json): - `message` (string,null) - `errors` (array,null) - `errors.extensions` (string,null) ## Response 304 fields ## Response 401 fields ## Response 403 fields ## Response 422 fields ## Response 429 fields