Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [webapi]

The tag has no usage guidance.

0
votes
0answers
12 views

Is Instant Purchase REST API available in Magento 2?

The new Instant Purchase feature provides returning customers with a faster checkout experience by using previously-stored payment credentials and shipping information to skip checkout steps. When ...
0
votes
0answers
13 views

Checkout create issue after Upgradation in Magento 2.2.6

I have an error in checkout page after Upgradation of Magento from 2.2.2 to 2.2.6. This is working fine in Magento 2.2.2. Because of this error shipping methods are not show and loader is ...
2
votes
1answer
29 views

where to find Magento 2 API docs?

Finally I found out the magento 2 api endpoint for all products as below rest/V1/products?searchCriteria[pageSize]=20 but I need more detailed docs about api endpoints which I coudn't find out yet. ...
1
vote
1answer
67 views

How get wishlist in Magento 2 Rest API?

Get Wishlist product in Magento 2 REST API ? And Add to Wishlist in Magento 2 REST API ? Wishlist API is not provided by Magento 2
0
votes
1answer
30 views

Create configurable product using rest api magento 2.2.6

I am new to Magento 2 and learning Rest API. I was trying to create configurable products using Rest API but I am not getting fully success. I am able to create a configurable product and simple ...
0
votes
0answers
22 views

Magento2 Rest api without any module

I am new to Magento and I am having an issue with the use of the rest API. I see some blogs/tutorials on the Internet where they create modules to use the web API. Also in magento2 API doc, they tell ...
0
votes
0answers
29 views

Product stock updating using the API

