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

2
votes
0answers
45 views

Get Quote and Quote Items using Magento 2 SOAP API

I am working with Magento 2 Rest APIs ( For Abundant cart ) and having issue with Quotes, I am able to get all Quotes ( with desired filters, is_active = 1, items_count > 0 ) using API : /rest/V1/...
1
vote
1answer
60 views

Get list of all Catalog Price rules using API in Magento 2

I want API endpoints that give me all available catalog price rules in Magento 2.
2
votes
0answers
50 views

How to set extension attribute to Order search interface api magento 2

Please review following files: OrderRepositoryPlugin.php <?php namespace Retailinsights\Cartrules\Plugin; use Magento\Catalog\Api\ProductRepositoryInterfaceFactory as ProductRepository; use ...
1
vote
1answer
67 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
89 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
114 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
245 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
215 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 = [ ...
2
votes
1answer
175 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
346 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
115 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
84 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
128 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
237 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
7k 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
8k views

Magento 2 REST API usage with examples

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