Skip to main content

List subscribers

GET 

https://euwest.api.elasticpath.com/v2/subscriptions/subscribers

Retrieves a list of all subscribers.

Filtering

This endpoint supports filtering. For the general syntax, see Filtering.

The following attributes and operators are supported.

OperatorAttributeDescription
eqaccount_id, name, email, external_refEquals. Checks if the values of two operands are equal. If they are, the condition is true.

Request

Query Parameters

    page[offset] int64

    Possible values: <= 10000

    The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the page length store setting is used.

    page[limit] int64

    The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the page length store setting is used.

    filter string

Responses

Success. A list of subscribers is returned.

Schema
    data Subscriber[]
  • Array [
  • idUUID (string)

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    typeSubscriptionSubscriberType (string)required

    Possible values: [subscription_subscriber]

    Example: subscription_subscriber
    attributes SubscriberResponseAttributes
    account_idUUID (string)required

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    namestringrequired

    The name of the subscriber.

    Possible values: >= 3 characters and <= 1024 characters

    Example: John Doe
    emailemailrequired

    The email of the subscriber.

    Possible values: >= 3 characters and <= 1024 characters

    Example: john.doe@example.com
    payment_authority object
    type stringrequired

    Possible values: [elastic_path_payments_stripe, authorize_net]

    updated_atstringrequired

    The date and time a resource was updated.

    Example: 2017-01-10T11:41:19.244842Z
    created_atstringrequired

    The date and time a resource was created.

    Example: 2017-01-10T11:41:19.244842Z
    meta SubscriberMetarequired
    feature_entitlementsFeatureTag (string)[]

    A list of entitlement tags currently active for the subscriber

    Possible values: non-empty and <= 64 characters, Value must match regular expression ^[0-9A-Za-z_-]+$

    Example: ["tag1","tag2"]
    ownerstringrequired

    The owner of a resource, either store or organization.

    Example: store
    timestamps Timestampsrequired
    updated_atstringrequired

    The date and time a resource was updated.

    Example: 2017-01-10T11:41:19.244842Z
    created_atstringrequired

    The date and time a resource was created.

    Example: 2017-01-10T11:41:19.244842Z
  • ]
  • links object
    property name* Link
    anyOf
    stringnullable
    Example: http://example.com/articles/1/comments

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/v2/subscriptions/subscribers");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— query
— query
— query
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.