订单API> 订单取消Order cancellation

接口说明 Interface description

提供方:供应商

调用方:携程

提供携程与供应商系统进行订单取消操作的接口,当confirmType=2在取消发起时必须验证取消数量等于可退数量,可退数量小于申请退订数量时请返回取消失败。

供应商接口返回码:务必优先匹配携程提供的标准错误码,并返回真实的失败原因(重要)。

Provider: supplier

Caller: ctrip

Providing the interface for order cancellation between Ctrip and the supplier’s system. When confirmType = 2, it has to be idenfied that the quantity of cancellations equals to the quantity of refundables before cancellation. If the quantity of refundables is less than the quantity of cancellations, please return that the cancellation failed.

The returne code of supplier's interface: Be sure to match the standard error code provided by Ctrip first, and return the real failure reason (Important).

{
	"header": {
		"accountId": "xiecheng",
		"serviceName": "CancelOrder",
		"requestTime": "2017-01-05 10:00:00",
		"version": "1.0",
		"sign": "0b75ca17d50544ca538dd2caa3c86088"
	},
	"body": {
		"sequenceId": "20171010abcd95774f17c3e354e73f7aaf21b5ec",
		"otaOrderId": "123456",
		"supplierOrderId": "100001",
		"confirmType": 1,
		"items": [{
			"itemId": "123456",
			"PLU": "test-plu-1",
			"lastConfirmTime": "2017-01-05 10:00:00",
			"quantity": 2,
			"amount": 100,
			"amountCurrency": ""
		}]
	}
}
          
{
	"header": {
		"resultCode": "0000",
		"resultMessage": "取消成功"
	},
	"body": {
		"supplierConfirmType": 1,
		"items": [{
			"itemId": "123456"
		}]
	}
}
          

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