> ## 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. # Purchase Order by ID > Retrieves a specified purchase order **Security** The requesting user must have the following permission to retrieve a purchase order: - Food → Purchasing → View Purchase Orders ## OpenAPI ````json GET /public/v1/inventory/purchase-orders/{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/purchase-orders/{id}": { "get": { "tags": [ "inventory" ], "summary": "Purchase Order by ID", "description": "Retrieves a specified purchase order\n\n**Security**\n\nThe requesting user must have the following permission to retrieve a purchase order:\n\n- Food → Purchasing → View Purchase Orders", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "id", "in": "path", "description": "Identifier of the purchase order", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "purchase order entity", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PurchaseOrder" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PurchaseOrder" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PurchaseOrder" } } } }, "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": { "PurchaseOrder": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier of the Purchase Order.", "format": "uuid" }, "number": { "type": "string", "description": "Purchase Order Number.", "nullable": true }, "template": { "$ref": "#/components/schemas/PurchaseOrderTemplateReference" }, "location": { "$ref": "#/components/schemas/InventoryLocationReference" }, "vendor": { "$ref": "#/components/schemas/VendorReference" }, "orderDate": { "type": "string", "description": "Order Date.", "format": "date" }, "deliveryDate": { "type": "string", "description": "Delivery Date.", "format": "date" }, "status": { "type": "string", "description": "Purchase Order Status.", "nullable": true }, "shipToAddress": { "$ref": "#/components/schemas/Address" }, "comment": { "type": "string", "description": "Comment.", "nullable": true }, "details": { "type": "array", "items": { "$ref": "#/components/schemas/PurchaseOrderDetail" }, "description": "List of Purchase Order Details.", "nullable": true }, "totalAmount": { "type": "number", "description": "The total amount of the Purchase Order.", "format": "double", "readOnly": true }, "totalQuantity": { "type": "number", "description": "The total ordered item quantity of the Purchase Order.", "format": "double", "readOnly": true }, "createdBy": { "$ref": "#/components/schemas/GlAccountUserReference", "description": "User who created the purchase order." }, "createdOn": { "type": "string", "description": "The date the purchase order was created.", "format": "date-time" }, "modifiedBy": { "$ref": "#/components/schemas/GlAccountUserReference", "description": "User who last modified the purchase order." }, "modifiedOn": { "type": "string", "description": "The date the purchase order was last modified.", "format": "date-time", "nullable": true } }, "additionalProperties": false, "description": "A Purchase Order." }, "PurchaseOrderTemplateReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the purchase order template." }, "name": { "type": "string", "nullable": true, "description": "Display name of the purchase order template." } }, "additionalProperties": false, "description": "A reference to a purchase order template." }, "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." }, "Address": { "type": "object", "properties": { "addressLine1": { "type": "string", "nullable": true }, "addressLine2": { "type": "string", "nullable": true }, "addressLine3": { "type": "string", "nullable": true }, "city": { "type": "string", "nullable": true }, "state": { "type": "string", "nullable": true }, "country": { "type": "string", "nullable": true }, "postalCode": { "type": "string", "nullable": true } }, "additionalProperties": false, "description": "A street or shipping address." }, "PurchaseOrderDetail": { "type": "object", "properties": { "id": { "type": "string", "description": "The unique identifier for the purchase order detail.", "format": "uuid" }, "storageLocationName": { "type": "string", "description": "Storage Location Name.", "nullable": true }, "vendorItem": { "$ref": "#/components/schemas/VendorItemReference" }, "item": { "$ref": "#/components/schemas/PublicItemReference" }, "unitOfMeasure": { "$ref": "#/components/schemas/InventoryUnitOfMeasureReference" }, "quantity": { "type": "number", "description": "Quantity.", "format": "double" }, "total": { "type": "number", "description": "Total.", "format": "double" }, "unitAmount": { "type": "number", "description": "Unit Amount (Vendor Item Price)", "format": "double" }, "itemCategory1": { "$ref": "#/components/schemas/ItemCategoryReference" }, "itemCategory2": { "$ref": "#/components/schemas/ItemCategoryReference" }, "itemCategory3": { "$ref": "#/components/schemas/ItemCategoryReference" }, "comment": { "type": "string", "description": "Optional comment for the item, inherited from the template on order creation.", "nullable": true } }, "additionalProperties": false, "description": "Purchase Order Detail" }, "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." }, "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." }, "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." }, "ItemCategoryReference": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the item category." }, "name": { "type": "string", "nullable": true, "description": "Display name of the item category." } }, "additionalProperties": false, "description": "A reference to an item category." } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````