...
- Do the basic auth to recieve JWT tokens
- Use 1 API call to create a sub-account for each
To make you life easier, - we created a ready made Postman environment & library for these 2 API calls. Download the library here, or read Read on how to use it down belowat the bottom of the article.
Info |
---|
NOTE - PLEASE DO NOT DELETE OR MODIFY THE APP WITH ID = 1 in your Master account - as your partner account will not function without it. |
...
GET https://ppp-admin.mbst.xyz/api/v8/[email protected]&password=12123456
Code Block | ||
---|---|---|
| ||
GET https://ppp-admin.mobsted.com/api/v8/[email protected]&password=123456 |
...
(3) Using the Postman Library
(a3.1) Download and install the Postman application or use it on the web, it is your choice
(b3.2) Download our collection into Postman
(c) Copy and paste your partner account's credentials into first Postman call:
(d) Do the first call to get authenticatedthe Postman environment and open it in Postman:
Where:
- fill in INITIAL VALUE column with your partner account URL + login + password for the partner account - marked 1 above
- set the current environment as active to perform all other API calls - marked 2 above
(3.3) Download the Postman library for partner API calls, open it in Postman and DO/SEND the first API called "AUTH", marked red ↓:
(3.4) Then to create sub-account DO/SEND the second API called "partners", using the unique email for the new sub-account, marked red ↓
You will see in response, marked purple ↑ - a new URL for the sub-account and email/login and password. Save this info, as the only was to get it will be to do a password reset using the email.
(e) Copy and paste your parter account's credentials into the second Postman call:
...