订单API> 订单新订New order placed

接口说明 Interface description

提供方:供应商

调用方: 携程

当客人在携程平台进行订单预定后,携程会通过该接口向供应商系统提交客人的预定信息来完成订单预定。供应商在收到携程的下单请求时候,需先判断同批次的携程订单号在供应商系统中是否存在且已下单成功,若存在且已下单成功直接返回下单成功结果;若不存在,创建订单,返回下单结果。

Provider: supplier

Caller: ctrip

After customer places an order on Ctrip, Ctrip will submit booking information to the supplier’s system through this interface to complete the order. When suppliers receive the order request from Ctrip, they should estimate whether the same batch Ctrip order number exists in the supplier system and has been successfully placed. If so, the order result will be returned directly. If not, a new order will be created and order result will be returned.

{
	"header": {
		"accountId": "xiecheng",
		"serviceName": "CreateOrder",
		"requestTime": "2017-01-05 10:00:00",
		"version": "1.0",
		"sign": "374d95774f17c3e354e73f7aaf21b5ec"
	},
	"body": {
		"sequenceId": "20171010abcd95774f17c3e354e73f7aaf21b5ec",
		"otaOrderId": "123456",
		"confirmType": 1,
		"contacts": [{
			"name": "联系人",
			"mobile": "13000000000",
			"intlCode": "",
			"optionalMobile": "13000000000",
			"optionalIntlCode": "",
			"email": ""
		}],
		"coupons": [{
			"type": 1,
			"code": "优惠券编码",
			"name": "优惠券名称",
			"amount": 100,
			"amountCurrency": ""
		}],
		"items": [{
			"itemId": "123456",
			"openId":"abceefot",
			"PLU": "test-plu-1",
			"distributionChannel": "",
			"useStartDate": "2017-02-04",
			"useEndDate": "2017-02-04",
			"lastConfirmTime": "2017-01-05 10:00:00",
			"remark": "备注信息",
			"price": 100,
			"priceCurrency": "",
			"cost": 90,
			"costCurrency": "",
			"quantity": 1,
			"passengers": [{
				"name": "出行人",
				"firstName": "",
				"lastName": "",
				"mobile": "13100000000",
				"intlCode": "",
				"cardType": "",
				"cardNo": "",
				"birthDate": "",
				"ageType": "",
				"gender": "",
				"nationalityCode": "CN",
				"nationalityName": "中国",
				"cardIssueCountry": "中国",
				"cardIssuePlace": "上海",
				"cardIssueDate": "2016-12-12",
				"cardValidDate": "2020-12-12",
				"birthPlace": "上海",
				"height": 175,
				"weight": 80,
				"myopiaDegreeL": 200,
				"myopiaDegreeR": 200,
				"shoeSize": 42
			}],
			"adjunctions": [{
				"name": "取件点",
				"nameCode": "name-qjd",
				"content": "虹桥机场",
				"contentCode": "content-123"
			}],
			"deposit": {
				"type": 1,
				"amount": 100,
				"amountCurrency": ""
			},
			"expressDelivery": {
				"type": 1,
				"name": "收件人姓名",
				"mobile": "13000000000",
				"intlCode": "",
				"country": "中国",
				"province": "上海",
				"city": "上海",
				"district": "长宁区",
				"address": "中国上海市长宁区福泉路99号携程技术大厦 200335"
			}
		}]
	}
}
          
{
	"header": {
		"resultCode": "0000",
		"resultMessage": "下单成功"
	},
	"body": {
		"otaOrderId": "123456",
		"supplierOrderId": "100001",
		"supplierConfirmType": 1,
		"voucherSender": 1,
		"vouchers": [{
			"itemId": "123456",
			"voucherType": 1,
			"voucherCode": "123456",
			"voucherData": ""
		}],
		"items": [{
			"itemId": "123456",
			"inventorys": [{
				"useDate": "2017-02-04",
				"quantity": 0
			}]
		}]
	}
}
          

供应商接口返回码The returne code of supplier's interface

证件类型Identification document type