Mercedes.Agency.Orchestration.API

<back to all web services

GetMotabilityPricingAuditsRequest

Motability
Requires Authentication
The following routes are available for this service:
GET/v1/motability/pricingauditsGets the Motability Pricing Audit recordsGets the Motability Pricing Audit records
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetMotabilityPricingAuditsRequest(IGet):
    pass


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MotabilityPricingAudit:
    motability_pricing_id: int = 0
    gas_id: Optional[str] = None
    back_order_drop_down: Optional[str] = None
    previous_valid_from: Optional[str] = None
    previous_valid_to: Optional[str] = None
    current_valid_from: Optional[str] = None
    current_valid_to: Optional[str] = None
    creation_date: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetMotabilityPricingAuditsResponse:
    motability_pricing_audits: List[MotabilityPricingAudit] = field(default_factory=list)

Python GetMotabilityPricingAuditsRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/motability/pricingaudits HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"MotabilityPricingAudits":[{"MotabilityPricingId":0,"GasId":"String","BackOrderDropDown":"String","PreviousValidFrom":"String","PreviousValidTo":"String","CurrentValidFrom":"String","CurrentValidTo":"String","CreationDate":"String"}]}