POST API/ServiceRequest/Import
Import a service request
Request Information
URI Parameters
None.
Body Parameters
Service Request import object
ServiceRequestImportName | Description | Type | Additional information |
---|---|---|---|
WasteRouteType |
The Type of route the property is part of |
WasteRouteType |
Required |
PropertyNameOrNumber |
Property Name or Number |
string |
Required |
PropertyPostCode |
Property Postcode |
string |
Required |
EnquiryID |
The EnquiryID (Leave blank when importing for CMS generated ID) |
string |
String length: inclusive between 0 and 50 |
ServiceType |
Service type |
string |
String length: inclusive between 0 and 150 |
EnquiryDetails |
Enquiry Details |
string |
String length: inclusive between 0 and 300 |
CreatedOnUtc |
Date of creation (Leave blank when importing for auto generated) |
date |
None. |
Status |
Service Request Status (Letters can be found from /ServiceRequest/StatusList |
string |
Required String length: inclusive between 0 and 1 |
DateStarted |
Date Started, if applicable |
date |
None. |
ActionsTaken |
Actions Taken |
string |
String length: inclusive between 0 and 300 |
NextDeliveryDate |
Next delivery date, if applicable |
date |
None. |
Sent |
Sent date, if applicable |
date |
None. |
Quantity |
Quantity |
integer |
None. |
CompletedDate |
Completion date, if applicable |
date |
None. |
Request Formats
application/json, text/json
{ "WasteRouteType": 68, "PropertyNameOrNumber": "sample string 1", "PropertyPostCode": "sample string 2", "EnquiryID": "sample string 3", "ServiceType": "sample string 4", "EnquiryDetails": "sample string 5", "CreatedOnUtc": "2025-05-09T07:05:39.7167516+01:00", "Status": "sample string 6", "DateStarted": "2025-05-09T07:05:39.7167516+01:00", "ActionsTaken": "sample string 7", "NextDeliveryDate": "2025-05-09T07:05:39.7167516+01:00", "Sent": "2025-05-09T07:05:39.7167516+01:00", "Quantity": 1, "CompletedDate": "2025-05-09T07:05:39.7167516+01:00" }
application/xml, text/xml
<ServiceRequestImport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <EnquiryID>sample string 3</EnquiryID> <ServiceType>sample string 4</ServiceType> <EnquiryDetails>sample string 5</EnquiryDetails> <CreatedOnUtc>2025-05-09T07:05:39.7167516+01:00</CreatedOnUtc> <Status>sample string 6</Status> <DateStarted>2025-05-09T07:05:39.7167516+01:00</DateStarted> <ActionsTaken>sample string 7</ActionsTaken> <NextDeliveryDate>2025-05-09T07:05:39.7167516+01:00</NextDeliveryDate> <Sent>2025-05-09T07:05:39.7167516+01:00</Sent> <Quantity>1</Quantity> <CompletedDate>2025-05-09T07:05:39.7167516+01:00</CompletedDate> <WasteRouteType>Domestic</WasteRouteType> <PropertyNameOrNumber>sample string 1</PropertyNameOrNumber> <PropertyPostCode>sample string 2</PropertyPostCode> </ServiceRequestImport>
application/x-www-form-urlencoded
Response Information
Resource Description
Response from the server
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.