Skip to main content
GET
/
v1
/
customers
/
{identifier}
/
anniversary
Get anniversary
curl --request GET \
  --url https://api.mageloyalty.com/v1/customers/{identifier}/anniversary \
  --header 'Authorization: <api-key>'
Get the date the customer created their Shopify account, used as their loyalty anniversary. The identifier can be a Shopify customer ID or email.

Response

{
  "data": {
    "type": "customer_anniversary",
    "id": "6789012345",
    "attributes": {
      "shopify_customer_id": "6789012345",
      "email": "jane@example.com",
      "anniversary_date": "2023-03-10T09:00:00.000Z"
    }
  }
}
anniversary_date will be null if the Shopify account creation date has not been synced.

Errors

StatusScenario
404Customer not found