From 01146d5c97ad4ea0070b4d93cf8e7ce42e99926e Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Tue, 24 Feb 2026 23:00:18 +0100 Subject: [PATCH] fix: correct earn points API path on loyalty terminal JS called /store/loyalty/points/earn but endpoint is POST /store/loyalty/points. Co-Authored-By: Claude Opus 4.6 --- app/modules/loyalty/static/store/js/loyalty-terminal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/loyalty/static/store/js/loyalty-terminal.js b/app/modules/loyalty/static/store/js/loyalty-terminal.js index 652272a6..5d2a97c3 100644 --- a/app/modules/loyalty/static/store/js/loyalty-terminal.js +++ b/app/modules/loyalty/static/store/js/loyalty-terminal.js @@ -220,7 +220,7 @@ function storeLoyaltyTerminal() { async earnPoints() { loyaltyTerminalLog.info('Earning points...', { amount: this.earnAmount }); - const response = await apiClient.post('/store/loyalty/points/earn', { + const response = await apiClient.post('/store/loyalty/points', { card_id: this.selectedCard.id, purchase_amount_cents: Math.round(this.earnAmount * 100), staff_pin: this.pinDigits