POST api/PurchaseOrderPart

Request Information

URI Parameters

None.

Body Parameters

PurchaseOrderPart
NameDescriptionTypeAdditional information
PurchaseOrderPartId

Sedona internal autonumber for the PO Part record

integer

None.

PurchaseOrderId

Foreign key from AP_Purchase_Order table; required only for POST, ignored on PUT

integer

None.

PartCode

Abbreviated Part_Code, from IN_Part table

string

String length: inclusive between 0 and 25

Quantity

integer

None.

UnitOfMeasureCode

code from IN_Unit_Of_Measure table; automatically set to UnitOfMeasure for Item or Part if not supplied

string

String length: inclusive between 0 and 25

Cost

decimal number

None.

ExtendedCost

decimal number

None.

OnBackOrder

boolean

None.

Memo

Description of the part item in the PO

string

String length: inclusive between 0 and 60

VendorPartCode

string

String length: inclusive between 0 and 25

VendorPartDescription

string

String length: inclusive between 0 and 50

VendorPackageCount

integer

None.

PhaseCode

Phase_Code from OE_Phase table, automatically set to UnitOfMeasure for Item or Part if not supplied

string

String length: inclusive between 0 and 25

Location

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "PurchaseOrderPartId": 1,
  "PurchaseOrderId": 2,
  "PartCode": "sample string 3",
  "Quantity": 1,
  "UnitOfMeasureCode": "sample string 4",
  "Cost": 1.0,
  "ExtendedCost": 1.0,
  "OnBackOrder": true,
  "Memo": "sample string 5",
  "VendorPartCode": "sample string 6",
  "VendorPartDescription": "sample string 7",
  "VendorPackageCount": 1,
  "PhaseCode": "sample string 8",
  "Location": "sample string 9"
}

application/xml, text/xml

Sample:
<PurchaseOrderPart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <Cost>1</Cost>
  <ExtendedCost>1</ExtendedCost>
  <Location>sample string 9</Location>
  <Memo>sample string 5</Memo>
  <OnBackOrder>true</OnBackOrder>
  <PartCode>sample string 3</PartCode>
  <PhaseCode>sample string 8</PhaseCode>
  <PurchaseOrderId>2</PurchaseOrderId>
  <PurchaseOrderPartId>1</PurchaseOrderPartId>
  <Quantity>1</Quantity>
  <UnitOfMeasureCode>sample string 4</UnitOfMeasureCode>
  <VendorPackageCount>1</VendorPackageCount>
  <VendorPartCode>sample string 6</VendorPartCode>
  <VendorPartDescription>sample string 7</VendorPartDescription>
</PurchaseOrderPart>

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

Response Information

Resource Description

PurchaseOrderPart
NameDescriptionTypeAdditional information
PurchaseOrderPartId

Sedona internal autonumber for the PO Part record

integer

None.

PurchaseOrderId

Foreign key from AP_Purchase_Order table; required only for POST, ignored on PUT

integer

None.

PartCode

Abbreviated Part_Code, from IN_Part table

string

String length: inclusive between 0 and 25

Quantity

integer

None.

UnitOfMeasureCode

code from IN_Unit_Of_Measure table; automatically set to UnitOfMeasure for Item or Part if not supplied

string

String length: inclusive between 0 and 25

Cost

decimal number

None.

ExtendedCost

decimal number

None.

OnBackOrder

boolean

None.

Memo

Description of the part item in the PO

string

String length: inclusive between 0 and 60

VendorPartCode

string

String length: inclusive between 0 and 25

VendorPartDescription

string

String length: inclusive between 0 and 50

VendorPackageCount

integer

None.

PhaseCode

Phase_Code from OE_Phase table, automatically set to UnitOfMeasure for Item or Part if not supplied

string

String length: inclusive between 0 and 25

Location

string

String length: inclusive between 0 and 50

Response Formats

application/json, text/json

Sample:
{
  "PurchaseOrderPartId": 1,
  "PurchaseOrderId": 2,
  "PartCode": "sample string 3",
  "Quantity": 1,
  "UnitOfMeasureCode": "sample string 4",
  "Cost": 1.0,
  "ExtendedCost": 1.0,
  "OnBackOrder": true,
  "Memo": "sample string 5",
  "VendorPartCode": "sample string 6",
  "VendorPartDescription": "sample string 7",
  "VendorPackageCount": 1,
  "PhaseCode": "sample string 8",
  "Location": "sample string 9"
}

application/xml, text/xml

Sample:
<PurchaseOrderPart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <Cost>1</Cost>
  <ExtendedCost>1</ExtendedCost>
  <Location>sample string 9</Location>
  <Memo>sample string 5</Memo>
  <OnBackOrder>true</OnBackOrder>
  <PartCode>sample string 3</PartCode>
  <PhaseCode>sample string 8</PhaseCode>
  <PurchaseOrderId>2</PurchaseOrderId>
  <PurchaseOrderPartId>1</PurchaseOrderPartId>
  <Quantity>1</Quantity>
  <UnitOfMeasureCode>sample string 4</UnitOfMeasureCode>
  <VendorPackageCount>1</VendorPackageCount>
  <VendorPartCode>sample string 6</VendorPartCode>
  <VendorPartDescription>sample string 7</VendorPartDescription>
</PurchaseOrderPart>