| Type | Purpose | Default Expiration | Requirements |
|---|---|---|---|
auth | Customer App session and API calls as the customer | 7 days | Customer must have at least one pass |
download | Wallet pass download link (Apple Wallet / Google Wallet) | Validated against OneTimeLink | Customer must have a generated OneTimeLink |
expires_in parameter.accessToken in Base64 to build customer-facing URLs:| Link Type | URL Format |
|---|---|
| Download | https://jeri.link/{slug}/download?token={base64Token} |
| Session | https://jeri.link/{slug}/{base64Token}?redirectTo={path} |
redirectTo paths for session URLs| Path | Section |
|---|---|
profile | Customer profile |
loyalty/rewards | Available rewards |
loyalty/earning-flows | Ways to earn points |
referrals | Referral program |
coupons | Customer coupons |
transactions | Transaction history |
auth token can be used as a Bearer token to make API calls on behalf of the customer:Authorization: Bearer {accessToken}Note: Download URLs are automatically synced to Shopify metafields ( jericommerce.download-wallet-pass-url) and Klaviyo profiles (jericommerce_download_wallet_pass_url).
curl --location -g --request GET 'https://api.jericommerce.com/v1/programs//customers/token?email&token_type&expires_in' \
--header 'api-key: <api-key>'{
"accessToken": "string"
}