> ## Documentation Index > Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt > Use this file to discover all available pages before exploring further. # Vendor Invoice by ID > Retrieves a specified invoice **Security** The requesting user must have the following permission to retrieve a vendor invoice: - Food → AP Invoices → View AP Invoices Within Food This endpoint also returns AP credit memo records. To receive those, the user additionally needs: - Food → AP Credit Memos → View AP Credit Memos Within Food ## OpenAPI ````json GET /public/v1/inventory/invoices/{id} { "openapi": "3.0.1", "info": { "title": "R365 Public API", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/inventory/invoices/{id}": { "get": { "tags": [ "inventory" ], "summary": "Vendor Invoice by ID", "description": "Retrieves a specified invoice\n\n**Security**\n\nThe requesting user must have the following permission to retrieve a vendor invoice:\n\n- Food → AP Invoices → View AP Invoices Within Food\n\nThis endpoint also returns AP credit memo records. To receive those, the user additionally needs:\n\n- Food → AP Credit Memos → View AP Credit Memos Within Food", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "id", "in": "path", "description": "Identifier of the invoice", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "invoice entity", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AccountsPayableInvoiceOrCreditMemo" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AccountsPayableInvoiceOrCreditMemo" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AccountsPayableInvoiceOrCreditMemo" } } } }, "400": { "description": "Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range." }, "401": { "description": "Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant." }, "403": { "description": "Forbidden — the caller lacks the permission required for this operation." }, "404": { "description": "Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired." }, "409": { "description": "Conflict — the request conflicts with the current state of the resource and cannot be applied." }, "422": { "description": "Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid." }, "429": { "description": "Too Many Requests — the caller has exceeded the rate limit; retry after a short delay." }, "500": { "description": "Internal Server Error — an unexpected error occurred while processing the request." } } } } }, "components": { "parameters": { "TenantId": { "name": "x-r365-context-tenant-id", "in": "header", "required": true, "description": "Identifies the R365 tenant the request applies to. Required on every request.", "schema": { "type": "string" } } }, "schemas": { "AccountsPayableInvoiceOrCreditMemo": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier for the invoice.", "format": "uuid" }, "transactionType": { "type": "string", "description": "The type of transaction, either Invoice or Credit Memo.", "nullable": true }, "name": { "type": "string", "description": "The invoice name.", "nullable": true }, "number": { "type": "string", "description": "The invoice number.", "nullable": true }, "amount": { "type": "number", "description": "The total amount of the invoice.", "format": "double" }, "isPaid": { "type": "boolean", "description": "Indicates whether the invoice has been paid.", "nullable": true }, "creditExpected": { "type": "number", "description": "The amount of credit expected on the invoice.", "format": "double", "nullable": true }, "overhead": { "type": "number", "description": "The amount of overhead to be applied to invoice detail rows.", "format": "double", "nullable": true }, "comment": { "type": "string", "description": "A user comment for the invoice.", "nullable": true }, "status": { "type": "string", "description": "The approval status of the invoice.", "nullable": true }, "date": { "type": "string", "description": "The date of the invoice.", "format": "date" }, "documentDate": { "type": "string", "description": "The document date of the invoice.", "format": "date" }, "dueDate": { "type": "string", "description": "The due date of the invoice.", "format": "date", "nullable": true }, "legalEntity": { "$ref": "#/components/schemas/LegalEntitiesLegalEntityReference" }, "location": { "$ref": "#/components/schemas/InventoryLocationReference" }, "vendor": { "$ref": "#/components/schemas/VendorReference" }, "purchaseOrder": { "$ref": "#/components/schemas/PurchaseOrderReference" }, "createdBy": { "$ref": "#/components/schemas/GlAccountUserReference", "description": "User who created the accounts payable invoice or credit memo." }, "createdOn": { "type": "string", "description": "The date the invoice was created.", "format": "date-time", "nullable": true }, "modifiedBy": { "$ref": "#/components/schemas/GlAccountUserReference", "description": "User who last modified the accounts payable invoice or credit memo." }, "modifiedOn": { "type": "string", "description": "The date the invoice was last modified.", "format": "date-time", "nullable": true }, "approvedBy": { "$ref": "#/components/schemas/GlAccountUserReference", "description": "User who approved the accounts payable invoice or credit memo." }, "approvedOn": { "type": "string", "description": "The date the invoice was approved.", "format": "date-time", "nullable": true }, "completedBy": { "$ref": "#/components/schemas/GlAccountUserReference", "description": "User who completed the accounts payable invoice or credit memo." }, "completedOn": { "type": "string", "description": "The date the invoice was completed.", "format": "date-time", "nullable": true }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/AccountsPayableInvoiceOrCreditMemoDetail" }, "description": "The invoice line item details.", "nullable": true } }, "additionalProperties": false, "description": "An Accounts Payable Invoice or Credit Memo." }, "LegalEntitiesLegalEntityReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the legal entity." }, "name": { "type": "string", "nullable": true, "description": "Display name of the legal entity." } }, "additionalProperties": false, "description": "A reference to a legal entity." }, "InventoryLocationReference": { "type": "object", "properties": { "id": { "type": "string", "description": "The id of the location.", "format": "uuid" }, "name": { "type": "string", "description": "The name of the location.", "nullable": true }, "number": { "type": "string", "description": "The location number.", "nullable": true } }, "additionalProperties": false, "description": "Represents a reference to a location." }, "VendorReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the vendor." }, "name": { "type": "string", "nullable": true, "description": "Display name of the vendor." }, "number": { "type": "string", "nullable": true, "description": "Number assigned to the vendor." } }, "additionalProperties": false, "description": "A reference to a vendor." }, "PurchaseOrderReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the purchase order." }, "name": { "type": "string", "nullable": true, "description": "Display name of the purchase order." } }, "additionalProperties": false, "description": "A reference to a purchase order." }, "GlAccountUserReference": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier of the user.", "format": "uuid" }, "name": { "type": "string", "description": "The name of the user.", "nullable": true } }, "additionalProperties": false, "description": "A reference to a user." }, "AccountsPayableInvoiceOrCreditMemoDetail": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier for the detail.", "format": "uuid" }, "comment": { "type": "string", "description": "The detail comment.", "nullable": true }, "eachAmount": { "type": "number", "description": "The amount of each item in the line item.", "format": "double" }, "overhead": { "type": "number", "description": "Overhead [ex: freight] that should be added to the line item total.", "format": "double" }, "generalLedgerAccount": { "$ref": "#/components/schemas/GeneralLedgerAccountReference" }, "item": { "$ref": "#/components/schemas/PublicItemReference" }, "location": { "$ref": "#/components/schemas/InventoryLocationReference" }, "quantity": { "type": "number", "description": "The quantity of the item.", "format": "double" }, "quantityOrdered": { "type": "number", "description": "The quantity ordered for this line item, if linked to a purchase order. This is defined\r\nin the same unit of measure as the quantity field for what was received on this invoice.", "format": "double", "nullable": true }, "total": { "type": "number", "description": "The total amount of the line item.", "format": "double" }, "unitOfMeasure": { "$ref": "#/components/schemas/InventoryUnitOfMeasureReference" }, "vendorItem": { "$ref": "#/components/schemas/VendorItemReference" } }, "additionalProperties": false, "description": "A detail for an Accounts Payable Invoice or Credit Memo." }, "GeneralLedgerAccountReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the general ledger account." }, "name": { "type": "string", "nullable": true, "description": "Display name of the general ledger account." }, "number": { "type": "string", "nullable": true, "description": "Number assigned to the general ledger account." } }, "additionalProperties": false, "description": "A reference to a General Ledger Account." }, "PublicItemReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the public item." }, "name": { "type": "string", "nullable": true, "description": "Display name of the public item." }, "number": { "type": "string", "nullable": true, "description": "Number assigned to the public item." }, "itemType": { "type": "string", "nullable": true } }, "additionalProperties": false, "description": "A reference to an item." }, "InventoryUnitOfMeasureReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the unit of measure." }, "name": { "type": "string", "nullable": true, "description": "Display name of the unit of measure." } }, "additionalProperties": false, "description": "A reference to a unit of measure." }, "VendorItemReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "nullable": true, "description": "Unique identifier of the vendor item." }, "name": { "type": "string", "nullable": true, "description": "Display name of the vendor item." }, "number": { "type": "string", "nullable": true, "description": "Number assigned to the vendor item." }, "brandItemNumber": { "type": "string", "nullable": true }, "purchaseUnitOfMeasure": { "$ref": "#/components/schemas/InventoryUnitOfMeasureReference" }, "splitUnitOfMeasure": { "$ref": "#/components/schemas/InventoryUnitOfMeasureReference" } }, "additionalProperties": false, "description": "A reference to a vendor item." } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````