MemberStack.io

New Member Webhook Member IDs

I’m using Webflow, jQuery AJAX, Memberstack, and a Node/Express.js server for a site I’m building.

There’s a POST request, and in order to check if the user isAuthenticated, I’m using the “New Member” Webhook to save the member.id to my own DB and checking it in the route.

When I was testing the Webhook however, I saw two almost identical ids. I’m not sure what that’s about:

Using the member object from the MemberStack.onReady function:
:white_check_mark: member.id === req.body.id
:white_check_mark: member.membership.id === req.body.membership.subscribed_to

…but what does req.body.membership.id represent? It’s one digit off from the member.id / req.body.id

1 Like

Hey Devon :wave:

Just had a chat with Tyler and the membership.id is the specific id that relates that membership to that member. It’s not really needed right now, but it should come in handy when we have the ability to signup for multiple memberships.