要求和回應範例:會員計畫
兌換:分期付款交易成功
要求
{
"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"
}
}