GET api/Part/{id}
Returns the specified Part
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Part| Name | Description | Type | Additional information |
|---|---|---|---|
| PartId |
Sedona internal autonumber for the Part record |
integer |
None. |
| PartCode |
Part Code |
string |
String length: inclusive between 0 and 25 |
| Description |
Description of the part |
string |
String length: inclusive between 0 and 50 |
| Detail |
Additonal detail information about the part |
string |
String length: inclusive between 0 and 255 |
| SalesPrice | decimal number |
None. |
|
| ItemId |
foreign key from the AR_Item table |
integer |
None. |
| UnitOfMeasureId | integer |
None. |
|
| PrimaryVendorId | integer |
None. |
|
| NonValuePart | boolean |
None. |
|
| CustomerEquipment | boolean |
None. |
|
| Inactive | boolean |
None. |
|
| LaborUnits | decimal number |
None. |
|
| ServicePart | boolean |
None. |
|
| ManufacturerPartCode |
Manufacturer's part code |
string |
String length: inclusive between 0 and 50 |
| UPC |
Univeral Product Code |
string |
String length: inclusive between 0 and 50 |
| SalesPart | boolean |
None. |
|
| SpecialOrder | boolean |
None. |
|
| StandardCost | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"PartId": 1,
"PartCode": "sample string 2",
"Description": "sample string 3",
"Detail": "sample string 4",
"SalesPrice": 1.0,
"ItemId": 5,
"UnitOfMeasureId": 6,
"PrimaryVendorId": 7,
"NonValuePart": true,
"CustomerEquipment": true,
"Inactive": true,
"LaborUnits": 1.0,
"ServicePart": true,
"ManufacturerPartCode": "sample string 12",
"UPC": "sample string 13",
"SalesPart": true,
"SpecialOrder": true,
"StandardCost": true
}
application/xml, text/xml
Sample:
<Part xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <CustomerEquipment>true</CustomerEquipment> <Description>sample string 3</Description> <Detail>sample string 4</Detail> <Inactive>true</Inactive> <ItemId>5</ItemId> <LaborUnits>1</LaborUnits> <ManufacturerPartCode>sample string 12</ManufacturerPartCode> <NonValuePart>true</NonValuePart> <PartCode>sample string 2</PartCode> <PartId>1</PartId> <PrimaryVendorId>7</PrimaryVendorId> <SalesPart>true</SalesPart> <SalesPrice>1</SalesPrice> <ServicePart>true</ServicePart> <SpecialOrder>true</SpecialOrder> <StandardCost>true</StandardCost> <UPC>sample string 13</UPC> <UnitOfMeasureId>6</UnitOfMeasureId> </Part>