Salesforce Decode
Salesforcedecode
Back to questions
Headless 360Intermediateloyaltycheckoutredemption

Design headless loyalty redemption at checkout API

Real World Scenario

Shoppers cannot apply loyalty points in headless checkout though points show in profile API.

Expected Answer

• Basket hook or custom API applying points discount with validation • Real-time points balance check against loyalty system • Rollback points on order cancellation via compensating transaction • Minimum redemption thresholds enforced server-side • Display points earned preview before order submit • Audit log linking order to points debit/credit

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Direct answer: Basket hook or custom API applying points discount with validation Also consider: Real-time points balance check against loyalty system In practice: Rollback points on order cancellation via compensating transaction Balance speed of delivery with maintainability.

Architect Perspective

Loyalty at checkout is transactional—profile display alone insufficient without basket integration.