Skip to main content

Create a subscriber

POST 

/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.

    payment_authority object
    oneOf
    type stringrequired

    Possible values: [elastic_path_payments_stripe]

    The name of the payment gateway facilitating the secure transmission of payment data.

    customer_id string

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

    The unique identifier for a customer.

    card_id string

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

    The unique identifier of the card used to facilitate payment of the subscription. If a card payment fails, you can use the card_id and customer_id attributes to program your front-end implementation to allow your preferred payment service provider to update a subscription with new card details. See Card declines.

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.

    payment_authority object
    oneOf
    type stringrequired

    Possible values: [elastic_path_payments_stripe]

    The name of the payment gateway facilitating the secure transmission of payment data.

    customer_id string

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

    The unique identifier for a customer.

    card_id string

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

    The unique identifier of the card used to facilitate payment of the subscription. If a card payment fails, you can use the card_id and customer_id attributes to program your front-end implementation to allow your preferred payment service provider to update a subscription with new card details. See Card declines.

    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.

Loading...