User Tools

Site Tools


udropship:umarketplace:m2:rma-api

This is an old revision of the document!


uMarketplace Vendor API Add-on

Introduction

The uReturn API add-on extends Magento 2 REST/Soap API and allow admin and vendor utilize it to create/pull/update uReturns information. To get more technical details check:

  1. app\code\Unirgy\RmaApi\etc\webapi.xml - list of entry points for API calls
  2. app\code\Unirgy\RmaApi\Api\Data - data type interfaces used in API
  3. app\code\Unirgy\RmaApi\Api\RmaManagementInterface.php - interface for possible RMA operations

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. Response of that POST will be 32 bit token that need to be used for further API calls in Authorization request header with the Bearer HTTP authorization scheme to prove vendor identity. More information is available here http://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-authentication-token.html

Example:

POST  http://magento.loc/index.php/rest/V1/integration/admin/token\\
{"username":"<vendor email>","password":"<vendor password>"}\\

RESPONSE “xxxxxxxxx 32 bit token xxxxxxxxx”

Create RMA

udropship/umarketplace/m2/rma-api.1650953810.txt.gz · by wtsergo