Delete truck by truck number web service request
POST | /v13/Posting/TruckPosting.svc | Deletes a truck. |
---|---|---|
Authorization | Username, Password, & Integration ID | |
SOAP Action | http://webservices.truckstop.com/v11/ITruckPosting/DeleteTrucksByTruckNumber | |
Content Type | text/xml | |
Accept | text/xml | |
URL Params | None | |
Body Params | XML data |
Delete a truck by truck number
InputTruckDeleteByTruckNumberRequest
RequirementsAuthentication requires an account with a valid user name, password, and integration ID that has Truck Posting web service enabled.
The truck number(s) of the Truck Post being deleted. The number of the specified posting must belong to authenticated user (Integration ID) or an error will be returned.
Output
Sample Request/Responsecurl --location 'https://testws.truckstop.com/v13/Posting/TruckPosting.svc' \ --header 'Content-Type: text/xml' \ --header 'SOAPAction: http://webservices.truckstop.com/v11/ITruckPosting/DeleteTrucksByTruckNumber' \ --data '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v11="http://webservices.truckstop.com/v11" xmlns:web="http://schemas.datacontract.org/2004/07/WebServices" xmlns:web1="http://schemas.datacontract.org/2004/07/WebServices.Posting" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <soapenv:Header/> <soapenv:Body> <v11:DeleteTrucksByTruckNumber> <v11:trucks> <web:IntegrationId>12345</web:IntegrationId> <web:Password>MyPas123!</web:Password> <web:UserName>MyWSUserName</web:UserName> <web1:TruckNumbers> <!--Zero or more repetitions:--> <arr:string>144</arr:string> </web1:TruckNumbers> </v11:trucks> </v11:DeleteTrucksByTruckNumber> </soapenv:Body> </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <DeleteTrucksByTruckNumberResponse xmlns="http://webservices.truckstop.com/v11"> <DeleteTrucksByTruckNumberResult xmlns:a="http://schemas.datacontract.org/2004/07/WebServices.Objects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Errors xmlns="http://schemas.datacontract.org/2004/07/WebServices" /> </DeleteTrucksByTruckNumberResult> </DeleteTrucksByTruckNumberResponse> </s:Body> </s:Envelope>