使用requestTransactionId确认优惠券单品创建API的请求结果。
路径
GET
/v2/providers/marketplace_openapi/apis/api/v1/coupons/transactionStatus
示例
请求参数
Name |
Required |
Type |
Description |
requestTransactionId |
O |
Number |
要查看结果的ID |
请求体
无
返回消息
Name |
Type |
Description |
||
transactionStatusResponse |
Object |
调用响应详情 |
||
|
type |
String |
用于确认状态的API |
|
|
total |
Number |
请求的vendoritem数 |
|
|
succeeded |
Number |
调用成功的vendoritem数 |
|
|
status |
String |
调用结果 |
|
|
requestedId |
String |
响应查看key |
|
|
couponFailedVendorItemIdResponses |
Array |
vendoritemId注册失败的详细原因 |
|
|
|
vendorItemId |
Number |
调用API使用的属性ID |
|
|
failureReason |
String |
调用失败的原因 |
|
failed |
Number |
调用失败的vendoritem数 |
|
|
couponId |
Number |
该优惠券ID |
返回消息示例
{
"transactionStatusResponse": {
"type": "COUPON_ITEM_PUBLISH",
"total": 1,
"succeeded": 0,
"status": "FAIL",
"requestedId": "et5_154210571558673553106",
"couponFailedVendorItemIdResponses": [
{
"vendorItemId": 4712512759,
"failureReason": "[CIR14] 해당 옵션은 이미 다른 쿠폰(14434486 외 2건)에 발행되어져 있습니다."
}
],
"failed": 1,
"couponId": 15421057
}
}
错误信息
HTTP status code (error type) |
error message |
solution |
500 (check parameter requested) |
系统错误 |
查看requestTransactionId是否输入正确。 |
接口名称
GET_REQUEST_STATUS_BY_TRANSACTION_ID