Skip to main content

Wallet & Loyalty API Endpoints

Customer-Facing (Website)

All endpoints require Auth0 JWT. Guest resolved via CurrentAuthContext.

Wallet

MethodPathDescription
GET/api/walletGet wallet balance, status, next expiry info
GET/api/wallet/transactionsGet transaction history
POST/api/wallet/holdPlace hold for booking { bookingId, amount }{ transactionId }
POST/api/wallet/confirm/{transactionId}Confirm hold (deduct from wallet)
POST/api/wallet/release/{transactionId}Release hold (cancel reservation)

Loyalty

MethodPathDescription
GET/api/loyaltyGet loyalty details (tier, benefits, reward rule, progression)
GET/api/loyalty/tiersList all available tiers
POST/api/loyalty/opt-inEnroll in loyalty program + create wallet
GET/api/loyalty/walletGet wallet with expiry details
GET/api/loyalty/wallet/applicable?bookingAmount=XCalculate applicable wallet amount
GET/api/loyalty/reward/estimate?bookingAmount=XEstimate reward for a booking

Admin API

All endpoints available at both /api/v1/admin/... and /api/v1/pms/... paths.

Wallet Management

MethodPathDescription
GET/walletsList all wallets
GET/wallets/{id}Get wallet by ID
GET/wallets/account/{accountId}Get wallet by account
POST/walletsCreate wallet
PUT/wallets/{id}Update wallet
PUT/wallets/{id}/status?status=XUpdate wallet status
DELETE/wallets/{id}Soft-delete wallet

Wallet Transactions (read-only)

MethodPathDescription
GET/wallet-transactions/wallet/{walletId}Transactions by wallet
GET/wallet-transactions/booking/{bookingId}Transactions by booking
GET/wallet-transactions/{id}Transaction by ID

Wallet Reward Rules

MethodPathDescription
GET/wallet-reward-rulesList all rules
GET/wallet-reward-rules/{id}Get rule by ID
POST/wallet-reward-rulesCreate/update rule
DELETE/wallet-reward-rules/{id}Delete rule

Loyalty Management

MethodPathDescription
GET/loyaltyList all loyalty records
GET/loyalty/{id}Get by ID
GET/loyalty/account/{accountId}Get by account
POST/loyaltyCreate loyalty record
PUT/loyalty/{id}Update loyalty
DELETE/loyalty/{id}Soft-delete

Loyalty Tiers

MethodPathDescription
GET/loyalty-tiersList all tiers
GET/loyalty-tiers/{id}Get tier by ID
POST/loyalty-tiersCreate tier
PUT/loyalty-tiers/{id}Update tier
DELETE/loyalty-tiers/{id}Delete tier
GET/loyalty-tiers/{id}/benefitsGet benefits for tier
POST/loyalty-tiers/{id}/benefitsSet benefits [benefitId1, benefitId2]
POST/loyalty-tiers/re-evaluateRe-evaluate all member tiers

Cancellation Plan Overrides

MethodPathDescription
GET/cancellation-plan-overrides?listingId=XGet overrides for listing
POST/cancellation-plan-overridesUpsert override
DELETE/cancellation-plan-overrides?listingId=X&channelId=Y&cancellationPlanId=ZDelete override