A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [webapi]

The tag has no usage guidance.

48 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
24 views

Magento 2 : How to change in order status and order id for display purpose in custom POS

We have Custom POS system enabled on the website. Like to append some labels in the order id and order current status for the display purpose only in the POS system not for the website(frontend) ...
4
votes
0answers
331 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="...
3
votes
2answers
645 views

pass multiple parameter to rest web API

i have created a rest web api. i want to pass multiple parameters to get my required data.How is could be. interface ProductsInterface { /** * Returns greeting message to user * * @...
3
votes
2answers
1k views

Magento 2 : Social Login via Rest Api

I need to create a user account using social network via the API. I have created via native iOS application that hooks into magento 2 store API. However, I can not find a way to create an account ...
2
votes
0answers
133 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 ...
2
votes
0answers
40 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) ...
2
votes
0answers
122 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 @...
2
votes
1answer
765 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. ...
2
votes
0answers
56 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
0answers
132 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
2k 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
718 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 ...
2
votes
0answers
77 views

How to implement paypal using Web Api on Magento2?

I am developing a mobile app using Magento2 Web Api. I am wondering how to implement Paypal for my mobile app. What versions of Paypal (express, etc.), is it used as an offline payment method?, do I ...
1
vote
0answers
89 views

Magento 2 - How to configure REST API?

I want to create REST API in Magento 2.3.2 for Mobile Application but I have few confusions regarding REST API. Can anyone guide me on this, please? Is there any quick start or say ready-made API ...
1
vote
0answers
27 views

Saving only one field from REST web API

Alright, I am just not getting my head around it. Trying to save the only title of existing CMS Page from web API, but looks when I do that all other fields are gone null. I am using postman: PUT ...
1
vote
0answers
9 views

Authorization on webapi

I have built a custom webapi endpoind with which a customer can get details of their personalised item. <route url="/V1/personalizations/get/:personalizationId" method="GET"> <...
1
vote
0answers
9 views

Best practices for webapi data manipulation

I am building a custom subscription module. I have exposed a number of APIs for the frontend to consume. I have the API hooked into standard repository endpoints: public function getList(\Magento\...
1
vote
0answers
8 views

Web API interface theory

I am writing a frontend that lists some custom data. It calls an endpoint /rest/v1/custom/get that hooks into my CustomListInterface defined in the webapi.xml, this then returns a list of records in a ...
1
vote
0answers
25 views

Magento 2: Adding Extra Parameters to Exception

I need to return error codes instead of messages in the exception. For example, what I am looking for is below throw new \Magento\Framework\Exception\LocalizedException(__("number is incorrect"),"...
1
vote
1answer
70 views

Magento 2 how to receive a webhook body?

I'm doing an integration with a system called Sift Science. What I need to accomplish is to receive a response whenever someone in Sift Science performs an action (for example> Approve account, ban ...
1
vote
0answers
194 views

Error during rate request at Dhl/Express/Webservice/Soap/RateServiceAdapter.php:77

I have upgraded magento 2.2.4 to 2.3.2. After upgrade version we have enabled MSI modules. After Enabling MSI modules we are getting below error when we try to create shipment. We are not able to ...
1
vote
0answers
25 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
1
vote
0answers
46 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 ...
1
vote
0answers
95 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
18 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
39 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.
1
vote
0answers
87 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 ...
1
vote
1answer
262 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
191 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\...
1
vote
0answers
220 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
354 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
189 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
81 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
0answers
254 views

magento2 webapi authorization for admin users

In Magento 2.1.5 I cannot use webapi when I am logged in as admin user. I found this problem on my regular install and verified with a freh one: install magento 2.1.5 from composer repository log-in ...
1
vote
1answer
365 views

Magento 2 - WebApi /rest/V1/products/MY_SKU to create a new product error

I'm having troubles to PUT a product using the WebApi of M2 Im using this JSON: { "product": { "sku": "MY_SKU", "name": "My Product", "price": 20, "typeId": "simple", ...
0
votes
1answer
11 views

Magento 2.2.2 Custom Api

I have created a custom api and add some getters and setter, I'm looking to find out if it's possible to pass key pair values in the post without having to set the setters. When I call the api I get ...
0
votes
0answers
31 views

Deprecation of REST APIs?

We are exploring different approaches for Magento integration (V2.3.3) with a storefront hosted on a third party CMS. We've come across 2 different approaches for this; REST based APIs GraphQL As ...
0
votes
1answer
52 views

API url for instant purchase in magento 2.2.6

I am new for Magento and want to create REST API of instant purchase functionality for mobile application using Magento version 2.2.6. I have configured instant purchase option for site and it's ...
0
votes
0answers
38 views

JSON Serialize DateTime in Web API

A lot of my Web API interfaces use DateTime return types or parameters as follows. interface TestInterface { /** * @param \DateTime $value * @return void */ public function ...
0
votes
1answer
241 views

MAGENTO 2 REST API: PUT through POSTMAN [Resolved]

I'm trying a PUT on Magento 2 REST API through POSTMAN like this: https://domain/rest/V1/products/IP_X With only a price change on the json content. getting the following error message: { "...
0
votes
0answers
11 views

Magento 2 : Share with friends rest api

How to create an API to share a product (via email, facebook, twitter etc) in Magento2 for mobile application
0
votes
1answer
22 views

How to Create Token based Router in Magento2?

I want to create Custom API through controller action. How i can authenticate using token to make secure API. Example: http://www.example.com/webapiv1/getItems http://www.example.com/webapiv1/...
0
votes
0answers
30 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 ...
0
votes
1answer
229 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
33 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
528 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
0
votes
1answer
401 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 ...