Argument | Description |
---|---|
input (CreateSubscriptionInput!) |
Argument | Description |
---|---|
token (ID) | The token of the subscription to update, or creates a new one if one doesn't exist. |
name (String) | The customer's first name. |
lastName (String) | The customer's last name. |
address (String) | The customer's address line or street. |
zipcode (String) | The customer's zip code or postal code. |
houseNumber (String) | The customer's house, building, or appartment number. |
city (String) | The customer's city or town. |
country (String) | The customer's country code (ISO3661). |
state (String) | The customer's state or province (ISO3661-2). |
district (String) | The customer's district. |
phoneNumber (String) | The customer's phone number (international format). |
email (String) | The customer's email address. |
termsAccepted (Boolean) | Whether the customer accepted the terms and conditions. |
marketingOptIn (Boolean) | Whether the customer accepted optional marketing communication opt-in. |
companyName (String) | The company name of the customer. |
salutation (String) | The customer's salutation (mr,ms,mx). |
extraFields ([ExtraFieldInput!]) | Extra field values for the subscription. |
locale (String) | The customer's language/locale. Must be enabled on the project. |
skipAutoActivationOnSignup (Boolean) | Don't automatically activate the subscription on signup. |
projectToken (ID) | |
orderedProducts ([OrderedProductInput!]) | The products to subscribe to |
weChatOpenId (String) | |
returnUrl (String!) | The URL the customer gets redirected to when signup or initial payment was succesful. |
paymentPageUrl (String!) | The URL of the page where your customer can re-initiate the checkout flow if something fails. |
planId (ID) | The plan the customer will subscribe to. |
discountCode (String) | Discount code to apply when signing up |