リクエストとレスポンスのサンプル : ロイヤルティ
利用 : 成功した分割払い取引
リクエスト
{
"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"
}
}