POST api/CrazyMike

Request Information

URI Parameters

None.

Body Parameters

请求

SaveSimpleOrderAndCustomerRequest
NameDescriptionTypeAdditional information
customer

Customer

None.

orderNumber

string

None.

orderRemark

string

None.

salesId

string

None.

taskType

string

None.

travelerList[]

Collection of Traveler

None.

Request Formats

application/json, text/json

Sample:
{
  "customer": {
    "customerId": "sample string 1",
    "customer.number": "sample string 2",
    "customer.lastTName": "sample string 3",
    "customer.firstTName": "sample string 4",
    "customer.lastEName ": "sample string 5",
    "customer.firstEName ": "sample string 6",
    "customer.middleEName": "sample string 7",
    "customer.birthday ": "2025-04-24T17:00:13.7369266+08:00",
    "customer.gender ": "sample string 9",
    "customer.nationality": "sample string 10",
    "customer.zipPrefixCode": "sample string 11",
    "customer.country": "sample string 12",
    "customer.city ": "sample string 13",
    "customer.street": "sample string 14",
    "customer.building": "sample string 15",
    "customer.phone": "sample string 16",
    "customer.mobile": "sample string 17",
    "customer.email": "sample string 18",
    "customer.passportNumber": "sample string 19",
    "customer.passportIssuingDate": "2025-04-24T17:00:13.7389319+08:00",
    "customer.passportExpriationDate": "2025-04-24T17:00:13.7389319+08:00",
    "customer.identityNumber": "sample string 21",
    "customer.remark": "sample string 22"
  },
  "orderNumber": "sample string 1",
  "orderRemark": "sample string 2",
  "salesId": "sample string 3",
  "taskType": "sample string 4",
  "travelerList[]": [
    {
      "lastTName": "sample string 1",
      "firstTName": "sample string 2",
      "lastEName": "sample string 3",
      "firstEName": "sample string 4",
      "birthday": "2025-04-24T17:00:13.7419399+08:00",
      "adultOrChild": "sample string 6",
      "gender": "sample string 7",
      "phone": "sample string 8",
      "email": "sample string 9",
      "passportNumber": "sample string 10",
      "passportIssuingDate": "2025-04-24T17:00:13.7429423+08:00",
      "passportExpriationDate": "2025-04-24T17:00:13.7429423+08:00",
      "identityNumber": "sample string 11",
      "singlePlaneTicketAgendum": {
        "ticketType": "sample string 1",
        "airlineCompany_id": "sample string 2",
        "seatClass": "sample string 3",
        "expirationDate": "sample string 4",
        "outDate": "sample string 5",
        "outFlightCode": "sample string 6",
        "outTakeOffTime": "sample string 7",
        "outArriveTime": "sample string 8",
        "outFlightStart": "sample string 9",
        "outMiddleStop1": "sample string 10",
        "outMiddleStop2": "sample string 11",
        "outMiddleStop3": "sample string 12",
        "outMiddleStop4": "sample string 13",
        "inDate": "sample string 14",
        "inFlightCode": "sample string 15",
        "inTakeOffTime": "sample string 16",
        "inArriveTime": "sample string 17",
        "inFlightStart": "sample string 18",
        "inMiddleStop1": "sample string 19",
        "inMiddleStop2": "sample string 20",
        "inMiddleStop3": "sample string 21",
        "inMiddleStop4": "sample string 22",
        "price": 23.0,
        "cost": 24.0,
        "ticketNumber": 25.0,
        "remark": 26.0
      }
    },
    {
      "lastTName": "sample string 1",
      "firstTName": "sample string 2",
      "lastEName": "sample string 3",
      "firstEName": "sample string 4",
      "birthday": "2025-04-24T17:00:13.7419399+08:00",
      "adultOrChild": "sample string 6",
      "gender": "sample string 7",
      "phone": "sample string 8",
      "email": "sample string 9",
      "passportNumber": "sample string 10",
      "passportIssuingDate": "2025-04-24T17:00:13.7429423+08:00",
      "passportExpriationDate": "2025-04-24T17:00:13.7429423+08:00",
      "identityNumber": "sample string 11",
      "singlePlaneTicketAgendum": {
        "ticketType": "sample string 1",
        "airlineCompany_id": "sample string 2",
        "seatClass": "sample string 3",
        "expirationDate": "sample string 4",
        "outDate": "sample string 5",
        "outFlightCode": "sample string 6",
        "outTakeOffTime": "sample string 7",
        "outArriveTime": "sample string 8",
        "outFlightStart": "sample string 9",
        "outMiddleStop1": "sample string 10",
        "outMiddleStop2": "sample string 11",
        "outMiddleStop3": "sample string 12",
        "outMiddleStop4": "sample string 13",
        "inDate": "sample string 14",
        "inFlightCode": "sample string 15",
        "inTakeOffTime": "sample string 16",
        "inArriveTime": "sample string 17",
        "inFlightStart": "sample string 18",
        "inMiddleStop1": "sample string 19",
        "inMiddleStop2": "sample string 20",
        "inMiddleStop3": "sample string 21",
        "inMiddleStop4": "sample string 22",
        "price": 23.0,
        "cost": 24.0,
        "ticketNumber": 25.0,
        "remark": 26.0
      }
    }
  ]
}

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

Response Information

Resource Description

ReturnResultOfInt32
NameDescriptionTypeAdditional information
data

integer

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": 1,
  "code": 2,
  "message": "sample string 3"
}