샘플 요청 및 응답: 로열티
사용: 분할 결제 거래 성공
요청
{
"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"
}
}