GET api/ServiceTicketPart/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ServiceTicketPartName | Description | Type | Additional information |
---|---|---|---|
ServiceTicketPartId |
Sedona internal autonumber for the SV_Service_Ticket_Parts record (assigned automatically on POST) |
integer |
None. |
ServiceTicketNumber |
Service Ticket Number from SV_Service_Ticket table |
integer |
Required |
PartCode |
Abbreviated Part_Code, from IN_Part table |
string |
Required String length: inclusive between 0 and 25 |
PartDescription |
Part Description, from IN_Part table |
string |
String length: inclusive between 0 and 50 |
Quantity |
Quantity of the Part |
decimal number |
Required |
Rate |
Rate |
decimal number |
Required |
Location |
Location; can be blank |
string |
None. |
ServiceTechCode |
Employee_Code from SY_Employee table; defaults to N/A if not supplied |
string |
None. |
FromStock |
Defaults to False if not supplied |
boolean |
None. |
SerialNumber |
Serial Number for this part |
string |
String length: inclusive between 0 and 50 |
LotNumber |
Lot Number for this part |
string |
String length: inclusive between 0 and 50 |
WarehouseCode |
value from IN_Warehouse; setting this will relieve inventory (if specified, part must have inventory in this Warehouse); defaults to N/A if not supplied |
string |
None. |
Response Formats
application/json, text/json
{ "ServiceTicketPartId": 1, "ServiceTicketNumber": 2, "PartCode": "sample string 3", "PartDescription": "sample string 4", "Quantity": 1.1, "Rate": 5.0, "Location": "sample string 6", "ServiceTechCode": "sample string 7", "FromStock": true, "SerialNumber": "sample string 8", "LotNumber": "sample string 9", "WarehouseCode": "sample string 10" }
application/xml, text/xml
<ServiceTicketPart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <FromStock>true</FromStock> <Location>sample string 6</Location> <LotNumber>sample string 9</LotNumber> <PartCode>sample string 3</PartCode> <PartDescription>sample string 4</PartDescription> <Quantity>1.1</Quantity> <Rate>5</Rate> <SerialNumber>sample string 8</SerialNumber> <ServiceTechCode>sample string 7</ServiceTechCode> <ServiceTicketNumber>2</ServiceTicketNumber> <ServiceTicketPartId>1</ServiceTicketPartId> <WarehouseCode>sample string 10</WarehouseCode> </ServiceTicketPart>