Skip to main content
GET
/
v1
/
customers
/
{identifier}
/
birthday
Get birthday
curl --request GET \
  --url https://api.mageloyalty.com/v1/customers/{identifier}/birthday \
  --header 'Authorization: <api-key>'
Get the customer’s date of birth. The identifier can be a Shopify customer ID or email.

Response

{
  "data": {
    "type": "customer_birthday",
    "id": "6789012345",
    "attributes": {
      "shopify_customer_id": "6789012345",
      "email": "jane@example.com",
      "date_of_birth": "1990-05-15T00:00:00.000Z"
    }
  }
}
date_of_birth will be null if the customer has not provided their date of birth.

Errors

StatusScenario
404Customer not found