---
updatedAt: 2026-10-29T15:41:23.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Redemption Below Threshold

Sent when a **Custom Coupon** reward is running low on uploaded codes: when the unused codes reach the reward's threshold, then half, a quarter and an eighth of it, and 0.

To receive it, add `swell/redemption_code/below_threshold` to `events` when you [create a filter](ref:create-filter), then [subscribe](ref:create-subscription) the filter to your target. Yotpo sends the event to your target URL as a `POST` with this JSON body.

Set the threshold on the Custom Coupon in your Yotpo Loyalty admin.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yotpo Webhooks",
    "description": "Events Yotpo sends to your webhook URL. Each event is an HTTP POST with a JSON body. To receive them, create a webhook target, a filter and a subscription.",
    "version": "3.0"
  },
  "webhooks": {
    "swell/redemption_code/below_threshold": {
      "post": {
        "operationId": "swell-redemption-code-below-threshold",
        "summary": "Redemption Below Threshold",
        "description": "Sent when a **Custom Coupon** reward is running low on uploaded codes: when the unused codes reach the reward's threshold, then half, a quarter and an eighth of it, and 0.\n\nTo receive it, add `swell/redemption_code/below_threshold` to `events` when you [create a filter](ref:create-filter), then [subscribe](ref:create-subscription) the filter to your target. Yotpo sends the event to your target URL as a `POST` with this JSON body.\n\nSet the threshold on the Custom Coupon in your Yotpo Loyalty admin.",
        "security": [],
        "parameters": [
          {
            "name": "X-Yotpo-Webhooks-Event-Type",
            "in": "header",
            "required": true,
            "description": "The event name. Matches `topic` in the body.",
            "schema": {
              "type": "string"
            },
            "example": "swell/redemption_code/below_threshold"
          },
          {
            "$ref": "#/components/parameters/WebhookTenantType"
          },
          {
            "$ref": "#/components/parameters/WebhookTenantId"
          },
          {
            "$ref": "#/components/parameters/WebhookMessageId"
          },
          {
            "$ref": "#/components/parameters/WebhookMessageIdPerTarget"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "topic": {
                    "description": "The event name, `swell/redemption_code/below_threshold`.",
                    "type": "string"
                  },
                  "name": {
                    "description": "The display name of the event.",
                    "type": "string"
                  },
                  "redemption_option": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "The reward (redemption option) ID.",
                        "type": "integer"
                      },
                      "name": {
                        "description": "The reward name, for example `$10 off`.",
                        "type": "string"
                      },
                      "description": {
                        "description": "The reward description shown to customers.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "icon": {
                        "description": "The reward image: an image URL or a Font Awesome class name such as `fa-dollar`.",
                        "type": "string"
                      },
                      "cost_text": {
                        "description": "The points cost as display text, for example `500 points`.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "amount": {
                        "description": "The points the reward costs. `0` for `variable` rewards, where the customer chooses how many points to redeem.",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "applies_to_product_type": {
                        "description": "Which products the reward applies to, for example `ALL`.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "duration": {
                        "description": "How long the reward lasts, for example `single_use`.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "type": {
                        "description": "The reward type, for example `Coupon`.",
                        "type": "string"
                      },
                      "discount_amount_cents": {
                        "description": "The discount in cents for fixed-amount rewards.",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "discount_rate_cents": {
                        "description": "For `variable` rewards, the discount in cents for each point redeemed.",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "discount_percentage": {
                        "description": "The discount percentage for percentage rewards. `null` or `0` for other types.",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "discount_type": {
                        "description": "How the discount works, for example `fixed_amount`, `percentage`, `variable`, `custom_reward` or `donation`.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "description": "An object describing the redemption option that is running low on redemption codes."
                  },
                  "redemption_option_id": {
                    "description": "The unique identifier of the redemption option that has hit the thresholds.",
                    "type": "integer"
                  },
                  "redemption_option_name": {
                    "description": "The reward name.",
                    "type": "string"
                  },
                  "number_of_unused_codes": {
                    "description": "The number of unused codes left in the redemption option.",
                    "type": "integer"
                  }
                }
              },
              "example": {
                "topic": "swell/redemption_code/below_threshold",
                "name": "Swell Redemption Code Below Threshold",
                "redemption_option": {
                  "id": 149,
                  "name": "$5.00 Off",
                  "description": "Get $5.00 off your next purchase for 500 points",
                  "icon": "fa-dollar",
                  "cost_text": "500 Points",
                  "amount": 500,
                  "applies_to_product_type": "ALL",
                  "duration": "single_use",
                  "type": "Coupon",
                  "discount_amount_cents": 0,
                  "discount_rate_cents": null,
                  "discount_percentage": null,
                  "discount_type": "custom"
                },
                "redemption_option_id": 149,
                "redemption_option_name": "$5.00 Off",
                "number_of_unused_codes": 0
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Return any 2xx status quickly to acknowledge the event. Without one, Yotpo retries at least 10 times with exponential backoff."
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "WebhookMessageId": {
        "name": "WebhookMessageId",
        "in": "header",
        "required": true,
        "description": "A unique ID for the event.",
        "schema": {
          "type": "string"
        },
        "example": "2f1c7a8e-5b1d-4c39-9a0e-3d7f2b6c1e44"
      },
      "WebhookMessageIdPerTarget": {
        "name": "WebhookMessageIdPerTarget",
        "in": "header",
        "required": true,
        "description": "A unique ID for this delivery to this target. Use it to ignore duplicates.",
        "schema": {
          "type": "string"
        },
        "example": "066c9f28-3e87-45d5-a67e-879d6090d989"
      },
      "WebhookTenantId": {
        "name": "X-Yotpo-Webhooks-Tenant-Id",
        "in": "header",
        "required": true,
        "description": "Your store ID.",
        "schema": {
          "type": "string"
        },
        "example": "YOUR_STORE_ID"
      },
      "WebhookTenantType": {
        "name": "X-Yotpo-Webhooks-Tenant-Type",
        "in": "header",
        "required": true,
        "description": "The kind of account the event belongs to.",
        "schema": {
          "type": "string"
        },
        "example": "store"
      }
    }
  }
}
```

# Sibling pages

* [Coupon Earned](https://docs.yotpo.com/reference/swell-redemption-created.md)
* [Custom Reward Redeemed](https://docs.yotpo.com/reference/loyalty-custom-reward-created.md)
* [Customer Birthday](https://docs.yotpo.com/reference/swell-customer-birthday.md)
* [Customer Birthday Captured](https://docs.yotpo.com/reference/swell-birthday-captured.md)
* [Customer Anniversary](https://docs.yotpo.com/reference/swell-customer-anniversary.md)
* [Customer Anniversary Captured](https://docs.yotpo.com/reference/swell-anniversary-captured.md)
* [Donation Created](https://docs.yotpo.com/reference/loyalty-donation-created.md)
* [Account Created](https://docs.yotpo.com/reference/swell-account-created.md)
* [Loyalty Opt In](https://docs.yotpo.com/reference/loyalty-opt-in.md)
* [Loyalty Opt Out](https://docs.yotpo.com/reference/loyalty-opt-out.md)
* [Points Changed](https://docs.yotpo.com/reference/swell-points-changed.md)
* [Points Earned](https://docs.yotpo.com/reference/swell-points-earned.md)
* [Points Reminder](https://docs.yotpo.com/reference/swell-points-reminder.md)
* [Points Expiration Reminder](https://docs.yotpo.com/reference/loyalty-expiration-reminder.md)
* [Redemption Cancellation Request](https://docs.yotpo.com/reference/swell-point-redemption-cancellation-request.md)
* [Redemption Reminder](https://docs.yotpo.com/reference/swell-redemption-reminder.md)
* [Referral Link Share](https://docs.yotpo.com/reference/swell-referral-share.md)
* [Referral Link Share (2.0)](https://docs.yotpo.com/reference/yotpo-referral-shared.md)
* [Referral Share Reminder](https://docs.yotpo.com/reference/swell-referral-share-reminder.md)
* [Referral Product Share Link](https://docs.yotpo.com/reference/loyalty-referral-product-share.md)
* [Referral Product Share Reminder](https://docs.yotpo.com/reference/loyalty-referral-product-share-reminder.md)
* [Referral Completed](https://docs.yotpo.com/reference/swell-referral-completed.md)
* [Referral Completed (2.0)](https://docs.yotpo.com/reference/yotpo-referral-completed.md)
* [Tier Earned](https://docs.yotpo.com/reference/swell-tier-earned.md)
* [Tier Lost](https://docs.yotpo.com/reference/swell-tier-lost.md)
* [Tier Status Changed](https://docs.yotpo.com/reference/swell-tier-status-changed.md)
* [Tier Expiration Reminder](https://docs.yotpo.com/reference/yotpo-tier-expiration-reminder.md)
* [CommerceCloud Integration Disabled](https://docs.yotpo.com/reference/loyalty-integrations-integration-disabled.md)