POST api/PurchaseOrderDetails/AddPurchaseOrder

Request Information

URI Parameters

None.

Body Parameters

PurchaseOrder
NameDescriptionTypeAdditional information
POID

integer

None.

PODate

date

None.

PersonID

integer

None.

Purchaser

string

None.

VendorID

integer

None.

VendorName

string

None.

VendorAddressID

integer

None.

VendorAddress

string

None.

ApproverID

integer

None.

Approver

string

None.

Note

string

None.

ShipperID

integer

None.

ShipperName

string

None.

ShipperAddressID

integer

None.

ShipperAddress

string

None.

DateEntered

date

None.

EnteredByID

integer

None.

DateUpdated

date

None.

UpdatedByID

integer

None.

IsActive

boolean

None.

RawPOXMLData

string

None.

RawCOMMXMLData

string

None.

StartPODate

date

None.

EndPODate

date

None.

ORDERCOMMODITY

Collection of ORDERCOMMODITY

None.

Request Formats

application/json, text/json

Sample:
{
  "POID": 1,
  "PODate": "2025-10-25T14:36:36.7409206-07:00",
  "PersonID": 1,
  "Purchaser": "sample string 1",
  "VendorID": 1,
  "VendorName": "sample string 2",
  "VendorAddressID": 1,
  "VendorAddress": "sample string 3",
  "ApproverID": 1,
  "Approver": "sample string 4",
  "Note": "sample string 5",
  "ShipperID": 1,
  "ShipperName": "sample string 6",
  "ShipperAddressID": 1,
  "ShipperAddress": "sample string 7",
  "DateEntered": "2025-10-25T14:36:36.7409206-07:00",
  "EnteredByID": 1,
  "DateUpdated": "2025-10-25T14:36:36.7409206-07:00",
  "UpdatedByID": 1,
  "IsActive": true,
  "RawPOXMLData": "sample string 8",
  "RawCOMMXMLData": "sample string 9",
  "StartPODate": "2025-10-25T14:36:36.7409206-07:00",
  "EndPODate": "2025-10-25T14:36:36.7409206-07:00",
  "ORDERCOMMODITY": [
    {
      "OrderCommodityID": 1,
      "OrderID": 1,
      "CommodityID": 1,
      "CommodityName": "sample string 1",
      "Quantity": 1,
      "QuantityTypeID": 1,
      "QuantityTypeName": "sample string 2",
      "UnitPrice": 1.0,
      "TotalAmount": 1.0,
      "TaxPer": 1.0,
      "TaxAmount": 1.0,
      "ShippingAmount": 1,
      "GrandTotal": "sample string 3",
      "Weight": 1.0,
      "AsWeight": 1.0,
      "TruckQuantityTypeID": 1,
      "DeclaredValue": 1.0,
      "DateEntered": "2025-10-25T14:36:36.7409206-07:00",
      "EnteredByID": 1,
      "DateUpdated": "2025-10-25T14:36:36.7409206-07:00",
      "UpdatedByID": 1,
      "IsActive": true
    },
    {
      "OrderCommodityID": 1,
      "OrderID": 1,
      "CommodityID": 1,
      "CommodityName": "sample string 1",
      "Quantity": 1,
      "QuantityTypeID": 1,
      "QuantityTypeName": "sample string 2",
      "UnitPrice": 1.0,
      "TotalAmount": 1.0,
      "TaxPer": 1.0,
      "TaxAmount": 1.0,
      "ShippingAmount": 1,
      "GrandTotal": "sample string 3",
      "Weight": 1.0,
      "AsWeight": 1.0,
      "TruckQuantityTypeID": 1,
      "DeclaredValue": 1.0,
      "DateEntered": "2025-10-25T14:36:36.7409206-07:00",
      "EnteredByID": 1,
      "DateUpdated": "2025-10-25T14:36:36.7409206-07:00",
      "UpdatedByID": 1,
      "IsActive": true
    }
  ]
}

application/xml, text/xml

