Mercedes.VehicleManagement.API

<back to all web services

GetMarketingCodesJobsRequest

The following routes are available for this service:
GET/v1/MappedMarketingCodeJobsGet list of Mapped Marketing Code jobsGet list of Mapped Marketing Code jobs
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 GetMarketingCodesJobsRequest(IGet):
    pass


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DataProcessJob:
    id: int = 0
    gas_id: Optional[str] = None
    date_created: Optional[str] = None
    processed_records: int = 0
    status: int = 0
    status_name: Optional[str] = None
    file_name: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetDataProcessJobsResponse:
    data_processes: List[DataProcessJob] = field(default_factory=list)

Python GetMarketingCodesJobsRequest DTOs

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

HTTP + OTHER

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

GET /v1/MappedMarketingCodeJobs HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"dataProcesses":[{"id":0,"gasId":"String","dateCreated":"String","processedRecords":0,"status":0,"statusName":"String","fileName":"String"}]}