Customers > Customers > storefrontSubscriptionCreate
Storefront APICustomersCustomersstorefrontSubscriptionCreate
storefrontSubscriptionCreate
POST:storefront/subscription.json

Description

Request customer subscription info, requires no password.

Topic: Customers

Arguments

data: StorefrontCustomerSubscriptionCreate!

Main argument for mutations.


email: String!


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


token: String!


Data Argument Fields

accepts_marketing: Boolean


reminder_messages: Boolean


Result

StorefrontCustomerSubscription

Preview (typescript)

function storefrontSubscriptionCreate(
data: StorefrontCustomerSubscriptionCreate
email: string
shop_id: string
token: string
): StorefrontCustomerSubscription | null