Sample requests and responses: Loyalty
Redemption: Successful split-pay transaction
Request
{
"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"
}
}
}
Response
{
"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"
}
}
Redemption: Failed full-points transaction
Request
{
"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"
}
}
}
Response
{
"status": "Declined",
"sourceConfirmationId": "-9223371998508439999",
"requestId": "9b791f14-cc41-428d-b91f-14cc41d28dec",
"declineReason": {
"reasonCode": "INSUFFICIENT_BALANCE",
"reasonMessage": "Insufficient balance in the account"
}
}
Refund: Successful transaction
Request
{
"requestId": "127eda66-a40c-493d-beda-66a40c193ded",
"sourceConfirmationId": "-9223371998458055588",
"membershipId": "************faff",
"refundDetails": {
"loyaltyRefundAmount": {
"value": "31504",
"currency": "Points"
},
"redemptionConfirmationId": "expedia-498bb4ea-8460-41dc-8bb4-ea8460b1dcb2"
}
}
Response
{
"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"
}
}
Balance request: Successful transaction
Request
{
"membershipId": "************e1bf",
"requestId": "e0d08a9f-1ab8-4f6e-9e04-ce860de5bb8b"
}
Response
{
"requestId": "e0d08a9f-1ab8-4f6e-9e04-ce860de5bb8b",
"balance": {
"value": "4406",
"currency": "Points"
}
}
Rollback, void, or cancel: Successful transaction
Request
{
"requestId": "700509c1-bf84-494d-8509-c1bf84294dda",
"sourceConfirmationId": "-9223371998457789896",
"membershipId": "************9716",
"cancellationDetails": {
"redemptionConfirmationId": "expedia-680d54c2-cf15-4142-8d54-c2cf15c1425e"
}
}
Response
{
"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"
}
}