PUT Api/PurchaseOrders/ReceivePurchaseOrder

Request Information

URI Parameters

None.

Body Parameters

PurchaseOrderVm
NameDescriptionTypeAdditional information
PurchaseOrderId

integer

None.

VendorId

integer

None.

Vendor

string

None.

InventoryCategoryId

integer

None.

InventoryCategory

string

None.

Status

string

None.

ClinicId

integer

None.

Clinic

string

None.

Zone

string

None.

ApprovedBy

string

None.

DateCreated

date

None.

DateCreatedAsString

string

None.

ApprovedOn

date

None.

ApprovedOnAsString

string

None.

ReceivedDate

date

None.

ReceivedDateAsString

string

None.

SentOn

date

None.

SentOnAsString

string

None.

OrderFilledOn

date

None.

ExpectedReceivedDate

date

None.

IsDeclined

boolean

None.

Items

Collection of PurchaseOrderItemVm

None.

SentOnToDisplay

string

None.

ExpectedReceivedDateToDisplay

string

None.

Request Formats

application/json, text/json

Sample:
{
  "purchaseOrderId": 1,
  "vendorId": 2,
  "vendor": "sample string 3",
  "inventoryCategoryId": 1,
  "inventoryCategory": "sample string 4",
  "status": "sample string 5",
  "clinicId": 6,
  "clinic": "sample string 7",
  "zone": "sample string 8",
  "approvedBy": "sample string 9",
  "dateCreated": "2026-05-06T03:48:59.208435+02:00",
  "dateCreatedAsString": "sample string 10",
  "approvedOn": "2026-05-06T03:48:59.208435+02:00",
  "approvedOnAsString": "sample string 11",
  "receivedDate": "2026-05-06T03:48:59.208435+02:00",
  "receivedDateAsString": "sample string 12",
  "sentOn": "2026-05-06T03:48:59.208435+02:00",
  "sentOnAsString": "sample string 13",
  "orderFilledOn": "2026-05-06T03:48:59.208435+02:00",
  "expectedReceivedDate": "2026-05-06T03:48:59.208435+02:00",
  "isDeclined": true,
  "items": [
    {
      "id": 1,
      "purchaseOrderItemId": 2,
      "inventory": "sample string 3",
      "quantity": 4,
      "received": 1,
      "receivedDate": "2026-05-06T03:48:59.208435+02:00",
      "inventoryUnit": "sample string 5"
    },
    {
      "id": 1,
      "purchaseOrderItemId": 2,
      "inventory": "sample string 3",
      "quantity": 4,
      "received": 1,
      "receivedDate": "2026-05-06T03:48:59.208435+02:00",
      "inventoryUnit": "sample string 5"
    }
  ],
  "sentOnToDisplay": "sample string 15",
  "expectedReceivedDateToDisplay": "sample string 16"
}

text/html

Sample:
{"purchaseOrderId":1,"vendorId":2,"vendor":"sample string 3","inventoryCategoryId":1,"inventoryCategory":"sample string 4","status":"sample string 5","clinicId":6,"clinic":"sample string 7","zone":"sample string 8","approvedBy":"sample string 9","dateCreated":"2026-05-06T03:48:59.208435+02:00","dateCreatedAsString":"sample string 10","approvedOn":"2026-05-06T03:48:59.208435+02:00","approvedOnAsString":"sample string 11","receivedDate":"2026-05-06T03:48:59.208435+02:00","receivedDateAsString":"sample string 12","sentOn":"2026-05-06T03:48:59.208435+02:00","sentOnAsString":"sample string 13","orderFilledOn":"2026-05-06T03:48:59.208435+02:00","expectedReceivedDate":"2026-05-06T03:48:59.208435+02:00","isDeclined":true,"items":[{"id":1,"purchaseOrderItemId":2,"inventory":"sample string 3","quantity":4,"received":1,"receivedDate":"2026-05-06T03:48:59.208435+02:00","inventoryUnit":"sample string 5"},{"id":1,"purchaseOrderItemId":2,"inventory":"sample string 3","quantity":4,"received":1,"receivedDate":"2026-05-06T03:48:59.208435+02:00","inventoryUnit":"sample string 5"}],"sentOnToDisplay":"sample string 15","expectedReceivedDateToDisplay":"sample string 16"}

application/xml, text/xml

Sample:
<PurchaseOrderVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrgentCareExtra.ViewModels.ViewModels.PurchaseOrder">
  <ApprovedBy>sample string 9</ApprovedBy>
  <ApprovedOn>2026-05-06T03:48:59.208435+02:00</ApprovedOn>
  <ApprovedOnAsString>sample string 11</ApprovedOnAsString>
  <Clinic>sample string 7</Clinic>
  <ClinicId>6</ClinicId>
  <DateCreated>2026-05-06T03:48:59.208435+02:00</DateCreated>
  <DateCreatedAsString>sample string 10</DateCreatedAsString>
  <ExpectedReceivedDate>2026-05-06T03:48:59.208435+02:00</ExpectedReceivedDate>
  <ExpectedReceivedDateToDisplay>sample string 16</ExpectedReceivedDateToDisplay>
  <InventoryCategory>sample string 4</InventoryCategory>
  <InventoryCategoryId>1</InventoryCategoryId>
  <IsDeclined>true</IsDeclined>
  <Items>
    <PurchaseOrderItemVm>
      <Id>1</Id>
      <Inventory>sample string 3</Inventory>
      <InventoryUnit>sample string 5</InventoryUnit>
      <PurchaseOrderItemId>2</PurchaseOrderItemId>
      <Quantity>4</Quantity>
      <Received>1</Received>
      <ReceivedDate>2026-05-06T03:48:59.208435+02:00</ReceivedDate>
    </PurchaseOrderItemVm>
    <PurchaseOrderItemVm>
      <Id>1</Id>
      <Inventory>sample string 3</Inventory>
      <InventoryUnit>sample string 5</InventoryUnit>
      <PurchaseOrderItemId>2</PurchaseOrderItemId>
      <Quantity>4</Quantity>
      <Received>1</Received>
      <ReceivedDate>2026-05-06T03:48:59.208435+02:00</ReceivedDate>
    </PurchaseOrderItemVm>
  </Items>
  <OrderFilledOn>2026-05-06T03:48:59.208435+02:00</OrderFilledOn>
  <PurchaseOrderId>1</PurchaseOrderId>
  <ReceivedDate>2026-05-06T03:48:59.208435+02:00</ReceivedDate>
  <ReceivedDateAsString>sample string 12</ReceivedDateAsString>
  <SentOn>2026-05-06T03:48:59.208435+02:00</SentOn>
  <SentOnAsString>sample string 13</SentOnAsString>
  <SentOnToDisplay>sample string 15</SentOnToDisplay>
  <Status>sample string 5</Status>
  <Vendor>sample string 3</Vendor>
  <VendorId>2</VendorId>
  <Zone>sample string 8</Zone>
</PurchaseOrderVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PurchaseOrderVm'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.