x-partner-id.
Authorization and x-partner-id headers with x-api-key and x-external-user-id.
Reward Points and Wallet Cash are separate balances:
Quote wallet usage
Use this endpoint to calculate Reward Points, Wallet Cash, delivery charges, and the remaining payable amount before checkout.
Request:
useRewardPoints and useWalletCash default to true here but to false in POST /orders, so send both explicitly. deliveryMethod defaults to STANDARD. Send deliveryEligibilityCartValue when the cart value for delivery eligibility differs from cartValue. It defaults to cartValue, and Keystone subtracts applied Reward Points from it before checking free delivery.
Get wallet
Returns both balances, recent transactions, and active Reward Point rules. SendcartValue to include a checkout quote.
Request:
useRewardPoints: true or useWalletCash: true in POST /orders.
Get referral details
Request:
shareUrl is null while the referral program is off (program.isEnabled: false).
Redeem wallet promotion
Each customer can redeem a promotion code once. Successful redemptions credit Reward Points.
Request: