User Tools

Site Tools


udropship:umarketplace:m2:vendor-api

This is an old revision of the document!


uMarketplace Vendor API Add-on

Introduction

This add-on extend magento2 REST/Soap API and allow vendors utilize it to pull/update Purchase Orders information and update inventory data. To get more technical details check:

  1. app\code\Unirgy\DropshipApi\etc\webapi.xml - list of entry points for API calls
  2. app\code\Unirgy\DropshipApi\Api\Data - data type interfaces used in API
  3. app\code\Unirgy\DropshipApi\Api\InventoryManagementInterface.php - interface for possible inventory operations
  4. app\code\Unirgy\DropshipApi\Api\UdpoManagementInterface.php - interface for possible operations on Purchase Orders

Authentication

In order to perform API operations vendor need authentication. System use Token-based authentication by vendor email/password. Before doing actual API calls vendor need to get authentication token by doing post to /V1/integration/admin/token with json encoded array of username, password.

Example:
POST http://magento222.loc/index.php/rest/V1/integration/admin/token
{“username”:“<vendor email>”,“password”:“<vendor password>”} RESPONSE
“xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”

udropship/umarketplace/m2/vendor-api.1520867355.txt.gz · by wtsergo