Customers

Marketing

Marketing endpoints — create email lists derived from shop-side criteria so the Customer API can mailshot a curated audience.

post/shop/email-lists

Create an email list from shop criteria

createEmailList

Builds an auto-populated email list in the Customer API from criteria evaluated against the Shop API. The intended use case is one-shot mailshots: select an order filter or session attendance in the operator UI and have the matching customers piped into a Mailchimp-compatible list without manual export.

The criteria type determines which selector fields are required — order_filters expects the filters object, session_attendees expects session_id, and so on.

Request body

  • namestringrequired

    The display name of the email list.

  • criteria_typestringrequired

    Which selector the list is populated from. Determines which of the optional fields below must be supplied.

    Possible values:order_filterssession_attendees
  • filtersobjectoptional

    For criteria_type: order_filters, the order filters applied — same shape as the order-list query parameters.

  • session_idstringoptional

    For criteria_type: session_attendees, the session whose attendees should be added to the list.

  • site_idstringoptional

    The site the email list belongs to.

Responses

  • 200

    The email list was successfully created.

  • 400

    The request failed.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation