• 152
  • 1550
  • 62

国内机票订票

聚合数据 企业专用

签订协议或更多需求,请与商务联系。为保证后续正常使用,测试完毕后请联系开通正式生产环境

  • API文档
  • 错误码参照
  • 示例代码
  • 联系我们
立即调用
接口地址:http://v.juhe.cn/zteict_test/order/payment
返回格式:json
请求方式:http get/post
请求示例:http://v.juhe.cn/zteict_test/order/payment?orderId=test3&key=您申请的key
接口备注:订单预订后申请出票

请求参数说明:

名称 必填 类型 说明
  orderId string 用户订单id
  key string 在个人中心->我的数据,接口名称上方查看

返回参数说明:

名称 类型 说明

JSON返回示例:

{
  "error_code": "200",
  "reason": "请求成功",
  "result": "付款成功"
}

XML返回示例:

回调格式说明:
用户可以根据orderStateInfo这个字段进行状态的更新,其他字段是对之前版本的兼容
当出票成功或者出票失败时,orderStateInfo.returnNum指billNum,即单据号
当退票成功或者退票失败时,orderStateInfo.returnNum指refundNum,即退票号
当改签成功或者改签失败时,orderStateInfo.returnNum指changeNum,即改签号

//出票失败
{
    "billnum": "101702070216",
    "ticketnum": "",
    "stateType": "FAIL_ISSUE",
    "orderStateInfo": {
        "memo": "xxxxxxxxxx",//出票失败说明
        "extInfo": null,//附加信息
        "amount": null,//发生金额
        "tickets": null,//票务信息
        "stateType": "FAIL_ISSUE",//回调状态
        "returnNum": "101702070216"
    },
    "extInfo": null
}
//出票成功
{
    "billnum": "101702070216",
    "ticketnum": null,
    "stateType": "SUCC_ISSUE",
    "orderStateInfo": {
        "memo": null,
        "extInfo": null,
        "amount": null,
        "tickets": [
            {
                "idType": "0",
                "idNumber": "0000000000000000",
                "ticketNum": "661-2020034817",
                "extInfo": [
                    {
                        "value": "101702060367_1",
                        "key": "orderNum"
                    }
                ],
                "takeoffPort": "NGB",
                "landingPort": "KWE"
            },
            {
                "idType": "0",
                "idNumber": "11111111111111",
                "ticketNum": "661-2020034817",
                "extInfo": [
                    {
                        "value": "101702060367_2",
                        "key": "orderNum"
                    }
                ],
                "takeoffPort": "NGB",
                "landingPort": "KWE"
            }
        ],
        "stateType": "SUCC_ISSUE",
        "returnNum": "101702070216"
    },
    "extInfo": null
}
//退票成功
{
    "billnum": "101702070216",
    "ticketnum": null,
    "stateType": "SUCC_REFUND",
    "orderStateInfo": {
        "memo": null,
        "amount": "35.0",
        "extInfo": [
            {
                "value": "-1070.0",
                "key": "ticketPrice"
            },
            {
                "value": "-50.0",
                "key": "airportPrice"
            },
            {
                "value": "0.0",
                "key": "fuelPrice"
            },
            {
                "value": "35.0",
                "key": "refundAmount"
            },
            {
                "value": "0.0",
                "key": "insuAmount"
            }
        ],
        "stateType": "SUCC_REFUND",
        "returnNum": "RT9018162",
        "tickets": null
    },
    "extInfo": null
}
//退票失败
{
    "billnum": "101702070216",
    "ticketnum": null,
    "stateType": "FAIL_REFUND",
    "orderStateInfo": {
        "memo": "一些退票失败的信息",
        "amount": null,
        "extInfo": null,
        "stateType": "FAIL_REFUND",
        "returnNum": "RT9018163",
        "tickets": null
    },
    "extInfo": null
}
//改签失败
{
    "billnum": "101702070216",
    "ticketnum": null,
    "stateType": "FAIL_CHANGE",
    "orderStateInfo": {
        "memo": "xiaoyangoni",
        "amount": null,
        "extInfo": null,
        "stateType": "FAIL_CHANGE",
        "returnNum": "CT9019022",
        "tickets": null
    },
    "extInfo": null
}
//改签成功
{
    "billnum": "101702070216",
    "ticketnum": "888-22222222",
    "stateType": "FAIL_CHANGE",
    "orderStateInfo": {
        "memo": null,
        "amount": "650.0",
        "extInfo": [
            {
                "value": "888-22222222",
                "key": "ticketNum"
            },
            {
                "value": "0.0",
                "key": "ticketPrice"
            },
            {
                "value": "0.0",
                "key": "airportPrice"
            },
            {
                "value": "0.0",
                "key": "fuelPrice"
            },
            {
                "value": "650.0",
                "key": "changeAmount"
            },
            {
                "value": "0.0",
                "key": "insuAmount"
            }
        ],
        "stateType": "SUCC_CHANGE",
        "returnNum": "CT9018947",
        "tickets": null
    },
    "extInfo": [
        {
            "value": "888-22222222",
            "key": "ticketNum"
        },
        {
            "value": "0.0",
            "key": "ticketPrice"
        },
        {
            "value": "0.0",
            "key": "airportPrice"
        },
        {
            "value": "0.0",
            "key": "fuelPrice"
        },
        {
            "value": "650.0",
            "key": "changeAmount"
        },
        {
            "value": "0.0",
            "key": "insuAmount"
        }
    ]
}

服务级错误码参照(error_code):

  错误码 说明

系统级错误码参照:

  错误码 说明 旧版本(resultcode)

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

完整教学代码示例:

  语言 标题 提供者 时间

常见问题:

  内容 详细
  常见问题: http://www.juhe.cn/qa/index/1548229482

联系我们

  内容 详细
  接口测试: API测试工具
  技术支持: info@juhe.cn
  联系电话: 400-882-7715
  在线客服QQ: 800076065

现在注册,百款接口免费测试

免费注册