请求和响应示例:会员

兑换:成功的拆分支付交易

请求

{
  "requestId": "a5783c58-c5ce-4ff9-b83c-58c5cedff988",
  "membershipId": "************e1bf",
  "sourceConfirmationId": "-9223371998507503799",
  "totalproductCost": "230.0",
  "paymentDetails": {
    "redemptionDetails": {
      "amountPaidInLoyaltyCurrency": {
        "value": "22000",
        "currency": "Points"
      }
    },
    "amountPaidInCash": {
      "value": "10.0",
      "currency": "USD"
    }
  }
}

响应

{
  "status": "Approved",
  "requestId": "a5783c58-c5ce-4ff9-b83c-58c5cedff988",
  "transactionDateTime": "2023-04-20T12:01:23.203057Z",
  "sourceConfirmationId": "-9223371998507503799",
  "redemptionDetails": {
    "amountPaidInLoyaltyCurrency": {
      "value": "22000",
      "currency": "Points"
    },
    "redemptionConfirmationId": "expedia-a5783c58-c5ce-4ff9-b83c-58c5cedff988"
  }
}

兑换:失败的纯积分交易

请求

{
  "requestId": "9b791f14-cc41-428d-b91f-14cc41d28dec",
  "membershipId": "************9f92",
  "sourceConfirmationId": "-9223371998508439999",
  "totalproductCost": "350.0",
  "paymentDetails": {
    "redemptionDetails": {
      "amountPaidInLoyaltyCurrency": {
        "value": "35000",
        "currency": "Points"
      }
    },
    "amountPaidInCash": {
      "value": "0.00",
      "currency": "USD"
    }
  }
}

响应

{
  "status": "Declined",
  "sourceConfirmationId": "-9223371998508439999",
  "requestId": "9b791f14-cc41-428d-b91f-14cc41d28dec",
  "declineReason": {
    "reasonCode": "INSUFFICIENT_BALANCE",
    "reasonMessage": "Insufficient balance in the account"
  }
}

退款:成功的交易

请求

{
  "requestId": "127eda66-a40c-493d-beda-66a40c193ded",
  "sourceConfirmationId": "-9223371998458055588",
  "membershipId": "************faff",
  "refundDetails": {
    "loyaltyRefundAmount": {
      "value": "31504",
      "currency": "Points"
    },
    "redemptionConfirmationId": "expedia-498bb4ea-8460-41dc-8bb4-ea8460b1dcb2"
  }
}

响应

{
  "status": "Approved",
  "sourceConfirmationId": "-9223371998458055588",
  "requestId": "127eda66-a40c-493d-beda-66a40c193ded",
  "transactionDateTime": "2023-04-20T06:04:23.549408Z",
  "refundDetails": {
    "loyaltyRefundAmount": {
      "value": "31504",
      "currency": "Points"
    },
    "redemptionConfirmationId": "expedia-498bb4ea-8460-41dc-8bb4-ea8460b1dcb2",
    "refundConfirmationId": "expedia-127eda66-a40c-493d-beda-66a40c193ded"
  },
  "balance": {
    "value": "35345",
    "currency": "Points"
  }
}

余额请求:成功的交易

请求

{
  "membershipId": "************e1bf",
  "requestId": "e0d08a9f-1ab8-4f6e-9e04-ce860de5bb8b"
}

响应

{
  "requestId": "e0d08a9f-1ab8-4f6e-9e04-ce860de5bb8b",
  "balance": {
    "value": "4406",
    "currency": "Points"
  }
}

撤回、作废或取消:成功的交易

请求

{
    "requestId": "700509c1-bf84-494d-8509-c1bf84294dda",
    "sourceConfirmationId": "-9223371998457789896",
    "membershipId": "************9716",
    "cancellationDetails": {
      "redemptionConfirmationId": "expedia-680d54c2-cf15-4142-8d54-c2cf15c1425e"
    }
}

响应

{
  "status": "Approved",
  "requestId": "700509c1-bf84-494d-8509-c1bf84294dda",
  "transactionDateTime": "2023-04-20T01:12:57.125884Z",
  "cancellationDetails": {
    "redemptionConfirmationId": "expedia-680d54c2-cf15-4142-8d54-c2cf15c1425e",
    "cancellationConfirmationId": "expedia-700509c1-bf84-494d-8509-c1bf84294dda"
  },
  "balance": {
    "value": "8142",
    "currency": "Points"
  }
  }
您觉得这个页面有用吗?
我们该如何改进这些内容?
感谢您帮助我们改进!