Sample:
<PurchaseOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BKS.CTMS.MODEL">
  <Approver>sample string 4</Approver>
  <ApproverID>1</ApproverID>
  <DateEntered>2025-10-25T14:36:36.7409206-07:00</DateEntered>
  <DateUpdated>2025-10-25T14:36:36.7409206-07:00</DateUpdated>
  <EndPODate>2025-10-25T14:36:36.7409206-07:00</EndPODate>
  <EnteredByID>1</EnteredByID>
  <IsActive>true</IsActive>
  <Note>sample string 5</Note>
  <ORDERCOMMODITY>
    <ORDERCOMMODITY>
      <AsWeight>1</AsWeight>
      <CommodityID>1</CommodityID>
      <CommodityName>sample string 1</CommodityName>
      <DateEntered>2025-10-25T14:36:36.7409206-07:00</DateEntered>
      <DateUpdated>2025-10-25T14:36:36.7409206-07:00</DateUpdated>
      <DeclaredValue>1</DeclaredValue>
      <EnteredByID>1</EnteredByID>
      <GrandTotal>sample string 3</GrandTotal>
      <IsActive>true</IsActive>
      <OrderCommodityID>1</OrderCommodityID>
      <OrderID>1</OrderID>
      <Quantity>1</Quantity>
      <QuantityTypeID>1</QuantityTypeID>
      <QuantityTypeName>sample string 2</QuantityTypeName>
      <ShippingAmount>1</ShippingAmount>
      <TaxAmount>1</TaxAmount>
      <TaxPer>1</TaxPer>
      <TotalAmount>1</TotalAmount>
      <TruckQuantityTypeID>1</TruckQuantityTypeID>
      <UnitPrice>1</UnitPrice>
      <UpdatedByID>1</UpdatedByID>
      <Weight>1</Weight>
    </ORDERCOMMODITY>
    <ORDERCOMMODITY>
      <AsWeight>1</AsWeight>
      <CommodityID>1</CommodityID>
      <CommodityName>sample string 1</CommodityName>
      <DateEntered>2025-10-25T14:36:36.7409206-07:00</DateEntered>
      <DateUpdated>2025-10-25T14:36:36.7409206-07:00</DateUpdated>
      <DeclaredValue>1</DeclaredValue>
      <EnteredByID>1</EnteredByID>
      <GrandTotal>sample string 3</GrandTotal>
      <IsActive>true</IsActive>
      <OrderCommodityID>1</OrderCommodityID>
      <OrderID>1</OrderID>
      <Quantity>1</Quantity>
      <QuantityTypeID>1</QuantityTypeID>
      <QuantityTypeName>sample string 2</QuantityTypeName>
      <ShippingAmount>1</ShippingAmount>
      <TaxAmount>1</TaxAmount>
      <TaxPer>1</TaxPer>
      <TotalAmount>1</TotalAmount>
      <TruckQuantityTypeID>1</TruckQuantityTypeID>
      <UnitPrice>1</UnitPrice>
      <UpdatedByID>1</UpdatedByID>
      <Weight>1</Weight>
    </ORDERCOMMODITY>
  </ORDERCOMMODITY>
  <PODate>2025-10-25T14:36:36.7409206-07:00</PODate>
  <POID>1</POID>
  <PersonID>1</PersonID>
  <Purchaser>sample string 1</Purchaser>
  <RawCOMMXMLData>sample string 9</RawCOMMXMLData>
  <RawPOXMLData>sample string 8</RawPOXMLData>
  <ShipperAddress>sample string 7</ShipperAddress>
  <ShipperAddressID>1</ShipperAddressID>
  <ShipperID>1</ShipperID>
  <ShipperName>sample string 6</ShipperName>
  <StartPODate>2025-10-25T14:36:36.7409206-07:00</StartPODate>
  <UpdatedByID>1</UpdatedByID>
  <VendorAddress>sample string 3</VendorAddress>
  <VendorAddressID>1</VendorAddressID>
  <VendorID>1</VendorID>
  <VendorName>sample string 2</VendorName>
</PurchaseOrder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>