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

# Customer Anniversary

Sent on a customer's anniversary. Use it to send an anniversary email and tell the customer about any points or coupon from your Anniversary campaign.

To receive it, add `swell/customer/anniversary` 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.

Sent once a day, at 11 am UTC.

# 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/customer/anniversary": {
      "post": {
        "operationId": "swell-customer-anniversary",
        "summary": "Customer Anniversary",
        "description": "Sent on a customer's anniversary. Use it to send an anniversary email and tell the customer about any points or coupon from your Anniversary campaign.\n\nTo receive it, add `swell/customer/anniversary` 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\nSent once a day, at 11 am UTC.",
        "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/customer/anniversary"
          },
          {
            "$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/customer/anniversary`.",
                    "type": "string"
                  },
                  "name": {
                    "description": "The display name of the event.",
                    "type": "string"
                  },
                  "website_url": {
                    "description": "Your store's website URL.",
                    "type": "string"
                  },
                  "store_name": {
                    "description": "Your store's name.",
                    "type": "string"
                  },
                  "email": {
                    "description": "The email address of the customer who's anniversary it is.",
                    "type": "string"
                  },
                  "customer": {
                    "type": "object",
                    "properties": {
                      "total_spend_cents": {
                        "description": "Total spend recorded for the customer, in cents.",
                        "type": "integer"
                      },
                      "total_purchases": {
                        "description": "Number of purchases recorded for the customer.",
                        "type": "integer"
                      },
                      "perks_redeemed": {
                        "description": "Number of rewards the customer has redeemed.",
                        "type": "integer"
                      },
                      "last_purchase_at": {
                        "description": "When the customer's last recorded purchase was made, or `null`.",
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "email": {
                        "description": "The customer's email address.",
                        "type": "string"
                      },
                      "referred_by_customer": {
                        "description": "The email address of the customer who referred this customer, or `null` when there is no referrer.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "points_earned": {
                        "description": "Total points the customer has earned over their lifetime.",
                        "type": "integer"
                      },
                      "points_balance": {
                        "description": "The points the customer can spend now, after this event.",
                        "type": "integer"
                      },
                      "points_expire_at": {
                        "description": "When the customer's points expire, or `null` when they never expire. Follows your **Points expiration policy**: **Last Activity** (counted from the customer's last activity), **Date Earned** (the next upcoming expiration across the customer's point batches) or **Never expire** (`null`).",
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "first_name": {
                        "description": "The customer's first name.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "last_name": {
                        "description": "The customer's last name.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "last_seen_at": {
                        "description": "When Yotpo Loyalty last recorded activity for the customer, or `null`.",
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "third_party_id": {
                        "description": "The customer's ID in your e-commerce platform.",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "description": "The customer."
                  },
                  "perk": {
                    "$ref": "#/components/schemas/LoyaltyPerk",
                    "description": "The reward record."
                  },
                  "redemption": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "The redemption ID.",
                        "type": "integer"
                      },
                      "created_at": {
                        "description": "When the redemption was created.",
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "description": "When the redemption was last updated.",
                        "type": "string",
                        "format": "date-time"
                      },
                      "reward_text": {
                        "description": "If customer was gifted a coupon, this is the coupon code.",
                        "type": "string"
                      },
                      "approved": {
                        "description": "Whether the redemption is approved.",
                        "type": "boolean"
                      },
                      "approved_at": {
                        "description": "When the redemption was approved.",
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      }
                    },
                    "description": "The redemption."
                  },
                  "redemption_option": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "The reward (redemption option) ID.",
                        "type": "integer"
                      },
                      "amount": {
                        "description": "The points the reward costs. `0` for `variable` rewards, where the customer chooses how many points to redeem.",
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "name": {
                        "description": "If customer was gifted a coupon, this is the discount name.",
                        "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"
                        ]
                      }
                    },
                    "description": "The reward (redemption option)."
                  },
                  "published_at": {
                    "description": "When Yotpo sent the event.",
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "example": {
                "topic": "swell/customer/anniversary",
                "name": "Swell Customer Anniversary",
                "website_url": "https://example-store.myshopify.com",
                "store_name": "example-store",
                "email": "name@example.com",
                "customer": {
                  "total_spend_cents": 2500,
                  "total_purchases": 1,
                  "perks_redeemed": 5,
                  "last_purchase_at": "2016-09-23T00:55:35.000Z",
                  "email": "name@example.com",
                  "referred_by_customer": "name@example.com",
                  "points_earned": 450,
                  "points_balance": 450,
                  "points_expire_at": null,
                  "first_name": "John",
                  "last_name": "Smith",
                  "last_seen_at": "2016-09-23T00:55:35.000Z",
                  "third_party_id": "4055305025"
                },
                "perk": {
                  "id": 2,
                  "campaign_id": 4,
                  "merchant_id": 1,
                  "customer_id": 128,
                  "reward_points": 0,
                  "completed": false,
                  "completed_at": null,
                  "awarded": false,
                  "awarded_at": null,
                  "pending": false,
                  "reversed": false,
                  "reversed_at": null,
                  "expired": false,
                  "expired_at": null,
                  "expires_at": null,
                  "redemption_option_id": 152,
                  "history_title": "Happy Anniversary",
                  "created_at": "2016-09-23T00:47:40.000Z"
                },
                "redemption": {
                  "id": 2,
                  "created_at": "2016-09-23T00:47:40.758Z",
                  "updated_at": "2016-09-23T00:47:40.758Z",
                  "reward_text": "abc123",
                  "approved": true,
                  "approved_at": "2016-09-23T00:47:40.903Z"
                },
                "redemption_option": {
                  "id": 149,
                  "amount": 500,
                  "name": "$5.00 Off",
                  "description": "Get $5.00 off your next purchase for 500 points",
                  "icon": "fa-dollar",
                  "cost_text": "500 Points"
                },
                "published_at": "2026-06-23T16:29:28.836+00:00"
              }
            }
          }
        },
        "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"
      }
    },
    "schemas": {
      "LoyaltyPerk": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The ID of the reward record.",
            "type": "integer"
          },
          "campaign_id": {
            "description": "The ID of the campaign (earning rule) that gave the reward, or `null`.",
            "type": [
              "integer",
              "null"
            ]
          },
          "merchant_id": {
            "description": "Your Yotpo Loyalty merchant ID.",
            "type": "integer"
          },
          "customer_id": {
            "description": "The customer's Yotpo Loyalty ID.",
            "type": "integer"
          },
          "reward_points": {
            "description": "The number of points awarded with this record. `0` when the reward is a coupon.",
            "type": [
              "integer",
              "null"
            ]
          },
          "completed": {
            "description": "Whether the customer completed the action that earns the reward.",
            "type": "boolean"
          },
          "completed_at": {
            "description": "When the action was completed, or `null`.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "awarded": {
            "description": "Whether the reward was given to the customer.",
            "type": "boolean"
          },
          "awarded_at": {
            "description": "When the reward was given, or `null`.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "pending": {
            "description": "Whether the reward is pending and not yet available.",
            "type": "boolean"
          },
          "reversed": {
            "description": "Whether the reward was taken back, for example after a refund.",
            "type": "boolean"
          },
          "reversed_at": {
            "description": "When the reward was reversed, or `null`.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expired": {
            "description": "Whether the reward has expired.",
            "type": "boolean"
          },
          "expired_at": {
            "description": "When the reward expired, or `null`.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "expires_at": {
            "description": "When the reward will expire, or `null`.",
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "redemption_option_id": {
            "description": "The ID of the reward (redemption option) given, or `null` when the reward is points.",
            "type": [
              "integer",
              "null"
            ]
          },
          "history_title": {
            "description": "The description shown in the customer's points history.",
            "type": "string"
          },
          "created_at": {
            "description": "When the reward record was created.",
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "A reward record: points or a reward a customer got."
      }
    }
  }
}
```

# 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 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 Below Threshold](https://docs.yotpo.com/reference/swell-redemption-code-below-threshold.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)