member
object, or an array of member
objects.
The member
object contains the following fields: id
membership
email
createdAt
stripeInfo
(Optional)metaData
(Optional)oneTime
testMode
status
trialing
| active
| expired | past_due
| canceled
unpaid | incomplete
| incomplete_expired
plan
type
free
| paid
cancel_at_period_end
current_period_end
amount
customer
card
source*
: Unique identifier of Stripe's source method.
brand
: Card brand. American Express | Discover | MasterCard | Visa
exp_month
: Card's expiration month.
exp_year
: Card's expiration year.
last4
: Card's last four digits.source
has been deprecated in favor of payment_method
and is only available on older members.metaData
can contain up to 50 values. Object keys cannot be longer than 50 characters, object values cannot be longer than 500 characters.metaData
can contain up to 50 values. Object keys cannot be longer than 50 characters, object values cannot be longer than 500 characters. API_KEY
with the value of your API key. FREE_PLAN_ID
with the id of a free plan of your website. You can get the id of a plan by going to memberships in the dashboard, and extracting the id from the signup link. USER_ID_TO_FETCH
for the user that will be queried, USER_ID_TO_UPDATE
for the user that will be updated, and USER_ID_TO_DELETE
for the user that will be deleted.
⚠️ These values can be the same id
. Deleting the user with the id
of USER_ID_TO_DELETE
will be removed permanently.
To open the code editor, drag the handle on the far left side of the embed.