Delete truck by ID web service request
POST | /v13/Posting/TruckPosting.svc | Deletes a truck. |
---|---|---|
Authorization | Username, Password, & Integration ID | |
SOAP Action | http://webservices.truckstop.com/v11/ITruckPosting/DeleteTrucks | |
Content Type | text/xml | |
Accept | text/xml | |
URL Params | None | |
Body Params | XML data |
Delete a truck by ID
Input
RequirementsAuthentication requires an account with a valid user name, password, and integration ID that has Truck Posting web service enabled.
The truck ID(s) of the Truck Post being deleted. The ID 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/DeleteTrucks' \ --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:DeleteTrucks> <v11:trucks> <web:IntegrationId>12345</web:IntegrationId> <web:Password>MyPass123!</web:Password> <web:UserName>MyWSUsername</web:UserName> <web1:Trucks> <!--Zero or more repetitions:--> <arr:int>76766806</arr:int> </web1:Trucks> </v11:trucks> </v11:DeleteTrucks> </soapenv:Body> </soapenv:Envelope>'
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <DeleteTrucksResponse xmlns="http://webservices.truckstop.com/v11"> <DeleteTrucksResult 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"/> </DeleteTrucksResult> </DeleteTrucksResponse> </s:Body> </s:Envelope>