curl --request PUT \
--url https://loyalty-admin.appstle.com/api/external/update-discount-code-status \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '
{
"discountCode": "<string>",
"status": "<string>"
}
'{
"availablePoints": 123,
"pendingPoints": 123,
"creditedPoints": 123,
"spentAmount": 123,
"storeCreditBalance": 123,
"achievableTierId": 123,
"currentVipTier": "<string>",
"vipTierExpiredAt": "2023-11-07T05:31:56Z",
"createAt": "2023-11-07T05:31:56Z",
"rewardedForFacebook": true,
"rewardedForPinterest": true,
"rewardedForTwitter": true,
"rewardedForInstagram": true,
"rewardedForYoutube": true,
"rewardedForTiktok": true,
"rewardedForNewsLetter": true,
"rewardedForSms": true,
"referredCompleted": 123,
"referralLink": "<string>",
"dob": "2023-12-25",
"rewards": [
{
"shop": "<string>",
"customerId": 123,
"discountCode": "<string>",
"createAt": "2023-11-07T05:31:56Z",
"id": 123,
"description": "<string>",
"pointTransactionId": 123,
"pointRedeemRuleId": 123,
"usedAt": "2023-11-07T05:31:56Z",
"orderId": 123,
"orderName": "<string>",
"expireDate": "2023-11-07T05:31:56Z",
"variantId": 123,
"discountCodeId": "<string>",
"productData": "<string>",
"usageCount": 123,
"amount": 123,
"lastExpiryReminderSentDate": "2023-11-07T05:31:56Z"
}
],
"rewardedForCreatingAccount": true,
"rewardedForSharingOnFacebook": true,
"rewardedForSharingOnX": true,
"expiringPointsAmount": 123,
"pointsExpireAt": "2023-11-07T05:31:56Z"
}Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
API key for authentication
Discount code status updated and customer loyalty details returned
ACTIVE, INACTIVE, EXCLUDED, EXCLUDED_BY_CUSTOMER Show child attributes
curl --request PUT \
--url https://loyalty-admin.appstle.com/api/external/update-discount-code-status \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <x-api-key>' \
--data '
{
"discountCode": "<string>",
"status": "<string>"
}
'{
"availablePoints": 123,
"pendingPoints": 123,
"creditedPoints": 123,
"spentAmount": 123,
"storeCreditBalance": 123,
"achievableTierId": 123,
"currentVipTier": "<string>",
"vipTierExpiredAt": "2023-11-07T05:31:56Z",
"createAt": "2023-11-07T05:31:56Z",
"rewardedForFacebook": true,
"rewardedForPinterest": true,
"rewardedForTwitter": true,
"rewardedForInstagram": true,
"rewardedForYoutube": true,
"rewardedForTiktok": true,
"rewardedForNewsLetter": true,
"rewardedForSms": true,
"referredCompleted": 123,
"referralLink": "<string>",
"dob": "2023-12-25",
"rewards": [
{
"shop": "<string>",
"customerId": 123,
"discountCode": "<string>",
"createAt": "2023-11-07T05:31:56Z",
"id": 123,
"description": "<string>",
"pointTransactionId": 123,
"pointRedeemRuleId": 123,
"usedAt": "2023-11-07T05:31:56Z",
"orderId": 123,
"orderName": "<string>",
"expireDate": "2023-11-07T05:31:56Z",
"variantId": 123,
"discountCodeId": "<string>",
"productData": "<string>",
"usageCount": 123,
"amount": 123,
"lastExpiryReminderSentDate": "2023-11-07T05:31:56Z"
}
],
"rewardedForCreatingAccount": true,
"rewardedForSharingOnFacebook": true,
"rewardedForSharingOnX": true,
"expiringPointsAmount": 123,
"pointsExpireAt": "2023-11-07T05:31:56Z"
}