# Invoices A Purchasing document ## Create a Staged Invoice via a file upload - [POST /invoices/ocr](https://developer.yellowdogsoftware.com/fetch/api/invoices/post-invoices-ocr.md) ## Creates new staged invoice lines for a given staged invoice. - [POST /invoices/staged/{stagedInvoiceId}/lines](https://developer.yellowdogsoftware.com/fetch/api/invoices/post-invoices-staged-byid-lines.md) ## Find the original document for a staged invoice with the specified ID. - [GET /invoices/staged/{stagedInvoiceId}/original-document](https://developer.yellowdogsoftware.com/fetch/api/invoices/get-invoices-staged-byid-original-document.md) ## Updates a staged invoice with the specified ID. - [PUT /invoices/staged/{stagedInvoiceId}](https://developer.yellowdogsoftware.com/fetch/api/invoices/put-invoices-staged-byid.md): 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. ## Updates a staged invoice with the specified ID. - [PATCH /invoices/staged/{stagedInvoiceId}](https://developer.yellowdogsoftware.com/fetch/api/invoices/patch-invoices-staged-byid.md)