POST PurchaseOrder/PostPurchaseOrder

Creates a new Purchase Order

Request Information

URI Parameters

Body Parameters

The Purchase Order object used to create a new entry.

ClsPurchaseOrderAdd
NameDescriptionTypeAdditional Information
CurrentLocationId

The current location used for auto-numbering and other preferences

string

Required

Max length: 6

VendorId

The vendor of the purchase order

string

Required

Max length: 10

PurchaseOrderNumber

The purchase order number - required if not set to auto-number

string

Max length: 20

PurchaseOrderDate

The date of the purchase order

date

Required

Prepaid

Indication if the purchase order is prepaid or not

boolean
OrderInvoiced

Indication if the purchase order is considered filled or not

boolean
DirectShipCustomerId

The Customer ID used for the direct shipped delivery ticket

string

Max length: 6

Comments

Comments

string

Max length: 100

Notes

Notes

string

Max length: 255

CompanyWide

Is the purchase order flagged as company wide or not

boolean
FreightVendorId

The ID of the freight vendor

string

Max length: 10

IfPaidBy1

Discount if paid by date 1

date
DeductionPercent1

Discount percent if paid by 1

decimal number

Max of 2 decimal places

DeductionAmount1

Discount dollars if paid by 1

decimal number

Max of 2 decimal places

IfPaidBy2

Discount if paid by date 2

date
DeductionPercent2

Discount percent if paid by 2

decimal number

Max of 2 decimal places

DeductionAmount2

Discount dollars if paid by 2

decimal number

Max of 2 decimal places

IfPaidBy3

Discount if paid by date 3

date
DeductionPercent3

Discount percent if paid by 3

decimal number

Max of 2 decimal places

DeductionAmount3

Discount dollars if paid by 3

decimal number

Max of 2 decimal places

IfPaidBy4

Discount if paid by date 4

date
DeductionPercent4

Discount percent if paid by 4

decimal number

Max of 2 decimal places

DeductionAmount4

Discount dollars if paid by 4

decimal number

Max of 2 decimal places

IfPaidBy5

Discount if paid by date 5

date
DeductionPercent5

Discount percent if paid by 5

decimal number

Max of 2 decimal places

DeductionAmount5

Discount dollars if paid by 5

decimal number

Max of 2 decimal places

IfPaidBy6

Discount if paid by date 6

date
DeductionPercent6

Discount percent if paid by 6

decimal number

Max of 2 decimal places

DeductionAmount6

Discount dollars if paid by 6

decimal number

Max of 2 decimal places

DiscountGenLedgAcct

The discount general ledger account

string

Max length: 10

TermsId

The discount terms id

string

Max length: 15

DirectShipped

Indication on if the purchase order is direct shipped

boolean
StartDate

Start Date

date
ExpireDate

Expiration Date

date
Contract

Contract

string

Max length: 20

Generic

Indication of is the purchase order a generic prepaid one

boolean
DirectShippedName

The name of where the product is to be shipped

string

Max length: 75

DirectShippedAddress1

The address1 of where the product is to be shipped

string

Max length: 50

DirectShippedAddress2

The address2 of where the product is to be shipped

string

Max length: 50

DirectShippedCity

The city of where the product is to be shipped

string

Max length: 25

DirectShippedState

The state of where the product is to be shipped

string

Max length: 2

DirectShippedZip

The zipcode of where the product is to be shipped

string

Max length: 10

PurchaseOrderType

The type of purchase order

string

Max length: 20

DeliveryType

Valid options are "Delivery" and "Pickup". If blank, will default to "Delivery"

string

Max length: 20

PickDelvLocationName

The pickup / delivered location name

string

Max length: 50

DateRequested

The date requested

date
Gln

The global location number

string

Max length: 13

IncoTerm

Inco Terms ID

string

Max length: 3

XRef

A cross reference value

string

Max length: 40

ContactName

The name of the contract person

string

Max length: 50

ContactPhone

The phone number of the contact

string

Max length: 50

DeliveryInstructions

Delivery Instructions

string

Max length: 256

EstimatedDeliveryDate

Estimated Date of Delivery

date
PurchaseOrderMessageGuid

The purchase order message that relates to this purchase order

globally unique identifier
Products

The list of products for the purchase order

