/a/lantern. Use these endpoints to render dynamic forms on the storefront and submit responses that update customer data.
Get a form
- Method:
GET - Path:
/a/lantern/form/{handle} - Path params:
handle(string, required) — unique form handle
choices for select/radio inputs and propertyDefinition when the field maps to a Lantern property.
Submit a form
- Method:
POST - Path:
/a/lantern/form/{handle} - Path params:
handle(string, required) - Query params:
locale(string, optional) — overrides the browser locale - Body: JSON object where keys are field handles and values are the submitted data
Use
profile: prefixes to update Shopify customer properties and attribute: prefixes for custom Lantern attributes. Other keys are stored as submitted.Errors
400 Bad Requestfor validation issues401 Unauthorizedif the Shopify App Proxy signature is missing or invalid422 Unprocessable Entityfor invalid submissions (for example, required fields missing)