15
votes
How to use postman?
First you need to set up a user to get the authorization key. This tutorial walks you through that process. Once you have that, you can set up postman with these settings:
Where your GET request will ...
8
votes
Accepted
Magento 2 Api Getting Error '%fieldName is a required field'?
You are Sending POST Request so you also have to send data in POST request in json format like :{ "id": {}}
And have to set Content-Type:application/json in http header.
6
votes
Magento 2 Api Getting Error '%fieldName is a required field'?
Update the function comments correctly for both Interface file and class that implement it.
interface TestInterface
{
/**
* Returns greeting message to user
*
* @param int $name
...
4
votes
Accepted
Extension attribute in quote item
Not sure, but the first thing I noticed in your code is that you write plugin for \Magento\Quote\Api\CartRepositoryInterface but should be for \Magento\Quote\Api\GuestCartTotalRepositoryInterface
Upd ...
3
votes
How to test a Magento SOAP API call using Postman
I recommend to use SOAP UI for testing the Magento 1 SOAP API and Postman or Swagger for Magento 2 Rest Calls. With SOAP UI you can import the full WSDL Schema with Basic Example Requests.
Download:
...
3
votes
Accepted
On Adding items in cart for guest user using Postman getting error
Create a request to create the empty cart POST {{magento_api_url}}/rest/default/V1/guest-carts/ - this will return a token which is the cart ID (e.g 'KZepbhhPiGORreBKqIRlMCywGDTyQtR4')
Use that cart ...
3
votes
Accepted
How to fetch post method xml data in Magento2 controller
I also faced same issue my previous project.
Please try with below code it will work for your issue and let me know
if you need more help on this.
protected $request;
protected $formKey;
public ...
2
votes
How to get Custom HTTP header in Magento2 controller?
As long as your controller is a child of AbstractAction you can also access this data by request instance: $this->getRequest()->getHeader('APP_ID')
2
votes
How to get Custom HTTP header in Magento2 controller?
Finally, got the solution
$httpRequestObject = new \Zend_Controller_Request_Http();
$httpRequestObject->getHeader('APP_ID');
Thank you!
2
votes
Error while fetching a request token using postman
did you resolve it?
With Postman if I try oauth integration I got the same error. I've Magento 2.3.4.
Best Regards,
Francesco
1
vote
Accepted
How to work with Magento REST API using Integration tokens?
In previous versions of Commerce, the access token could be used on its own for token-based authentication. This behavior has been disabled by default due to the security implications of a never-...
1
vote
1
vote
Error while fetching a request token using postman
I know its too late but if someone else is facing the same issue then this would probably help:
Check and remove an entry for the consumer id in oauth_token table.
Ref: https://github.com/magento/...
1
vote
How can I get consumer authorization in Postman - Magento2?
Endpoint
POST http://<host>/rest/default/V1/integration/admin/token
Header
Content-Type application/json
Payload
{
"username": "admin",
"password": "123123q"
}
Response
Magento returns ...
1
vote
1
vote
Magento 2 Oauth 2.0 with postman
Magento 2 is compliant Oauth 1.0a check following link Api document it might help you .
1
vote
Magento 2.1.8 Api merge the guest items to customer quote?
Magento 2 REST can not distinguish between authenticated and anonymous customers. Web services ACL is applied for admin users only. All customers are anonymous for REST services.
You can create such ...
1
vote
How to configure postman with magento 1.9 complete beginner
Here is a quick Magento 1.x official guide for API Testing: You can use mozilla firefox plugin.
http://devdocs.magento.com/guides/m1x/api/rest/testing_rest_resources.html
1
vote
Magento 2 Api Getting Error '%fieldName is a required field'?
I was receiving the same issues, then I noticed that I was using POST instead of GET, changing it the issues were solved.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
postman × 36magento2 × 22
rest-api × 22
api × 12
magento-1.9 × 5
oauth × 5
magento2.3 × 3
php × 3
token × 2
swagger × 2
checkout × 1
module × 1
database × 1
magento2.2 × 1
customer × 1
magento-1 × 1
product-attribute × 1
extensions × 1
xml × 1
products × 1
url × 1
quote × 1
magento2.2.2 × 1
stock × 1
magento2.3.4 × 1