Update Issuance Rule
Description¶
The updateIssuanceRule
endpoint is used to update a Issuance Rule of the Loyalty Rewards Program.
Request¶
Endpoint¶
/ui/v1/updateIssuanceRule
Method¶
POST
Header¶
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": 27,
"createdDateTime": 1560873261000,
"lastUpdatedDateTime": 1560956435000,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 1,
"lastModifiedUserId": "340",
"pointsType": {
"value": "Flat",
"name": "FLAT"
},
"multiplierPoints": null,
"issuanceRuleStatus": {
"value": "Active",
"name": "ACTIVE"
},
"loyaltyTierLevel": {
"nickname": "None",
"name": "NONE"
},
"flatPoints": "100",
"bonusPointsPerOffer": null,
"bonusPointsPerDay": null,
"productId": null,
"quantityFrom": null,
"quantityTo": null,
"ruleValidFromDateTime": 1560913140000,
"ruleValidToDateTime": 1561003140000,
"pointsNeverExpireInd": true,
"pointsExpirationInMonths": 24,
"channel": {
"id": 22,
"channelName": "Authorize.net",
"channelStatus": {
"name": "DELETED"
},
"channelType": {
"name": "EXTERNAL"
},
"createdDateTime": 1509740582000,
"merchantId": 1,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 14,
"lastModifiedUserId": 1,
"industryType": {
"name": "ECOMMERCE"
},
"allowCashAsPaymentMethodInd": true,
"allowMoneyOrderAsPaymentMethodInd": false,
"allowPaperCheckAsPaymentMethodInd": false,
"allowEStoreCreditAsPaymentMethodInd": false,
"paymentMethods": [
{
"id": 104,
"paymentMethodType": {
"value": "Credit Card",
"name": "CREDIT_CARD"
},
"paymentGateway": {
"value": "Authorize.Net",
"name": "AUTHORIZENET"
},
"cardBrand": {
"value": "VISA",
"name": "VISA"
},
"cardId": 201,
"createdUserId": 14,
"lastModifiedUserId": 1,
"createdDateTime": 1509740582000,
"lastUpdatedDateTime": 1729832507000,
"position": 56,
"merchantId": 1
},
{
"id": 111,
"paymentMethodType": {
"value": "eCheck (ACH)",
"name": "ECHECK"
},
"paymentGateway": {
"value": "Authorize.Net",
"name": "AUTHORIZENET"
},
"cardBrand": {
"value": "eCheck (ACH)",
"name": "ECHECK"
},
"cardId": null,
"createdUserId": 14,
"lastModifiedUserId": 1,
"createdDateTime": 1510070753000,
"lastUpdatedDateTime": 1729832507000,
"position": 62,
"merchantId": 1
},
{
"id": 113,
"paymentMethodType": {
"value": "VISA Checkout",
"name": "VISA_CHECKOUT"
},
"paymentGateway": {
"value": "Authorize.Net",
"name": "AUTHORIZENET"
},
"cardBrand": {
"value": "VISA Checkout",
"name": "VISA_CHECKOUT"
},
"cardId": null,
"createdUserId": 14,
"lastModifiedUserId": 1,
"createdDateTime": 1510241252000,
"lastUpdatedDateTime": 1729832507000,
"position": 63,
"merchantId": 1
}
],
"allowDynamicRoutingCapabilityInd": false,
"secondaryPaymentGateway": null,
"tertiaryPaymentGateway": null,
"userCount": null,
"assignedPaymentMethods": null,
"message": null,
"paymentMethodsCount": null,
"merchantName": null
},
"offerDescription": "Exclusive Offer",
"minimumAmountRequiredInd": false,
"maximumDurationInMonths": null,
"offerRedemptionLimit": {
"value": "No Limit",
"name": "NO_LIMIT"
},
"cardNetworkName": null,
"merchantId": 1,
"fromAmount": {
"amount": null,
"currency": {
"id": 1,
"currencyCode": "USD",
"currencyText": "United States Dollar",
"currencySymbol": "$",
"fractionalUnit": "Cent",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": true,
"createdDateTime": 1608260908000,
"isoNumericCode": "840",
"isoCountryCode": "840"
}
},
"toAmount": {
"amount": null,
"currency": {
"id": 1,
"currencyCode": "USD",
"currencyText": "United States Dollar",
"currencySymbol": "$",
"fractionalUnit": "Cent",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": true,
"createdDateTime": 1608260908000,
"isoNumericCode": "840",
"isoCountryCode": "840"
}
},
"minimumAmount": {
"amount": null,
"currency": {
"id": 1,
"currencyCode": "USD",
"currencyText": "United States Dollar",
"currencySymbol": "$",
"fractionalUnit": "Cent",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": true,
"createdDateTime": 1608260908000,
"isoNumericCode": "840",
"isoCountryCode": "840"
}
},
"createdUserName": null,
"message": null,
"fromTime": 1560913140000,
"toTime": 1561003140000,
"sRuleValidFromDateTime": "2019-06-18",
"sRuleValidToDateTime": "2019-06-19"
}
Response¶
{
"id": 27,
"createdDateTime": 1560873261000,
"lastUpdatedDateTime": 1560956435000,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 1,
"lastModifiedUserId": 340,
"pointsType": {
"value": "Flat",
"name": "FLAT"
},
"multiplierPoints": null,
"issuanceRuleStatus": {
"value": "Active",
"name": "ACTIVE"
},
"loyaltyTierLevel": {
"nickname": "None",
"name": "NONE"
},
"flatPoints": 100,
"bonusPointsPerOffer": null,
"bonusPointsPerDay": null,
"productId": null,
"quantityFrom": null,
"quantityTo": null,
"ruleValidFromDateTime": 1560913140000,
"ruleValidToDateTime": 1561003140000,
"pointsNeverExpireInd": true,
"pointsExpirationInMonths": 24,
"channel": {
"id": 22,
"channelName": "Authorize.net",
"channelStatus": {
"name": "DELETED"
},
"channelType": {
"name": "EXTERNAL"
},
"createdDateTime": 1509740582000,
"merchantId": 1,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 14,
"lastModifiedUserId": 1,
"industryType": {
"name": "ECOMMERCE"
},
"allowCashAsPaymentMethodInd": true,
"allowMoneyOrderAsPaymentMethodInd": false,
"allowPaperCheckAsPaymentMethodInd": false,
"allowEStoreCreditAsPaymentMethodInd": false,
"paymentMethods": [
{
"id": 104,
"paymentMethodType": {
"value": "Credit Card",
"name": "CREDIT_CARD"
},
"paymentGateway": {
"value": "Authorize.Net",
"name": "AUTHORIZENET"
},
"cardBrand": {
"value": "VISA",
"name": "VISA"
},
"cardId": 201,
"createdUserId": 14,
"lastModifiedUserId": 1,
"createdDateTime": 1509740582000,
"lastUpdatedDateTime": 1729832507000,
"position": 56,
"merchantId": 1
},
{
"id": 111,
"paymentMethodType": {
"value": "eCheck (ACH)",
"name": "ECHECK"
},
"paymentGateway": {
"value": "Authorize.Net",
"name": "AUTHORIZENET"
},
"cardBrand": {
"value": "eCheck (ACH)",
"name": "ECHECK"
},
"cardId": null,
"createdUserId": 14,
"lastModifiedUserId": 1,
"createdDateTime": 1510070753000,
"lastUpdatedDateTime": 1729832507000,
"position": 62,
"merchantId": 1
},
{
"id": 113,
"paymentMethodType": {
"value": "VISA Checkout",
"name": "VISA_CHECKOUT"
},
"paymentGateway": {
"value": "Authorize.Net",
"name": "AUTHORIZENET"
},
"cardBrand": {
"value": "VISA Checkout",
"name": "VISA_CHECKOUT"
},
"cardId": null,
"createdUserId": 14,
"lastModifiedUserId": 1,
"createdDateTime": 1510241252000,
"lastUpdatedDateTime": 1729832507000,
"position": 63,
"merchantId": 1
}
],
"allowDynamicRoutingCapabilityInd": false,
"secondaryPaymentGateway": null,
"tertiaryPaymentGateway": null,
"userCount": null,
"assignedPaymentMethods": null,
"message": null,
"paymentMethodsCount": null,
"merchantName": null
},
"offerDescription": "Exclusive Offer",
"minimumAmountRequiredInd": false,
"maximumDurationInMonths": null,
"offerRedemptionLimit": {
"value": "No Limit",
"name": "NO_LIMIT"
},
"cardNetworkName": null,
"merchantId": 1,
"fromAmount": {
"amount": null,
"currency": {
"id": 1,
"currencyCode": "USD",
"currencyText": "United States Dollar",
"currencySymbol": "$",
"fractionalUnit": "Cent",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": true,
"createdDateTime": 1608260908000,
"isoNumericCode": "840",
"isoCountryCode": "840"
}
},
"toAmount": {
"amount": null,
"currency": {
"id": 1,
"currencyCode": "USD",
"currencyText": "United States Dollar",
"currencySymbol": "$",
"fractionalUnit": "Cent",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": true,
"createdDateTime": 1608260908000,
"isoNumericCode": "840",
"isoCountryCode": "840"
}
},
"minimumAmount": {
"amount": null,
"currency": {
"id": 1,
"currencyCode": "USD",
"currencyText": "United States Dollar",
"currencySymbol": "$",
"fractionalUnit": "Cent",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": true,
"createdDateTime": 1608260908000,
"isoNumericCode": "840",
"isoCountryCode": "840"
}
},
"createdUserName": null,
"message": {
"code": "35",
"type": {
"name": "SUCCESS"
},
"include_i_icon": false,
"description": "ISSUANCE_RULE_MODIFICATION_SUCCESS",
"parameters": null
},
"fromTime": 1560913140000,
"toTime": 1561003140000,
"sRuleValidFromDateTime": "2019-06-18",
"sRuleValidToDateTime": "2019-06-19"
}
Updated As Of Version 6.6.x