OpenMarketplace is based on Sylius, and use Sylius's package SyliusApiBundle. It supports REST Api in JSON.
For resources provided by Sylius, API is created by SyliusApiBundle
and the documentation is available here
and at /api/v2/docs
URL.
In order to authorization you need a JWT token. Use endpoint
(/api/v2/shop/authentication-token
) with your credentials.
In the response, you will get a JWT token, and then you can set the authentication token.
Once you are an authorized user(1). Go to /api/v2/shop/account/vendor/register
endpoint and press button Try it out
(2).
Fill in your data(1), and then execute(2).
Now you have to wait for the administrator to accept your request to become vendor.
Vendors have access only to their resources.
Endpoints for managing product listing resources, which converts to products after administration acceptance.
You can also cancel the order.