Update Redemption Rule

Description

The updateRedemptionRule endpoint is used to update/modify a Redemption Rule of the Loyalty Rewards Program.

Request

Endpoint

/ui/v1/updateRedemptionRule

Method

POST
Content-Type: application/json
Authorization: $TOKEN

Note

Replace $TOKEN in the request with the base64-encoded username/password combination in the format username:password.

Given a username of username and a password of password, the request header would appear as follows:

Content-Type: application/json
Authorization: dXNlcm5hbWU6cGFzc3dvcmQ=

Request Body

{
    "id": 1,
    "createdDateTime": 1550083652000,
    "lastUpdatedDateTime": 1560958057000,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 1,
    "lastModifiedUserId": "642",
    "numberOfPoints": "1",
    "amountIssued": {
        "amount": "0.01",
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1733858673000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "minimumRedeemablePoints": "500",
    "maximumRedeemablePointsPerTxn": null,
    "maximumRedeemablePointsPerDay": null,
    "redemptionCategory": {
        "value": "Default",
        "name": "DEFAULT"
    },
    "redemptionRuleStatus": {
        "value": "Active",
        "name": "ACTIVE"
    },
    "description": "For each 1000 points you earn, you can redeem a $10.00 reward that can be applied to your next purchase. Points may be redeemed once you reach the minimum point value i.e., 500 Points.",
    "offsetRedeemablePoints": null,
    "loyaltyTierLevel": {
        "nickname": "None",
        "name": "TIER1"
    },
    "merchantId": 1,
    "createdUserName": null,
    "message": null,
    "maxRedeemablePointsRadioButton": "MAX_REDEEMABLE_POINTS_PER_TXN"
}

Response

{
    "id": 1,
    "createdDateTime": 1550083652000,
    "lastUpdatedDateTime": 1560958057000,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 1,
    "lastModifiedUserId": 642,
    "numberOfPoints": 1,
    "amountIssued": {
        "amount": 0.01,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1733858673000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "minimumRedeemablePoints": 500,
    "maximumRedeemablePointsPerTxn": null,
    "maximumRedeemablePointsPerDay": null,
    "redemptionCategory": {
        "value": "Default",
        "name": "DEFAULT"
    },
    "redemptionRuleStatus": {
        "value": "Active",
        "name": "ACTIVE"
    },
    "description": "For each 1000 points you earn, you can redeem a $10.00 reward that can be applied to your next purchase. Points may be redeemed once you reach the minimum point value i.e., 500 Points.",
    "offsetRedeemablePoints": null,
    "loyaltyTierLevel": {
        "nickname": "Turquoise",
        "name": "TIER1"
    },
    "merchantId": 1,
    "createdUserName": null,
    "message": {
        "code": "39",
        "type": {
            "name": "SUCCESS"
        },
        "include_i_icon": false,
        "description": "REDEMPTION_RULE_MODIFICATION_SUCCESS",
        "parameters": null
    }
}

Updated As Of Version 6.6.x