Enroll a customer in the loyalty program.
200 OK instead.
Only shopify_customer_id is required — the endpoint fetches the customer’s name, email, and account creation date directly from Shopify.
| Field | Type | Required | Description |
|---|---|---|---|
shopify_customer_id | string | Yes | The customer’s Shopify customer ID |
201 Created on successful enrollment, or 200 OK if the customer was already enrolled.
The response shape matches the customer object.
| Status | Scenario |
|---|---|
400 | shopify_customer_id missing or invalid JSON |
404 | No Shopify customer found with that ID |
503 | Unable to connect to Shopify |