PUT | /customers/{customerId}/towcompanies/{id} | Updates an exising Tow Company entry for this Customer. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerId | path | Guid | Yes | The customer Id. |
Id | path | Guid | Yes | The tow company Id. |
Name | body | string | Yes | The label or name of the new Parking Area. |
TowingFee | body | decimal | No | The tow fee associated with the Tow Company. |
ImpoundingFee | body | decimal | No | The impound fee associated with the Tow Company. |
IsActive | body | bool | No | Whether the Tow Company is active. |
PhoneNumber | body | string | No | The phone number associated with the Tow Company. |
PhoneNumber2 | body | string | No | The alternate phone number associated with the Tow Company. |
Address1 | body | string | No | The address1 associated with the Tow Company. |
Address2 | body | string | No | The address2 associated with the Tow Company. |
City | body | string | No | The city associated with the Tow Company. |
StateCode | body | string | No | The 2 digit state code associated with the Tow Company. |
Zip | body | string | No | The zipcode associated with the Tow Company. |
CrossStreet | body | string | No | The location Cross Street description |
Latitude | body | decimal | No | Latitude |
Longitude | body | decimal | No | Longitude |
IsDeleted | body | bool | No | Whether the Tow Company is active. |
FaxNumber | body | string | No | The fax number associated with the Tow Company. |
body | string | No | The email associated with the Tow Company. | |
ExportId | body | string | No | The export id associated with the Tow Company. |
PropertyReleaseHours | body | string | No | The property release hours. |
VehicleReleaseHours | body | string | No | The vehicle release hours |
DocumentsNeededForVehicleRelease | body | string | No | Description of the documents needed for vehicle release |
Fees | body | string | No | The description of the fees |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /customers/{customerId}/towcompanies/{id} HTTP/1.1
Host: api.paylock.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateCustomerTowCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
<Address1>String</Address1>
<Address2>String</Address2>
<City>String</City>
<CrossStreet>String</CrossStreet>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<DocumentsNeededForVehicleRelease>String</DocumentsNeededForVehicleRelease>
<Email>String</Email>
<ExportId>String</ExportId>
<FaxNumber>String</FaxNumber>
<Fees>String</Fees>
<Id>00000000-0000-0000-0000-000000000000</Id>
<ImpoundingFee>0</ImpoundingFee>
<IsActive>false</IsActive>
<IsDeleted>false</IsDeleted>
<Latitude>0</Latitude>
<Longitude>0</Longitude>
<Name>String</Name>
<PhoneNumber>String</PhoneNumber>
<PhoneNumber2>String</PhoneNumber2>
<PropertyReleaseHours>String</PropertyReleaseHours>
<StateCode>String</StateCode>
<TowingFee>0</TowingFee>
<VehicleReleaseHours>String</VehicleReleaseHours>
<Zip>String</Zip>
</UpdateCustomerTowCompany>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">00000000-0000-0000-0000-000000000000</guid>