Skip to main content

Create a subscriber

POST 

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

Create a subscriber

Request

Query Parameters

    filter string

Body

    data SubscriberCreaterequired
    type SubscriptionSubscriberType (string)required

    Possible values: [subscription_subscriber]

    attributes SubscriberAttributesrequired
    account_id UUID (string)required

    The unique identifier.

    name stringrequired

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

    The name of the subscriber.

    email emailrequired

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

    The email of the subscriber.

Responses

Success. The subscriber is created.

Schema
    data Subscriber
    id UUID (string)

    The unique identifier.

    type SubscriptionSubscriberType (string)required

    Possible values: [subscription_subscriber]

    attributes SubscriberAttributesrequired
    account_id UUID (string)required

    The unique identifier.

    name stringrequired

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

    The name of the subscriber.

    email emailrequired

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

    The email of the subscriber.

    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

    meta SubscriberMetarequired
    owner stringrequired

    The owner of a resource, either store or organization.

    timestamps Timestampsrequired
    updated_at stringrequired

    The date and time a resource was updated.

    created_at stringrequired

    The date and time a resource was created.

Authorization: http

name: BearerTokentype: httpscheme: bearer
curl -L -X POST 'https://euwest.api.elasticpath.com/v2/subscriptions/subscribers' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"data": {
"type": "subscription_subscriber",
"attributes": {
"account_id": "00000000-0000-0000-0000-000000000000",
"name": "John Doe",
"email": "john.doe@example.com"
}
}
}'
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— query
Body
{
  "data": {
    "type": "subscription_subscriber",
    "attributes": {
      "account_id": "00000000-0000-0000-0000-000000000000",
      "name": "John Doe",
      "email": "john.doe@example.com"
    }
  }
}
ResponseClear

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