POST api/nanhwa/v2/autoticket/submit?PCC={PCC}&provivderConfigId={provivderConfigId}

NanHwa提交出票

Request Information

URI Parameters

NameDescriptionTypeAdditional information
PCC

string

Default value is

provivderConfigId

integer

Default value is 0

Body Parameters

IssueTicketRqContract
NameDescriptionTypeAdditional information
criteria

Criteria

None.

Request Formats

application/json, text/json

Sample:
{
  "criteria": {
    "pnr": "sample string 1",
    "ticketcitypairlist": [
      {
        "id": 1,
        "depairport": "sample string 2",
        "arrairport": "sample string 3",
        "deptime": {
          "date": "sample string 1",
          "time": "sample string 2"
        },
        "arrtime": {
          "date": "sample string 1",
          "time": "sample string 2"
        },
        "carrier": "sample string 4",
        "cabin": "sample string 5"
      },
      {
        "id": 1,
        "depairport": "sample string 2",
        "arrairport": "sample string 3",
        "deptime": {
          "date": "sample string 1",
          "time": "sample string 2"
        },
        "arrtime": {
          "date": "sample string 1",
          "time": "sample string 2"
        },
        "carrier": "sample string 4",
        "cabin": "sample string 5"
      }
    ],
    "ticketpaxtypelist": [
      {
        "fareperpax": 1.1,
        "type": "sample string 2"
      },
      {
        "fareperpax": 1.1,
        "type": "sample string 2"
      }
    ],
    "fop": {
      "category": "sample string 1",
      "freeformat": "sample string 2"
    }
  }
}

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

Response Information

Resource Description

NanHwa提交出票

ReturnResultOfIssueTicketRpContract
NameDescriptionTypeAdditional information
data

IssueTicketRpContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "message": "sample string 1",
    "serviceerror": {
      "code": "sample string 1",
      "message": "sample string 2",
      "timestamp": "sample string 3"
    },
    "ticketlist": [
      {
        "currency": "sample string 1",
        "fare": 2.1,
        "PaxName": "sample string 3",
        "host": "sample string 4",
        "pnr": "sample string 5",
        "tax": 6.1,
        "tktno": "sample string 7",
        "totalamt": 8.1
      },
      {
        "currency": "sample string 1",
        "fare": 2.1,
        "PaxName": "sample string 3",
        "host": "sample string 4",
        "pnr": "sample string 5",
        "tax": 6.1,
        "tktno": "sample string 7",
        "totalamt": 8.1
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}