All Questions
23 questions
0
votes
1
answer
63
views
Magento 2: REST API Endpoint uses wrong locale
I'm implementing an endpoint where the users can create products from a CSV, using the same logic that Magento implements in the backend to import CSV seems to work great but I have a problem, the ...
1
vote
1
answer
72
views
Event observer hangs on order creation
Situation:
I'm creating a Magento 2 module that listens to specific event observers, gets the ID's associated with those events, and sends them to a third-party Node app. This Node app will receive ...
0
votes
1
answer
298
views
Error in Postman and show that Invalid type for value: \"%productId%\
I have developed a module in my magento 2.2.6 for to create an API that can update the product price and quantity via product id . Please see my code below
/var/www/html/app/code/AdmNetsuitePQ/...
0
votes
0
answers
86
views
Resource access issue for an Integration of custom module
I am using Magento 2.4.5
I created an Integration for my custom module. I am successful in generating the oauth_token & oauth_token_secret. But when I want to see an order using API, I get a 401 ...
1
vote
2
answers
347
views
REST API return JSON object using factory and interface
I am trying to create a simple module to return JSON data, if i returned string or array it will return the targeted data, but i can't return JSON object with key value
when i return the interface it ...
0
votes
1
answer
89
views
How to check if a module needs an update using comands/code?
Is there a way to check if a module needs an update using commands or code ?
Maybe i can compare the current version to the latest version, but how do i check what the latest version for a module is ?
...
0
votes
0
answers
193
views
How to implement Custom online shipping method with shipping API?
I have created one shipping module.I need to integrate flash express API's in that. How to integrate the APIs?
0
votes
1
answer
2k
views
I want to update order status using magento's rest api
I want to use Magento Api for Updating Status of order in Magento 2.3.5 so anyone can guide me from scratch how can i use api. I also want to know in Magento how many default api is there and how to ...
3
votes
5
answers
8k
views
How to Change Order Status using Api in magento 2.3.5
I want to develop new module for changing order status using Api in magento 2.3.5 so can anyone have idea then please share with me. I want to create order status and change it using Api.
1
vote
2
answers
1k
views
Custom Rest API for custom table not wroking
My webapi.xml is below.
<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"&...
0
votes
1
answer
1k
views
Magento 2 : Change default REST API response
I have an order collection get out via API
How can I change some value in API response via custom module
3
votes
2
answers
657
views
Magento2: Module Vault rest api help
I have created a webapi.xml in module vault:
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"&...
1
vote
2
answers
3k
views
Magento 2: Calling Restful Web service GET and POST
Any one knows how to call restful web service from Magento 2?
Please guide me with a format how it can be done.
Any links to guide me with examples of POST or GET etc.
I want to Call below URL in ...
0
votes
3
answers
4k
views
Zend_Json_Exception Decoding failed: Syntax error some time in Magento (All versions)
1 exception(s):
Exception #0 (Zend_Json_Exception): Decoding failed: Syntax error
Exception #0 (Zend_Json_Exception): Decoding failed: Syntax error#0 /var/www/html/magento2/vendor/magento/...
0
votes
0
answers
404
views
Magento : How to show data of external api using custom module
I want to create a custom module in which, I want to fetch some external data using API and show them at home page or any location.
I have API's ready , now i want to fetch data in my custom module ...
6
votes
2
answers
1k
views
I need to add a extra field in product rest api response - Magento 2
I want to add a field "slider" in /rest/V1/products/:sku
I created a custom module and in my di.xml i have added the following code
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3....
2
votes
1
answer
2k
views
How to handle multi level array as input parameter from custom POST webservice in Magento2
We have request to create custom REST webservice for creating gift orders and we are successfully able to create order for single item but facing issues on taking multi items as input.
Can anyone ...
17
votes
5
answers
28k
views
Magento2 REST API Error 'Class does not exist'
I've created a test Magento 2.0.2 REST web service based on Alan's blog: http://alankent.me/2015/07/24/creating-a-new-rest-web-service-in-magento-2/
I'm using Postman to call the custom web service ...
0
votes
1
answer
93
views
Magento 2: Custom module to show the available downloads
I am working on a requirement to develop a module which will have a REST api to get the number of remaining downloads for a given Order id 'increment_id' and Item id 'item_id'.
As a first step, I ...
2
votes
3
answers
3k
views
Magento 2 Web API pre/post dispatch events (REST/SOAP)
Is there any pre/post dispatch events for the Magento 2 web API (REST/SOAP) ?
5
votes
3
answers
6k
views
Magento 2 requesting external REST API
I want to call a 3rd party REST API within Magento 2. Is there any class to handle the HTTP requests and responses for that?
0
votes
1
answer
2k
views
Simple REST API
I want to create a RESTful api for my products.
I have set up the roles and settings in admin panel for rest api.
Now where to create the API PHP code and where to place the PHP file in the Magento ...
4
votes
3
answers
9k
views
Magento 1 - How to set HTTP Response Code in Custom REST API
Hi Guys for a project i try to extend the Magento REST API.
I have some problems with my error handling. I don't know how to send the right Http Response Code. I tried it with something like this:
...