Questions tagged [magento2-api]

Denotes questions related to Magento CE and EE 2 API

Filter by
Sorted by
Tagged with
2
votes
0answers
93 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
521 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
280 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 ...
2
votes
2answers
1k 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
140 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
1answer
401 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&...
2
votes
1answer
337 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
301 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
578 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
1answer
151 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
92 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
172 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
345 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 ?
8
votes
3answers
10k 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'" : { ...
11
votes
2answers
12k views

Magento 2 REST API usage with examples

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