Collection of ClsPurchaseOrderAddProduct

Required

List cannot be empty

ApBillInfos

List of date and amount due for the AP Bills that will be created for prepaid purchase orders

Collection of ClsPurchaseOrderAddApBillInfo
FederalPermit

Federal permit of the DirectShipCustomerId for restricted products

string
StatePermits

Collection of clsPoPermitAdd

Request Formats

application/json, text/json

Sample:
{
  "FederalPermit": "sample string 1",
  "StatePermits": [
    {
      "PermitId": "sample string 1"
    },
    {
      "PermitId": "sample string 1"
    }
  ],
  "CurrentLocationId": "sample string 3",
  "VendorId": "sample string 4",
  "PurchaseOrderNumber": "sample string 5",
  "PurchaseOrderDate": "2025-02-20T19:33:53.0478135+00:00",
  "Prepaid": true,
  "OrderInvoiced": true,
  "DirectShipCustomerId": "sample string 8",
  "Comments": "sample string 9",
  "Notes": "sample string 10",
  "CompanyWide": true,
  "FreightVendorId": "sample string 12",
  "IfPaidBy1": "2025-02-20T19:33:53.0478135+00:00",
  "DeductionPercent1": 13.1,
  "DeductionAmount1": 14.1,
  "IfPaidBy2": "2025-02-20T19:33:53.0478135+00:00",
  "DeductionPercent2": 15.1,
  "DeductionAmount2": 16.1,
  "IfPaidBy3": "2025-02-20T19:33:53.0478135+00:00",
  "DeductionPercent3": 17.1,
  "DeductionAmount3": 18.1,
  "IfPaidBy4": "2025-02-20T19:33:53.0478135+00:00",
  "DeductionPercent4": 19.1,
  "DeductionAmount4": 20.1,
  "IfPaidBy5": "2025-02-20T19:33:53.0478135+00:00",
  "DeductionPercent5": 21.1,
  "DeductionAmount5": 22.1,
  "IfPaidBy6": "2025-02-20T19:33:53.0478135+00:00",
  "DeductionPercent6": 23.1,
  "DeductionAmount6": 24.1,
  "DiscountGenLedgAcct": "sample string 25",
  "TermsId": "sample string 26",
  "DirectShipped": true,
  "StartDate": "2025-02-20T19:33:53.0488126+00:00",
  "ExpireDate": "2025-02-20T19:33:53.0488126+00:00",
  "Contract": "sample string 28",
  "Generic": true,
  "DirectShippedName": "sample string 30",
  "DirectShippedAddress1": "sample string 31",
  "DirectShippedAddress2": "sample string 32",
  "DirectShippedCity": "sample string 33",
  "DirectShippedState": "sample string 34",
  "DirectShippedZip": "sample string 35",
  "PurchaseOrderType": "sample string 36",
  "DeliveryType": "sample string 37",
  "PickDelvLocationName": "sample string 38",
  "DateRequested": "2025-02-20T19:33:53.0488126+00:00",
  "Gln": "sample string 39",
  "IncoTerm": "sample string 40",
  "XRef": "sample string 41",
  "ContactName": "sample string 42",
  "ContactPhone": "sample string 43",
  "DeliveryInstructions": "sample string 44",
  "EstimatedDeliveryDate": "2025-02-20T19:33:53.0488126+00:00",
  "PurchaseOrderMessageGuid": "4404a055-1206-46d7-9c06-622549932d4f",
  "Products": [
    {
      "DeptId": "sample string 1",
      "ProdId": "sample string 2",
      "ProductDescription": "sample string 3",
      "Ordered": 4.1,
      "PricePerUnit": 5.1,
      "Total": 6.1,
      "Freight": 7.1,
      "FreightType": "sample string 8",
      "SellingPrice": 9.1,
      "PoRecNumber": "sample string 10",
      "PoRecLineItem": 11,
      "ProductRequestGuid": "0966150e-698e-4a88-b83e-4541909b8a76",
      "Charges": [
        {
          "PurChargesKey": 1,
          "Rate": 2.1,
          "CalculateAs": "sample string 3",
          "Charge": 4.1,
          "ApplyTo": "sample string 5",
          "GenLedgAcct": "sample string 6",
          "Vendor": "sample string 7",
          "Prepaid": true
        },
        {
          "PurChargesKey": 1,
          "Rate": 2.1,
          "CalculateAs": "sample string 3",
          "Charge": 4.1,
          "ApplyTo": "sample string 5",
          "GenLedgAcct": "sample string 6",
          "Vendor": "sample string 7",
          "Prepaid": true
        }
      ],
      "ReleaseNumbers": [
        {
          "ReleaseNumber": "sample string 1",
          "Quantity": 2.1,
          "Used": true,
          "Notes": "sample string 4"
        },
        {
          "ReleaseNumber": "sample string 1",
          "Quantity": 2.1,
          "Used": true,
          "Notes": "sample string 4"
        }
      ]
    },
    {
      "DeptId": "sample string 1",
      "ProdId": "sample string 2",
      "ProductDescription": "sample string 3",
      "Ordered": 4.1,
      "PricePerUnit": 5.1,
      "Total": 6.1,
      "Freight": 7.1,
      "FreightType": "sample string 8",
      "SellingPrice": 9.1,
      "PoRecNumber": "sample string 10",
      "PoRecLineItem": 11,
      "ProductRequestGuid": "0966150e-698e-4a88-b83e-4541909b8a76",
      "Charges": [
        {
          "PurChargesKey": 1,
          "Rate": 2.1,
          "CalculateAs": "sample string 3",
          "Charge": 4.1,
          "ApplyTo": "sample string 5",
          "GenLedgAcct": "sample string 6",
          "Vendor": "sample string 7",
          "Prepaid": true
        },
        {
          "PurChargesKey": 1,
          "Rate": 2.1,
          "CalculateAs": "sample string 3",
          "Charge": 4.1,
          "ApplyTo": "sample string 5",
          "GenLedgAcct": "sample string 6",
          "Vendor": "sample string 7",
          "Prepaid": true
        }
      ],
      "ReleaseNumbers": [
        {
          "ReleaseNumber": "sample string 1",
          "Quantity": 2.1,
          "Used": true,
          "Notes": "sample string 4"
        },
        {
          "ReleaseNumber": "sample string 1",
          "Quantity": 2.1,
          "Used": true,
          "Notes": "sample string 4"
        }
      ]
    }
  ],
  "ApBillInfos": [
    {
      "DueDate": "2025-02-20T19:33:53.0498121+00:00",
      "Gross": 1.1,
      "IfPaidBy1": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent1": 2.1,
      "DeductionAmount1": 3.1,
      "IfPaidBy2": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent2": 4.1,
      "DeductionAmount2": 5.1,
      "IfPaidBy3": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent3": 6.1,
      "DeductionAmount3": 7.1,
      "IfPaidBy4": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent4": 8.1,
      "DeductionAmount4": 9.1,
      "IfPaidBy5": "2025-02-20T19:33:53.0508122+00:00",
      "DeductionPercent5": 10.1,
      "DeductionAmount5": 11.1
    },
    {
      "DueDate": "2025-02-20T19:33:53.0498121+00:00",
      "Gross": 1.1,
      "IfPaidBy1": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent1": 2.1,
      "DeductionAmount1": 3.1,
      "IfPaidBy2": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent2": 4.1,
      "DeductionAmount2": 5.1,
      "IfPaidBy3": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent3": 6.1,
      "DeductionAmount3": 7.1,
      "IfPaidBy4": "2025-02-20T19:33:53.0498121+00:00",
      "DeductionPercent4": 8.1,
      "DeductionAmount4": 9.1,
      "IfPaidBy5": "2025-02-20T19:33:53.0508122+00:00",
      "DeductionPercent5": 10.1,
      "DeductionAmount5": 11.1
    }
  ]
}

