# Update customer loyalty status Updates the loyalty program status for the authenticated customer. Allows customers to opt-in, opt-out, or exclude themselves from the loyalty program. Status changes are logged in the activity log with appropriate event types (CUSTOMER_EXCLUDED, CUSTOMER_INCLUDED). When a customer is excluded, they stop earning points but retain existing points and rewards. Endpoint: POST /loyalty/cp/api/update-customer-status ## Request fields (application/json): - `customerId` (integer) Unique identifier of the customer - `dob` (string) Customer date of birth Example: "2026-01-12" - `status` (string) Customer loyalty status Enum: "ACTIVE", "INACTIVE", "EXCLUDED", "EXCLUDED_BY_CUSTOMER", "ACTIVE", "INACTIVE", "EXCLUDED", "EXCLUDED_BY_CUSTOMER" ## Response 200 fields (application/json): - `id` (integer) - `shop` (string, required) - `customerId` (integer, required) - `firstName` (string) - `lastName` (string) - `email` (string) - `status` (string) Enum: "ACTIVE", "INACTIVE", "EXCLUDED", "EXCLUDED_BY_CUSTOMER" - `createAt` (string, required) - `dob` (string) - `enableEmail` (boolean) - `token` (string) - `redeemLimit` (integer) - `redeemLimitOnce` (integer) - `vipTier` (string) - `vipTierId` (integer) - `vipTierSummary` (string) - `availablePoints` (number, required) - `pendingPoints` (number, required) - `displayName` (string) - `vipTierExpiredAt` (string) - `spentAmount` (number) - `lastActivity` (string) - `ordersCount` (integer) - `lastMonthlyReminderSentDate` (string) - `redeemedPoints` (number) - `lastRewardExpiryReminderSentDate` (string) - `vipAssignType` (string) Enum: "MANUAL", "AUTO_RENEWAL", "RENEWAL_ON_HIGHER_TIER" - `phone` (string) - `loyaltyProgramEnabled` (boolean) - `emailSetting` (string) - `skipReview` (boolean) - `updatedSettings` (string) - `storeCreditAccountId` (string) - `emailBouncedOrFailed` (boolean) - `availableStoreCredits` (number) - `isDeletedFromShopify` (boolean) - `enableEmailMarketing` (boolean) - `enableSmsMarketing` (boolean) - `tags` (string) - `vipTierAmount` (number) ## Response 400 fields ## Response 401 fields