---
updatedAt: 2026-08-12T06:51:30.000Z
agentTools:
  projectIndex: https://developer.loopwork.co/llms.txt
---

# Mystery reward

This endpoint allows you to fetch mystery rewards details for a given subscription ID in a specific locale

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Storefront API",
    "version": "2023-10"
  },
  "servers": [
    {
      "url": "https://api.loopsubscriptions.com/storefront"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/2026-04/subscription/{subscriptionId}/mysteryReward": {
      "get": {
        "responses": {
          "200": {
            "description": "Mystery rewards details fetched successfully for the given subscription id",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "summary": "OK",
                    "value": {
                      "success": true,
                      "message": "Mystery rewards fetched successfully",
                      "data": [
                        {
                          "rewardsData": {
                            "configTexts": [
                              {
                                "key": "greetingsMessageCTA",
                                "value": "A special reward for you!"
                              },
                              {
                                "key": "claimRewardCTAText",
                                "value": "Tap to claim"
                              },
                              {
                                "key": "congratulationsText",
                                "value": "Here's you gift!"
                              },
                              {
                                "key": "continueWithSubscription",
                                "value": "Continue"
                              },
                              {
                                "key": "discountBadgeText",
                                "value": "{{discount_amount}} off"
                              },
                              {
                                "key": "discountBadgeDescription",
                                "value": "on next {{number_of_orders}} order(s)"
                              }
                            ],
                            "discountType": "FIXED_AMOUNT",
                            "claimBehavior": "ONLY_WHEN_CLAIMED",
                            "discountTitle": "MYSTERY_GIFT",
                            "discountValue": 0,
                            "automationFlowId": "12103",
                            "selectedVariants": [
                              {
                                "quantity": 1,
                                "variantImage": "https://cdn.shopify.com/s/files/1/0700/4969/3875/files/image_11_2a1f61b6-40f7-42c4-b7b9-5fb8b4871d8b.png?v=1747171866",
                                "variantTitle": "Full Color Box - Beige",
                                "productHandle": "full-color-box",
                                "productShopifyId": 8254387290291,
                                "variantShopifyId": 44684952305843
                              }
                            ],
                            "mysteryRewardType": "addMysteryRewardOnce",
                            "numberOfOrdersRecurringCycleLimit": 1
                          },
                          "actionStatus": "VIEWED",
                          "subscriptionOrderNumber": 4,
                          "source": "FLOWS",
                          "rewardStatus": "VIEWED",
                          "rewardId": "01KC3K0CVGQEDARAY71VV1RH9H"
                        }
                      ],
                      "code": "SUCCESS",
                      "pageInfo": null
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "subscriptionId",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true,
            "description": "The unique identifier for a subscription in Loop"
          },
          {
            "in": "query",
            "name": "locale",
            "schema": {
              "type": "string"
            }
          }
        ],
        "summary": "Mystery reward",
        "operationId": "get_2026-04-subscription-subscriptionid-mysteryreward",
        "description": "This endpoint allows you to fetch mystery rewards details for a given subscription ID in a specific locale"
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```