Mercedes.Agency.Orchestration.API

<back to all web services

GetVehicleBackOrderValidateRequest

Vehicle
Requires Authentication
The following routes are available for this service:
POST/v1/vehicle/backordervalidate/{VehicleIdentifier}Validate Vehicle assignment to BackOrderValidate Vehicle assignment to BackOrder by Vin or Commission Number
#![allow(
    dead_code,
    non_camel_case_types,
    non_snake_case,
    clippy::upper_case_acronyms
)]

use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct GetVehicleBackOrderValidateResponse {
    #[serde(rename = "commissionNumber")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub commission_number: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vin: Option<String>,
    #[serde(rename = "isDisplayStock")]
    pub is_display_stock: bool,
    pub specialist: bool,
    #[serde(rename = "displayRetailer")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub display_retailer: Option<String>,
    #[serde(rename = "isValid")]
    pub is_valid: bool,
    #[serde(rename = "errorMessage")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub error_message: Option<String>,
    #[serde(rename = "notMotability")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub not_motability: Option<bool>,
}

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(default)]
pub struct GetVehicleBackOrderValidateRequest {
    #[serde(rename = "vehicleIdentifier")]
    pub vehicle_identifier: String,
    #[serde(rename = "backOrderGuid")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub back_order_guid: Option<String>,
}

Rust GetVehicleBackOrderValidateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/vehicle/backordervalidate/{VehicleIdentifier} HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	VehicleIdentifier: String,
	BackOrderGuid: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CommissionNumber: String,
	Vin: String,
	IsDisplayStock: False,
	Specialist: False,
	DisplayRetailer: String,
	IsValid: False,
	ErrorMessage: String,
	NotMotability: False
}