Commerce

Memberstack

9min
the memberstack modules allow you to watch, create, update, retrieve, and delete the members in your memberstack account getting started with memberstack prerequisites a memberstack account to use memberstack with make, it is necessary to have a memberstack account if you do not have one, you can create a memberstack account at app memberstack io/signup https //app memberstack io/signup? connecting memberstack to make to connect your memberstack account to make you need to obtain the api key from your memberstack account and insert it in the create a connection dialog in the make module 1\ login to your memberstack account 2\ click power ups > integrations > custom integrations > new api ke y enter a name for the api key and click create 3\ click the api key name and copy the key to your clipboard 4\ go to make and open the memberstack module's create a connectio n dialog 5\ in the connection name field, enter a name for the connection 6\ in the api key field, enter the api key copied in step 3 and click continue the connection has been established member watch members triggers when an event occurs on the member webhook name enter a name for the webhook connection memberstack docid\ dxrj ha1w5bsggcgjatuu list members lists all members that have a subscription to your website connection memberstack docid\ dxrj ha1w5bsggcgjatuu limit set the maximum number of members make should return during one make execution cycle get a member gets metadata of a specified member connection memberstack docid\ dxrj ha1w5bsggcgjatuu member id select the member id whose details you want to retrieve create a member creates a new member connection memberstack docid\ dxrj ha1w5bsggcgjatuu email enter the email address of the member password enter the password for the member to login to memberstack plan id enter the plan id of the membership that the member is subscribed to you can find the plan id details in the membership page by clicking the signup link against the plan custom fields add the custom fields you can also add the custom fields in your account > form & fields meta data enter the key value metadata for the member member page enter the url address of the member website page update a member updates an existing member connection memberstack docid\ dxrj ha1w5bsggcgjatuu member id select the member id whose details you want to update email enter the email address of the member password enter the password for the member to login to memberstack plan id enter the plan id of the membership that the member is subscribed to you can find the plan id details in the membership page by clicking the signup link against the plan custom fields add the custom fields you can also add the custom fields in your account > form & fields meta data enter the key value metadata for the member member page enter the url address of the member website page delete a member deletes a member connection memberstack docid\ dxrj ha1w5bsggcgjatuu member id select the member id you want to delete connection memberstack docid\ dxrj ha1w5bsggcgjatuu member id select the member id you want to dele membership watch memberships triggers when an event occurs on membership from a member webhook name enter a name for the webhook connection memberstack docid\ dxrj ha1w5bsggcgjatuu other make an api call performs an arbitrary authorized api call connection memberstack docid\ dxrj ha1w5bsggcgjatuu url enter a path relative to https //api memberstack com/ for example /v1/members for the list of available endpoints, refer to the memberstack api documentation method select the http method you want to use get to retrieve information for an entry post to create a new entry put to update/replace an existing entry patch to make a partial entry update delete to delete an entry headers enter the desired request headers you don't have to add authorization headers; we already did that for you query string enter the request query string body enter the body content for your api call example of use list members the following api call returns all the members from your memberstack account url /v1/members method get matches of the search can be found in the module's output under bundle > body > members in our example, 3 members were returned setting up webhooks open any trigger module (watch members, watch membership), establish a connection as mentioned in the module description above and copy the url address to your clipboard login to your memberstack account from the dashboard, click webhooks > new webhook in the endpoint field, enter the url address copied in step 1, select the triggers and click save you have successfully added the webhook