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 [magento2-api]

Denotes questions related to Magento CE and EE 2 API

1
vote
1answer
59 views

Magento 2 Custom REST API Json response

I have developed my custom rest API endpoint. Here is the code webapi.xml <?xml version="1.0" ?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
-1
votes
1answer
79 views

Implement Custom REST API end point returns list of best selling products

I have an assignment from clients to implement Custom REST API end point returns list of best selling products. Which I have done here Supports pagination, sort and filter can be filtered by date ...
0
votes
0answers
96 views

How to Update Magento 2 configurable child products price by REST API

API Call URL: GET index.php/rest/V1/configurable-products/$sku/children I'm trying to update configurable child product prices with rest api, I'm trying to get the child information through above API ...
0
votes
1answer
214 views

How to get product quantity by using REST API product filter

I am stuck here, i want to get product's quantity by using API filter like this https://talonton.test/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=entity_id&...
1
vote
0answers
190 views

Refund order and invoice api not working

I am trying to create credit memo and refund order and invoice via following api call:- '/V1/invoice/36/refund' and my array is as below, which i am converting later to JSON $postData = [ ...
1
vote
1answer
144 views

magento 2 when sales api override error

We are getting the following error when sales order data override to custom module "message": "Missing required argument $resourceClassName of Magento\Sales\Model\ResourceModel\Metadata.", can ...
0
votes
1answer
284 views

Assign Related Product In Magento 2 API

I am using magento 2 api for assigning product link like related or crosssell using api /V1/products/{sku}/links Here is My Sample Code <?php error_reporting(E_ALL); define('mag_apiurl',"http://...
1
vote
0answers
101 views

Magento 2 search criteria

I need to get product collection by product updated date. I am using below API request. [http_api]/magento2/rest/V1/products/ ?searchCriteria[filterGroups][0][filters][0][field]=updated_at ...
0
votes
0answers
81 views

Magento 2 custom API Implementation

I am overriding the default Magento2 model file Product.php in my custom module and for my custom API creation. In my custom API call data is coming from default Magento2 Product.php file rather than ...
1
vote
0answers
119 views

Create Order via SOAP api

Here I found the example shows how to create an order using REST api is there any example to do the same with SOAP api in Magento 2. Any suggestions, please?
0
votes
1answer
226 views

How to Modify core Module webapi.xml in Magento2

Magento 2 Core API to get products in GET method but want to make it POST method . How to do it and also open API ?
6
votes
2answers
6k 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'" : { ...
9
votes
2answers
7k views

Magento 2 REST API usage with examples

need to call Magento2 rest api in code level how to call default magento REST APIS