application/xml, text/xml

Sample:
<ClsPurchaseOrderAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSI.Inv">
  <ApBillInfos>
    <ClsPurchaseOrderAdd.ClsPurchaseOrderAddApBillInfo>
      <DeductionAmount1>3.1</DeductionAmount1>
      <DeductionAmount2>5.1</DeductionAmount2>
      <DeductionAmount3>7.1</DeductionAmount3>
      <DeductionAmount4>9.1</DeductionAmount4>
      <DeductionAmount5>11.1</DeductionAmount5>
      <DeductionPercent1>2.1</DeductionPercent1>
      <DeductionPercent2>4.1</DeductionPercent2>
      <DeductionPercent3>6.1</DeductionPercent3>
      <DeductionPercent4>8.1</DeductionPercent4>
      <DeductionPercent5>10.1</DeductionPercent5>
      <DueDate>2025-02-20T19:33:53.0498121+00:00</DueDate>
      <Gross>1.1</Gross>
      <IfPaidBy1>2025-02-20T19:33:53.0498121+00:00</IfPaidBy1>
      <IfPaidBy2>2025-02-20T19:33:53.0498121+00:00</IfPaidBy2>
      <IfPaidBy3>2025-02-20T19:33:53.0498121+00:00</IfPaidBy3>
      <IfPaidBy4>2025-02-20T19:33:53.0498121+00:00</IfPaidBy4>
      <IfPaidBy5>2025-02-20T19:33:53.0508122+00:00</IfPaidBy5>
    </ClsPurchaseOrderAdd.ClsPurchaseOrderAddApBillInfo>
    <ClsPurchaseOrderAdd.ClsPurchaseOrderAddApBillInfo>
      <DeductionAmount1>3.1</DeductionAmount1>
      <DeductionAmount2>5.1</DeductionAmount2>
      <DeductionAmount3>7.1</DeductionAmount3>
      <DeductionAmount4>9.1</DeductionAmount4>
      <DeductionAmount5>11.1</DeductionAmount5>
      <DeductionPercent1>2.1</DeductionPercent1>
      <DeductionPercent2>4.1</DeductionPercent2>
      <DeductionPercent3>6.1</DeductionPercent3>
      <DeductionPercent4>8.1</DeductionPercent4>
      <DeductionPercent5>10.1</DeductionPercent5>
      <DueDate>2025-02-20T19:33:53.0498121+00:00</DueDate>
      <Gross>1.1</Gross>
      <IfPaidBy1>2025-02-20T19:33:53.0498121+00:00</IfPaidBy1>
      <IfPaidBy2>2025-02-20T19:33:53.0498121+00:00</IfPaidBy2>
      <IfPaidBy3>2025-02-20T19:33:53.0498121+00:00</IfPaidBy3>
      <IfPaidBy4>2025-02-20T19:33:53.0498121+00:00</IfPaidBy4>
      <IfPaidBy5>2025-02-20T19:33:53.0508122+00:00</IfPaidBy5>
    </ClsPurchaseOrderAdd.ClsPurchaseOrderAddApBillInfo>
  </ApBillInfos>
  <Comments>sample string 9</Comments>
  <CompanyWide>true</CompanyWide>
  <ContactName>sample string 42</ContactName>
  <ContactPhone>sample string 43</ContactPhone>
  <Contract>sample string 28</Contract>
  <CurrentLocationId>sample string 3</CurrentLocationId>
  <DateRequested>2025-02-20T19:33:53.0488126+00:00</DateRequested>
  <DeductionAmount1>14.1</DeductionAmount1>
  <DeductionAmount2>16.1</DeductionAmount2>
  <DeductionAmount3>18.1</DeductionAmount3>
  <DeductionAmount4>20.1</DeductionAmount4>
  <DeductionAmount5>22.1</DeductionAmount5>
  <DeductionAmount6>24.1</DeductionAmount6>
  <DeductionPercent1>13.1</DeductionPercent1>
  <DeductionPercent2>15.1</DeductionPercent2>
  <DeductionPercent3>17.1</DeductionPercent3>
  <DeductionPercent4>19.1</DeductionPercent4>
  <DeductionPercent5>21.1</DeductionPercent5>
  <DeductionPercent6>23.1</DeductionPercent6>
  <DeliveryInstructions>sample string 44</DeliveryInstructions>
  <DeliveryType>sample string 37</DeliveryType>
  <DirectShipCustomerId>sample string 8</DirectShipCustomerId>
  <DirectShipped>true</DirectShipped>
  <DirectShippedAddress1>sample string 31</DirectShippedAddress1>
  <DirectShippedAddress2>sample string 32</DirectShippedAddress2>
  <DirectShippedCity>sample string 33</DirectShippedCity>
  <DirectShippedName>sample string 30</DirectShippedName>
  <DirectShippedState>sample string 34</DirectShippedState>
  <DirectShippedZip>sample string 35</DirectShippedZip>
  <DiscountGenLedgAcct>sample string 25</DiscountGenLedgAcct>
  <EstimatedDeliveryDate>2025-02-20T19:33:53.0488126+00:00</EstimatedDeliveryDate>
  <ExpireDate>2025-02-20T19:33:53.0488126+00:00</ExpireDate>
  <FederalPermit>sample string 1</FederalPermit>
  <FreightVendorId>sample string 12</FreightVendorId>
  <Generic>true</Generic>
  <Gln>sample string 39</Gln>
  <IfPaidBy1>2025-02-20T19:33:53.0478135+00:00</IfPaidBy1>
  <IfPaidBy2>2025-02-20T19:33:53.0478135+00:00</IfPaidBy2>
  <IfPaidBy3>2025-02-20T19:33:53.0478135+00:00</IfPaidBy3>
  <IfPaidBy4>2025-02-20T19:33:53.0478135+00:00</IfPaidBy4>
  <IfPaidBy5>2025-02-20T19:33:53.0478135+00:00</IfPaidBy5>
  <IfPaidBy6>2025-02-20T19:33:53.0478135+00:00</IfPaidBy6>
  <IncoTerm>sample string 40</IncoTerm>
  <Notes>sample string 10</Notes>
  <OrderInvoiced>true</OrderInvoiced>
  <PickDelvLocationName>sample string 38</PickDelvLocationName>
  <Prepaid>true</Prepaid>
  <Products>
    <ClsPurchaseOrderAdd.ClsPurchaseOrderAddProduct>
      <Charges>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
          <ApplyTo>sample string 5</ApplyTo>
          <CalculateAs>sample string 3</CalculateAs>
          <Charge>4.1</Charge>
          <GenLedgAcct>sample string 6</GenLedgAcct>
          <Prepaid>true</Prepaid>
          <PurChargesKey>1</PurChargesKey>
          <Rate>2.1</Rate>
          <Vendor>sample string 7</Vendor>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
          <ApplyTo>sample string 5</ApplyTo>
          <CalculateAs>sample string 3</CalculateAs>
          <Charge>4.1</Charge>
          <GenLedgAcct>sample string 6</GenLedgAcct>
          <Prepaid>true</Prepaid>
          <PurChargesKey>1</PurChargesKey>
          <Rate>2.1</Rate>
          <Vendor>sample string 7</Vendor>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
      </Charges>
      <DeptId>sample string 1</DeptId>
      <Freight>7.1</Freight>
      <FreightType>sample string 8</FreightType>
      <Ordered>4.1</Ordered>
      <PoRecLineItem>11</PoRecLineItem>
      <PoRecNumber>sample string 10</PoRecNumber>
      <PricePerUnit>5.1</PricePerUnit>
      <ProdId>sample string 2</ProdId>
      <ProductDescription>sample string 3</ProductDescription>
      <ProductRequestGuid>0966150e-698e-4a88-b83e-4541909b8a76</ProductRequestGuid>
      <ReleaseNumbers>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
          <Notes>sample string 4</Notes>
          <Quantity>2.1</Quantity>
          <ReleaseNumber>sample string 1</ReleaseNumber>
          <Used>true</Used>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
          <Notes>sample string 4</Notes>
          <Quantity>2.1</Quantity>
          <ReleaseNumber>sample string 1</ReleaseNumber>
          <Used>true</Used>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
      </ReleaseNumbers>
      <SellingPrice>9.1</SellingPrice>
      <Total>6.1</Total>
    </ClsPurchaseOrderAdd.ClsPurchaseOrderAddProduct>
    <ClsPurchaseOrderAdd.ClsPurchaseOrderAddProduct>
      <Charges>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
          <ApplyTo>sample string 5</ApplyTo>
          <CalculateAs>sample string 3</CalculateAs>
          <Charge>4.1</Charge>
          <GenLedgAcct>sample string 6</GenLedgAcct>
          <Prepaid>true</Prepaid>
          <PurChargesKey>1</PurChargesKey>
          <Rate>2.1</Rate>
          <Vendor>sample string 7</Vendor>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
          <ApplyTo>sample string 5</ApplyTo>
          <CalculateAs>sample string 3</CalculateAs>
          <Charge>4.1</Charge>
          <GenLedgAcct>sample string 6</GenLedgAcct>
          <Prepaid>true</Prepaid>
          <PurChargesKey>1</PurChargesKey>
          <Rate>2.1</Rate>
          <Vendor>sample string 7</Vendor>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddProductCharge>
      </Charges>
      <DeptId>sample string 1</DeptId>
      <Freight>7.1</Freight>
      <FreightType>sample string 8</FreightType>
      <Ordered>4.1</Ordered>
      <PoRecLineItem>11</PoRecLineItem>
      <PoRecNumber>sample string 10</PoRecNumber>
      <PricePerUnit>5.1</PricePerUnit>
      <ProdId>sample string 2</ProdId>
      <ProductDescription>sample string 3</ProductDescription>
      <ProductRequestGuid>0966150e-698e-4a88-b83e-4541909b8a76</ProductRequestGuid>
      <ReleaseNumbers>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
          <Notes>sample string 4</Notes>
          <Quantity>2.1</Quantity>
          <ReleaseNumber>sample string 1</ReleaseNumber>
          <Used>true</Used>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
        <ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
          <Notes>sample string 4</Notes>
          <Quantity>2.1</Quantity>
          <ReleaseNumber>sample string 1</ReleaseNumber>
          <Used>true</Used>
        </ClsPurchaseOrderAdd.ClsPurchaseOrderAddReleaseNumber>
      </ReleaseNumbers>
      <SellingPrice>9.1</SellingPrice>
      <Total>6.1</Total>
    </ClsPurchaseOrderAdd.ClsPurchaseOrderAddProduct>
  </Products>
  <PurchaseOrderDate>2025-02-20T19:33:53.0478135+00:00</PurchaseOrderDate>
  <PurchaseOrderMessageGuid>4404a055-1206-46d7-9c06-622549932d4f</PurchaseOrderMessageGuid>
  <PurchaseOrderNumber>sample string 5</PurchaseOrderNumber>
  <PurchaseOrderType>sample string 36</PurchaseOrderType>
  <StartDate>2025-02-20T19:33:53.0488126+00:00</StartDate>
  <StatePermits>
    <ClsPurchaseOrderAdd.clsPoPermitAdd>
      <PermitId>sample string 1</PermitId>
    </ClsPurchaseOrderAdd.clsPoPermitAdd>
    <ClsPurchaseOrderAdd.clsPoPermitAdd>
      <PermitId>sample string 1</PermitId>
    </ClsPurchaseOrderAdd.clsPoPermitAdd>
  </StatePermits>
  <TermsId>sample string 26</TermsId>
  <VendorId>sample string 4</VendorId>
  <XRef>sample string 41</XRef>