I have been trying to update the stock qty for the products using third party web api which uses for advanced multi inventory maintain. since the product uniqueness is more than 8,000 per one store(...
0
votes
0answers
25 views

API call on click of button in magento 2

I am new to magento2 and I am finding it very difficult to call API, actually my requirement is as follows. I have a button at checkout page on click of that I want to call API and I need to get the ...
0
votes
1answer
64 views

Magento 2 Service Contracts and WebApi

I have implemented the Magento 2 Service Contracts, everything is working as expected, I can use my repository's getById and getList in Controller but as we know we can use Service Contracts for ...
23
votes
6answers
910 views

What is Progressive Web Apps, or PWAs in Magento 2?

What does it mean that Magento is becoming a Progressive Web Application platform? What will be the code structure of PWAs in Magento? What is the deal with REST APIs and PWAs?
1
vote
1answer
47 views

Magento 2: How can I do an integration with magento 2 and sap business one?

i want to create a integration with magento 2 and SAP B1, I created a web application in magento 2 I gave it a name and I gave it permission to API and it was saved then create a new role, assign the ...
0
votes
0answers
25 views

Can I apply searchCriteria on /V1/products/attribute-sets/:attribute-sets-id/attributes in Magento-2.1?

How Can I apply searchCriteria on : /V1/products/attribute-sets/:attribute-sets-id/attributes in Magento-2.1? When I run this API V1/products/attribute-sets/11/attributes?searchCriteria[...
4
votes
2answers
84 views

Get customer details by using Authentication Token

I use this Magento 2 rest api to get customer token: curl -X POST "https://my.project/rest/V1/integration/customer/token" \ -H "Content-Type:application/json" \ -d "{"username":"me@awesome....
3
votes
2answers
81 views

Magento2 need to throw 500 internal server error in webapi response

Can anyone let me know how to throw 500 internal error in api response with REST API? i have used below right now: throw new NoSuchEntityException( __( 'Field : '.$fields.' required.' )); but it ...
2
votes
1answer
58 views

Magento2 Rest API reset password with different store id getting default email template

I am using Rest API to reset password of customer, i have already passed websiteId for different store but when i am getting reset password email, it is coming of default store not the store i have ...
2
votes
0answers
32 views

Magento2 SOAP with C#

I am trying to read Magento customer from a C# third-party software. When I enter SOAP into the browser, its throwing error. URL:- http://localhost:81/magento2-2.2.5/soap/default?wsdl&...
2
votes
1answer
33 views

profile API call

I enable profiler SetEnv MAGE_PROFILER html in my conf file for magento 2. Is there an easy way to profile Magento 2 API REST calls.
2
votes
0answers
70 views

How to get window.checkoutConfig data via REST API?

I am building a custom frontend for Magento 2 Checkout. Sometimes the checkout uses window.checkoutConfigin the built-in frontend. My frontend uses the REST API provided by Magento 2, but how can I ...
2
votes
1answer
230 views

How to override webapi.xml in custom module?

I want to override /vendor/magento/module-catalog/etc/webapi.xml file in my custom module. <route url="/V1/categories" method="GET"> <service class="Magento\Catalog\Api\...
1
vote
0answers
16 views

Change response to Order IncrementId

In Magento2, I have tried below code and getting response is Order EntityId. http://localhost/pin/rest/V1/guest-carts/7775f2214c7e42e4b7a6d2e53dea34bc/order { "...
1
vote
0answers
29 views

Magento2: In which file gets a response as order entity Id in order API?

I have placed an order using default order APIs in Magento2, In which file gets a response as order entity Id? And need to change the order API response.
3
votes
0answers
95 views

How to update custom order status through custom Api using order id in Magento2?

I have created custom Api to update order status by using Order Id. I have used the below code in webapi.xml file. <route url="/V1/orderstatus/orderUpdate" method="POST"> <service class="...
2
votes
1answer
477 views

SOAP-ERROR: Parsing WSDL: Couldn't load from URL Failed to load External Entity

I'm trying to get all products in $productArrarray from magento 2 API via SOAP client. I tried the below function but it throws this error: Error: SOAP-ERROR: Parsing WSDL: Couldn't load from '...
2
votes
1answer
254 views

Oauth 2.0 in Magento 2.2 with how to access the token

Can please give example to access the magento 2 api by using oauth 2
2
votes
1answer
25 views

Magento 2. Does Commerce offers more functionality than Open Source in term of Web APIs?

Does Magento 2 Commerce offer something in addition to what M2 Open Source offers in terms of Web APIs?
3
votes
1answer
120 views

Magento 1 vs Magento 2. Difference between solutions offered by Magento 1 and Magento 2 when is comes to web APIs

Specific on the area of web APIs. Does Magento 2 offer something that Magento 1 does not. Are there any problems with Magento 1 Web APIs that Magento 2 has fixed What are the main differences between ...
0
votes
1answer
268 views

get current customer's cart items count in Magento 2

I want the current customer's cart items count via custom web api in Magento 2. Please help me out to get that
1
vote
1answer
140 views

Set Join in SearchCriteria select

I need to override the get orders list API call, and set a join with my custom table, but without loose the SearchCriteria terms, is this possible? Current Code: (I've created a plugin in Magento\...
2
votes
1answer
95 views

<parameter name=“customerId” force=“true”> in customer module webapi.xml

In Magento2 module-customer webapi.xml file, the API GET "/V1/customers/me" has codes below: <route url="/V1/customers/me" method="GET"> <service class="Magento\Customer\Api\...
1
vote
1answer
78 views

Return string from webapi gives an unwanted extra character

I am using a webapi observer. In the model, I am requiring a legacy file that echo a well-formed XML for SOAP communication. However, Magento2 echo the result of the Model method, and it does it ...
1
vote
0answers
45 views

Admin User unable to access webapi

currently developing web application that utilizes magento's customer / admin tokens (magento 2). I am trying to access my custom webapi with resource assigned as "self" using an admin user with a ...
1
vote
0answers
14 views

Is It possible if I will not add product in Magento2 database?

Is It possible if I will not add product in Magento2 database , or maybe add product ID attribute for identify the existence in Magento2 system only but I will call API to get product from third party ...
3
votes
0answers
63 views

A list of the possible web api shipping method codes for the salesOrderRepositoryV1 GET? [closed]

I am using Magento 2.1.0 web api system to extract new orders from my Magento store and then place them into a 3rd party accounting system. I would like to know what are all of the possible responses ...
1
vote
0answers
134 views

How to Integrate Custom Shipping method in magento2

I need to integrate Aramex Shipping method in magento 2, I have php sample code form Aramex. <?php $params = array( 'ClientInfo' => array( ...
1
vote
1answer
102 views

How to structured data in custom WebAPI?

I have created custom webapi using https://www.demacmedia.com/extending-magento-2-rest-web-api/ This is the code that I am using: <?php namespace Panda\WebService\Model\Resource; use Panda\...
12
votes
2answers
2k views

How to create custom Module Development in magento 2 from Scratch?

How to create Custom Module Development from scratch in magento 2 with following point. 1.How to Create Module 2.How to Install and Upgrade Database 3.How to Create Module,view and Controller ...
1
vote
1answer
575 views

“Undefined index: interface” error from Magento 2 swagger webapi

I'm getting the following error when loading the swagger routes: Undefined index: interface in /mnt/c/develop/php/mage2/vendor/magento/module-webapi/Model/AbstractSchemaGenerator.php on line 156 {"...
1
vote
0answers
153 views

Override default model webapi output magento2

I've began creating a module for a rest api for creditmemos - which I intend on using as an alternative to the built in version. At the moment I've started the normal way for creating a webapi module,...
1
vote
0answers
268 views

Magento 2 soap API 404

I am trying to load the url: http://magento2.dev/index.php/api/v2_soap?wsdl=1 in the browser but gives me 404. Additionally I using SoapUI Software and gives me error too. Error loading [http://...
1
vote
0answers
152 views

oauth_problem=Consumer+key+has+expired

Hello Magento Community, I am trying to integrate the Magento Rest API in my App. But while doing the OAuth authentication for request token I am getting error as Consumer Key has Expired. I have ...
1
vote
1answer
54 views

Where is webapi.xsd located

I have been trying to access a REST API end point that results in a 404 Not Found. I have come across documentation that explains the endpoints have to be configured in the webapi.xsd file. I have ...
1
vote
1answer
317 views

Magento 2 - Session based authentication doesn't work

I don't know if this is a bug in Magento 2 API or not, so I didn't post it on Magento 2 Github issues. According to this link: http://devdocs.magento.com/guides/v2.0/get-started/authentication/gs-...
1
vote
1answer
414 views

Unit test case for custom module REST API

I wanted to write unit test case for custom REST API in magento2. I have already gone through the : http://devdocs.magento.com/guides/v2.0/get-started/web-api-functional-testing.html I am getting ...
6
votes
2answers
5k views

Magento 2: How to return a JSON object from the API?

I'm trying to return a JSON object from one of my REST Models, something like this: { "settings": { "set1" : 2, "set2" : "key1" }, "extra": { "e1'" : { ...
6
votes
1answer
718 views

Best practice for returning errors in WebApi

So let's say I have a model, responding to my webapi calls, whats the best way to return an error to the api consumer. For example, in the code below, the second line query the category factory (di-ed)...
1
vote
1answer
448 views

Restricting access to anonymous web APIs

As given in the documentation here : http://devdocs.magento.com/guides/v2.0/rest/anonymous-api-security.html By default magento 2 only restrict Catalog, Store and CMS API from anonymous users. In a ...
1
vote
1answer
378 views

Extending Magento2 API

I have a very weird problem when trying to extend Magento2 API, I followed all the right steps, however im getting this syntax error when calling http://appfactory.loc/index.php/rest/V1/appfactory/...
6
votes
1answer
588 views

How do I consume the REST API in Magento 2, using AJAX with session-based authentication?

I am having issues successfully making an AJAX call to Magento 2 REST API endpoints, using session-based authentication. When I run the following javascript, I always receive a 401 (Not Authorized) ...
1
vote
1answer
386 views

Magento 2: How can I store my original REST request in a file on the server?

I need to store my REST request within the file system - I have tried serializing the request object, but obviously the file size is quite a lot larger than the original. I have run a test that ...
2
votes
1answer
2k views

Get list of ALL customers using REST API

I know I can get a specific customer by running: curl -X GET "http://127.0.0.1:32769/index.php/rest/V1/customers/2" -H "Authorization: Bearer token" How do I get the list of ALL customers?.. GET "...