Introduction

If you have a third-party app that needs to create users inside your MemberPress website your only option is to use the Developer Tools add-on to create users via the API.

But there is a limitation to that.

You can set only the basic fields for that user via the API.

If you have any custom fields they won’t be filled via the MemberPress API.

To solve this problem we’ve created an add-on that allows you to update the user that you created through the MemberPress API to fill the custom fields too.

We call our plugin, MemberPress User Profile API Endpoint.

Now you get to use it too. 🙂

What you’ll need

1 – MemberPress

2 – MemberPress Developer Tools

3 – MemberPress User Profile API Endpoint

How do I use MemberPress User Profile API Endpoint

Follow these steps to install and use our plugin.

Install MemberPress User Profile API Endpoint

1.1 – On the ‘Plugins’ page press on ‘Upload Plugin’

Image 2020 12 12 at 4.17.34 PM - MemberPress User Profile API Endpoint

1.2 – Upload the ZIP file that you received after the purchase in the form that showed up

027ea89b 4fda 4fca 8b2c cd3008aa0589 - MemberPress User Profile API Endpoint

1.3 – In the ‘Plugins’ list activate the plugin

0c6b87e9 932f 44d9 82a9 3c88d30faab0 - MemberPress User Profile API Endpoint

Create a member through the MemberPress Developer Tools API

At this step, you need to follow MemberPress’s documentation about the Developer Tools API and use it to create a new member in the system.

Send a second request to our endpoint

Request Type

The endpoint accepts only POST requests

Format

The required format is JSON.

Route

At this moment you have the user created so you’ll need to send a POST request with the data you need to add to their profile information.

To do so you’ll need to use the following route:

/wp-json/memberfix/v1/update

This will make the address you are sending to like this example:

https://domain.com/wp-json/memberfix/v1/update

Authentication

To authenticate your request you will need to pass the same header bearer as you did for MemberPress.

The header name and API key are the same as the ones from the MemberPress Developer Tools.

Parameters

Required Parameters

1 – user_id – The ID of the user you are going to update

2 – Any other custom field you have created in MemberPress and marked it as Required.

Slugs

The endpoint accepts parameters that respect the MemberPress custom fields slugs. The slugs can be found in the ‘Fields’ table.

046ee620 289f 45f8 b4b2 8a35c2c70404 - MemberPress User Profile API Endpoint

Example Request

{

          “user_id” : “2”,

          “mepr_sorin” : “Here comes the data for the field”,

          “mepr_sorin2” : “And here you can add other data”

}

How can I download your MemberPress User Profile API Endpoint plugin?

We sell this plugin for $15.

If you would like to purchase it, please complete the checkout below.

You’ll gain access to the .zip file after checkout.

[Download] MemberPress User Profile API Endpoint Plugin

After checkout, please follow the instructions in this post.

When you are done with that the plugin should work by itself.

Will you provide support for this plugin?

Of course! 🙂

We’ll be providing support for the MemberPress User Profile API Endpoint only.

So if you have any questions or issues please come back to this post and leave a comment describing them (you can also upload screenshots in the comments).

We will provide email support at [email protected] but using comments instead, everybody benefits from the conversation and explanations, including existing and potential customers. 🙂

It also fosters transparency which improves the direction of development by involving our entire community.

Share This