POST api/localtravel/klook/book/{lang}

KLOOK下单

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

Body Parameters

Collection of KLookBookRQContract
NameDescriptionTypeAdditional information
guid

唯一id

string

None.

planId

计划ID

string

None.

skuitems

sku

Collection of KLookBookSkuRQContract

None.

departdate

出发日期

date

None.

departtime

出发时间

string

None.

formExtra

表单资料

KLookBookFormRQContract

None.

contact

联系资料

KLookBookContactRQContract

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "guid": "sample string 1",
    "planId": "sample string 2",
    "skuitems": [
      {
        "skuid": "sample string 1",
        "quantity": 2
      },
      {
        "skuid": "sample string 1",
        "quantity": 2
      }
    ],
    "departdate": "2024-12-23T20:12:53.0680338+08:00",
    "departtime": "sample string 4",
    "formExtra": {
      "themeforms": [
        {
          "formid": "sample string 1",
          "formvalue": "sample string 2"
        },
        {
          "formid": "sample string 1",
          "formvalue": "sample string 2"
        }
      ],
      "travelerforms": [
        [
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          },
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          }
        ],
        [
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          },
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          }
        ]
      ]
    },
    "contact": {
      "firstname": "sample string 1",
      "lastname": "sample string 2",
      "Mobile": "sample string 3",
      "email": "sample string 4",
      "title": "sample string 5",
      "country": "sample string 6"
    }
  },
  {
    "guid": "sample string 1",
    "planId": "sample string 2",
    "skuitems": [
      {
        "skuid": "sample string 1",
        "quantity": 2
      },
      {
        "skuid": "sample string 1",
        "quantity": 2
      }
    ],
    "departdate": "2024-12-23T20:12:53.0680338+08:00",
    "departtime": "sample string 4",
    "formExtra": {
      "themeforms": [
        {
          "formid": "sample string 1",
          "formvalue": "sample string 2"
        },
        {
          "formid": "sample string 1",
          "formvalue": "sample string 2"
        }
      ],
      "travelerforms": [
        [
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          },
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          }
        ],
        [
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          },
          {
            "formid": "sample string 1",
            "formvalue": "sample string 2"
          }
        ]
      ]
    },
    "contact": {
      "firstname": "sample string 1",
      "lastname": "sample string 2",
      "Mobile": "sample string 3",
      "email": "sample string 4",
      "title": "sample string 5",
      "country": "sample string 6"
    }
  }
]

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 'List`1'.

Response Information

Resource Description

KLOOK下单

ReturnResultOfListOfKLookBookRSContract
NameDescriptionTypeAdditional information
data

Collection of KLookBookRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": [
    {
      "guid": "sample string 1",
      "issucess": true,
      "klookorderId": "sample string 3",
      "klookorderstatus": "sample string 4",
      "message": "sample string 5"
    },
    {
      "guid": "sample string 1",
      "issucess": true,
      "klookorderId": "sample string 3",
      "klookorderstatus": "sample string 4",
      "message": "sample string 5"
    }
  ],
  "code": 1,
  "message": "sample string 2"
}