| GET | /v1/SecuredAudit/{identifier} | Gets vehicle secured audits for supplied identifier | Gets vehicle secured audits for supplied identifier |
|---|
package dtos
type VehicleAuditDetails struct {
UserId *string `json:"userId,omitempty"`
Status bool `json:"status,omitempty"`
Notes *string `json:"notes,omitempty"`
CreationDate *string `json:"creationDate,omitempty"`
}
type VehicleSecuredAuditDetails struct {
VehicleAuditDetails
Vin *string `json:"vin,omitempty"`
CommissionNumber *string `json:"commissionNumber,omitempty"`
IsBulkUpdate bool `json:"isBulkUpdate,omitempty"`
}
type SecuredVehicleAuditResponse struct {
VehicleSecuredAudits []VehicleSecuredAuditDetails `json:"vehicleSecuredAudits,omitempty"`
}
type SecuredVehicleAuditRequest struct {
Identifier *string `json:"identifier,omitempty"`
}
Go SecuredVehicleAuditRequest DTOs
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.
GET /v1/SecuredAudit/{identifier} HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SecuredVehicleAuditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.Clients.Vehicle">
<VehicleSecuredAudits xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO">
<d2p1:VehicleSecuredAuditDetails>
<d2p1:CreationDate>String</d2p1:CreationDate>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:Status>false</d2p1:Status>
<d2p1:UserId>String</d2p1:UserId>
<d2p1:CommissionNumber>String</d2p1:CommissionNumber>
<d2p1:IsBulkUpdate>false</d2p1:IsBulkUpdate>
<d2p1:Vin>String</d2p1:Vin>
</d2p1:VehicleSecuredAuditDetails>
</VehicleSecuredAudits>
</SecuredVehicleAuditResponse>