Skip to main content
The wallet summary and wallet quote endpoints accept either customer authentication method described in Authentication. Referral and promotion endpoints require a Customer access token and x-partner-id.
Examples on this page use a Customer access token. With the Partner API key and External user ID method, replace the 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:
Response:
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. Send cartValue to include a checkout quote. Request:
Response:
To apply balances during checkout, send useRewardPoints: true or useWalletCash: true in POST /orders.

Get referral details

Request:
Response:
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:
Response: