POST api/Vexere/BookingTickets

Request Information

URI Parameters

None.

Body Parameters

BookingModel
NameDescriptionTypeAdditional information
trip_code

string

None.

seats

string

None.

customer_phone

string

None.

customer_name

string

None.

customer_email

string

None.

coupon

string

None.

pickup

string

None.

pickup_id

integer

None.

transfer

string

None.

arrive_drop_off

string

None.

arrive_drop_off_id

integer

None.

arrive_transfer

string

None.

arrive_transfer_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "trip_code": "sample string 1",
  "seats": "sample string 2",
  "customer_phone": "sample string 3",
  "customer_name": "sample string 4",
  "customer_email": "sample string 5",
  "coupon": "sample string 6",
  "pickup": "sample string 7",
  "pickup_id": 8,
  "transfer": "sample string 9",
  "arrive_drop_off": "sample string 10",
  "arrive_drop_off_id": 11,
  "arrive_transfer": "sample string 12",
  "arrive_transfer_id": 13
}

application/xml, text/xml

Sample:
<BookingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pis.Apay.Mobile.Api.Models.Vexere">
  <arrive_drop_off>sample string 10</arrive_drop_off>
  <arrive_drop_off_id>11</arrive_drop_off_id>
  <arrive_transfer>sample string 12</arrive_transfer>
  <arrive_transfer_id>13</arrive_transfer_id>
  <coupon>sample string 6</coupon>
  <customer_email>sample string 5</customer_email>
  <customer_name>sample string 4</customer_name>
  <customer_phone>sample string 3</customer_phone>
  <pickup>sample string 7</pickup>
  <pickup_id>8</pickup_id>
  <seats>sample string 2</seats>
  <transfer>sample string 9</transfer>
  <trip_code>sample string 1</trip_code>
</BookingModel>

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 'BookingModel'.

Response Information

Resource Description

ResponseObject
NameDescriptionTypeAdditional information
Code

string

None.

ListValue

Collection of Object

None.

Message

string

None.

Time

string

None.

Value

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "ListValue": [
    {},
    {}
  ],
  "Message": "sample string 2",
  "Time": "sample string 3",
  "Value": {}
}

application/xml, text/xml

Sample:
<ResponseObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pis.Admin.Lib">
  <Code>sample string 1</Code>
  <ListValue xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </ListValue>
  <Message>sample string 2</Message>
  <Time>sample string 3</Time>
  <Value />
</ResponseObject>