{"templateId":"openapi_docs","sharedDataIds":{"openAPIDocsStore":"oas-api/liveops/index.yaml","sidebar":"sidebar-liveops-en.sidebars.yaml"},"props":{"definitionId":"api/liveops/index.yaml","dynamicMarkdocComponents":[],"baseSlug":"/api/liveops","seo":{"title":"Overview","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"description":"Daily rewards motivate users to log into the store every day to receive free items. The behavior when a day is skipped depends on the [chain type](/api/liveops/daily-chain-admin/admin-create-daily-chain#daily-chain-admin/admin-create-daily-chain/t=request&path=&oneof=0/type). For daily rewards to work correctly, you need to configure [user authentication](/api/catalog#section/Authentication). Unauthenticated users can see the full daily reward chain but cannot claim rewards. For detailed information on configuring daily rewards, refer to the [Daily rewards](/liveops/promotion-tools/daily-rewards/) section.\n\nChains are configured using the API calls from the **Admin** subsection. To grant rewards, use the API calls from the **Client** subsection.\n\nDaily chain configuration scenario:\n\n1. Create items using the API calls from the **Admin** subsection of the [Virtual items and currency](/api/catalog/virtual-items-currency-admin/admin-get-virtual-items-list/) or [Bundles](/api/catalog/bundles-admin/admin-create-bundle) groups.\n2. Create a chain using the [Create daily reward](/api/liveops/daily-chain-admin/admin-create-daily-chain) API call.\n3. Activate the chain by passing the `\"is_enabled\": true` parameter to the [Create daily reward](/api/liveops/daily-chain-admin/admin-create-daily-chain/) API call.\n4. Request the list of available chains using the [Get current user's daily rewards](/api/liveops/daily-chain-client/get-daily-chains-list) API call, passing the [user JWT](/api/catalog/section/authentication/authentication-using-user's-jwt). The response contains all active chains with their steps and statuses.\n5. Set up item granting via [webhooks](/webhooks/section/osnovnye-polozheniya).\n6. Grant the user their daily reward using the [Claim daily reward step](/api/liveops/daily-chain-client/claim-user-daily-chain-step-reward) API call, passing `daily_chain_id` and `step_number`.\n\n\n![Daily rewards](https://cdn.xsolla.net/developers/current/images/api_docs/daily-rewards.svg)\n"},"itemId":"daily-chain-overview","disableAutoScroll":true,"metadata":{},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"xsolla.redocly.app","port":4000,"ipAddress":"185.30.21.18"},"lang":"en","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"realm"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/api/liveops/daily-chain-overview","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}