Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
0answers
17 views

Magento 2x web rest api: Anyone can tell me about endpoint to get order status from store configuration?

I wonder if there is endpoint to get orderstatus by using api in magento 2x. As I check there is issue that created since 2016 but closed because report in github link
0
votes
0answers
28 views

custom_attributes not returning from Magento 2 REST API

Using the Magento 2 REST API, I was able to successfully create a new product attribute sending a PUT request to V1/products/attributes/{attribute_code}. In the request, I added a value in the ...
0
votes
0answers
24 views

How to get direct OAuth based access as a third party app?

I was going through the API docs and couldn't find a step-by-step procedure for our use-case. I need to integrate Magento on our SaaS app dashboard for our customers who use magento. So basically, I ...
4
votes
1answer
915 views

Consumer “async.operations.all” skipped as required connection “amqp” is not configured. Unknown connection name amqp

Since i upgraded from Magento 2.2.7 to Magento 2.3.1 i am getting this message in the system.log file: main.INFO: Consumer "async.operations.all" skipped as required connection "amqp" is not ...
2
votes
3answers
300 views

Request does not match any route issue in magento 2

I have creating a extension for get cms static block content using rest api. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
89 views

How to call Web API call inside custom module Magento 2

How can we call Web API in a custom module? I have a third party module, in which they are sending a request with API calls. I have custom functionality where I have to redirect my page to that Web ...
0
votes
0answers
31 views

Headless Magento

Please let me know the best practices to be followed while creating an e-commerce solution which uses the headless approach. Whether Magento or frontend-side need to implement custom business logic ...
2
votes
0answers
28 views

Magento 2.2 - Custom WEBAPI - Custom JSON Structure

i need to understand following situation: An external systems need to send a JSON Structure ( nearly similar than the magento default structure ) by using the web-api to import / update (POST/PULL) ...
1
vote
1answer
89 views

Magento 2.3 - Need detail about some newly introduced feature

I need to know about some of the newly introduced featured of Magento 2.3 GraphQL Declarative DB Schema Asynchronous and Bulk Web API There are few blogs information but not elaborating properly. I ...
1
vote
1answer
353 views

Magento2.2.5 How to access Magento Log file for Web API?

we use the Magento api to update our warehouse system when we recieve orders and then update magento again with inventory updates from our warehouse system. However we recently had an order that gave ...
1
vote
0answers
51 views

How to create REST API for customer profile update?

Since, I have worked with magento get method api calls but yet didn't work on post or put method. I am trying to update customers to update their profile in mobile app. public function update($id){ ...
1
vote
0answers
54 views

Magento 2: Is there a way to return custom json response from REST API without building a data interface?

I have a few custom REST API interfaces on my module & they all need to return a standard json response (different on each). After a little research, I realized that I can't do something like @...
1
vote
2answers
321 views

How to create custom API for company and customer creation in Magento 2

I want to create a company/company admin-user in Magento 2 (as what it does from the front-end/back-end panel) via a single API call. Right now am doing with two API calls First is creating a ...
0
votes
1answer
583 views

Create product attribute with options in magento2 through rest API

I have created a custom module to create product attribute with option thruogh rest Api. Here is my code samples. etc/webapi.xml <route url="/V1/attribute/attributeCreate" method="POST"> &...
0
votes
0answers
29 views

Magento 2.1 Getting web API error while placing the order

Internal Error. Details are available in Magento log file. Report ID: webapi-5c29c5a5d3bf9 I have been getting above error while placing the order. But I can't access var/report/api, there isn't any ...
0
votes
0answers
34 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
51 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
273 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
378 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
115 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
28 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
1answer
129 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 ...
33
votes
8answers
3k 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
82 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 ...
4
votes
2answers
444 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
198 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
143 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
43 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
94 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
120 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
643 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
17 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
32 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.
4
votes
0answers
230 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
854 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
853 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
30 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
213 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
400 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
457 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
216 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
107 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
57 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
15 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
69 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
190 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
164 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\...
13
votes
2answers
3k 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 ...
2
votes
1answer
856 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
180 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,...