Basics to APIs
All our API's are documented on Postman as well. The whole collection can be downloaded from here
API References covers the basics of Arcadier's APIs and explains how you can call , authorise and implement them into your marketplace. For a more in-depth guide on how to create flows and manage things like Users, Orders and Inventory via APIs and Plug-Ins, you may refer to our Advanced API References here.
WHAT YOU NEED TO KNOW
HIERARCHY OF USERS
When using an API, you should try to use it as the user who was intended to do the action.
- Admins own the marketplace so they have control over almost everything and everyone else on the marketplace.
- Merchants are the sellers of the marketplace. So they have control over their user information, their items/services that they are offering, and the transactions they want to do.
- Buyers are the consumers, so they have control over only their information.
We have an Authentication API that responds with an
admin token and the
Admin GUID (Globally Unique IDentifier). This takes sensitive information as input and returns admin token and GUID.
Tokens can also be obtained using the snippet below. If the code is running on client side, then it gets the user's token from the cookie stored locally. It is passed as a parameter using the
Bearer + token method.
Admin, Merchant and Buyer ID's can be found by inspecting the page when logged in as each of them. The value of the userGUID is the ID used in APIs.