</ClsPurchaseOrderAdd>

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 'ClsPurchaseOrderAdd'.

Response Information

Resource Description

Creates a new Purchase Order

AgvPurchaseOrder
NameDescriptionTypeAdditional Information
Status

Status of the API call.

string
Message

Message of the API call.

string
ErrorList

List of errors from the API

Collection of string
WarningList

List of warnings from the API

Collection of string
Count

Count of how many Purchase Orders.

string
PurchaseOrderRecords

JSON dictionary of PurchaseOrderRecords.

Collection of clsAPIPurchaseOrder

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2",
  "ErrorList": [
    "sample string 1",
    "sample string 2"
  ],
  "WarningList": [
    "sample string 1",
    "sample string 2"
  ],
  "Count": "sample string 3",
  "PurchaseOrderRecords": [
    {
      "VendorID": "sample string 1",
      "PONumber": "sample string 2",
      "PurchaseOrderRecordHeaderDetails": null,
      "PurchaseOrderRecordLineItemDetails": [],
      "PurchaseOrderRecordChargeDetails": []
    },
    {
      "VendorID": "sample string 1",
      "PONumber": "sample string 2",
      "PurchaseOrderRecordHeaderDetails": null,
      "PurchaseOrderRecordLineItemDetails": [],
      "PurchaseOrderRecordChargeDetails": []
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Cannot serialize the DataTable. DataTable name is not set.