POST api/MetroMobile/V2/CreateQRNotification

QR Kod Beyaz Masa İşlemleri

Request Information

URI Parameters

None.

Body Parameters

QRNotification
NameDescriptionTypeAdditional information
IdentificationNumber

TC Kimlik Numarası

string

None.

Name

string

None.

Surname

string

None.

Phone

Tel: +905000000000

string

None.

Email

string

None.

Line

string

None.

Type

Type: I (Istasyon), A (Arac)

character

None.

TypeName

string

None.

County

County: İlçe

integer

None.

Description

Açıklama

string

None.

DocumentType

DocumentType: JPG, PNG, MP4, ZIP, TXT, PDF, DOCX, XLSX, PPTX, CSV

string

None.

Document

Document: Base64

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IdentificationNumber": "sample string 1",
  "Name": "sample string 2",
  "Surname": "sample string 3",
  "Phone": "sample string 4",
  "Email": "sample string 5",
  "Line": "sample string 6",
  "Type": "A",
  "TypeName": "sample string 8",
  "County": 9,
  "Description": "sample string 10",
  "DocumentType": "sample string 11",
  "Document": "sample string 12"
}

application/xml, text/xml

Sample:
<QRNotification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <County>9</County>
  <Description>sample string 10</Description>
  <Document>sample string 12</Document>
  <DocumentType>sample string 11</DocumentType>
  <Email>sample string 5</Email>
  <IdentificationNumber>sample string 1</IdentificationNumber>
  <Line>sample string 6</Line>
  <Name>sample string 2</Name>
  <Phone>sample string 4</Phone>
  <Surname>sample string 3</Surname>
  <Type>65</Type>
  <TypeName>sample string 8</TypeName>
</QRNotification>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'QRNotification'.

Response Information

Resource Description

ResultOfQRNotificationResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

Error

None.

Data

Collection of QRNotificationResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "Id": 1,
    "Title": "sample string 2",
    "Message": "sample string 3",
    "Trace": "sample string 4",
    "HelpLink": "sample string 5",
    "Source": "sample string 6"
  },
  "Data": [
    {
      "Message": "sample string 1"
    },
    {
      "Message": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<ResultOfQRNotificationResponseuns9C1Um xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MetroIstanbulMobileWEBAPI.Models">
  <Data>
    <QRNotificationResponse>
      <Message>sample string 1</Message>
    </QRNotificationResponse>
    <QRNotificationResponse>
      <Message>sample string 1</Message>
    </QRNotificationResponse>
  </Data>
  <Error>
    <HelpLink>sample string 5</HelpLink>
    <Id>1</Id>
    <Message>sample string 3</Message>
    <Source>sample string 6</Source>
    <Title>sample string 2</Title>
    <Trace>sample string 4</Trace>
  </Error>
  <Success>true</Success>
</ResultOfQRNotificationResponseuns9C1Um>