Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [magento2-api]

Denotes questions related to Magento CE and EE 2 API

Filter by
Sorted by
Tagged with
1 vote
2 answers
268 views

how can we increase performance of bulk product save in magento 2 api

when we test performance of bulk product create api request using Apache 2 Benchmark, it takes to much time for return response of request. I tested bulk api requests with 200 total number of requests ...
Harsh Patel's user avatar
0 votes
0 answers
56 views

Magento 2 API - Category creation error

Trying to create a category through API. But i'm getting an error { "message": "Could not save category: %1", "parameters": [ "The \"Is Home ...
Shiyas Pathiyassery's user avatar
0 votes
1 answer
656 views

Magento2 - External Image URL to product image

I'm using Magento2.3.4 and there is an API response that sends me JSON to add a new product image: { "base_image" : [{"type":"url","value":"http://imgur.com/base_image.png"}], "small_image" : [{...
jojo's user avatar
  • 39
0 votes
1 answer
1k views

Magento 2 Call Rest api issue : "\"%fieldName\" is required. Enter and try again.",

I am trying to call Magento 2 Quote rest api, <route url="/V1/carts/mine/coupons/:couponCode" method="PUT"> <service class="Magento\Quote\Api\CouponManagementInterface" method="set"/...
Bharat Desai - Certified Dev's user avatar
2 votes
0 answers
972 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/...
Naveed Asim's user avatar
  • 3,637
4 votes
1 answer
3k 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.
Divyarajsinh Dodiya's user avatar
4 votes
0 answers
869 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 ...
Praveen Negimani's user avatar
3 votes
3 answers
7k 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="...
chirag dodia's user avatar
  • 2,122
0 votes
1 answer
767 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&...
FANBOYS's user avatar
  • 11
3 votes
1 answer
1k 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 = [ ...
arushi's user avatar
  • 790
2 votes
1 answer
586 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 ...
Raghu's user avatar
  • 1,710
0 votes
1 answer
2k 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://...
Vishnu Bhadoriya's user avatar
1 vote
1 answer
258 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 ...
shivashankar m's user avatar
0 votes
0 answers
98 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 ...
shivashankar m's user avatar
1 vote
0 answers
225 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?
Karthik Rj's user avatar
0 votes
1 answer
763 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 ?
Pradeep Kumar's user avatar
11 votes
5 answers
32k 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'" : { ...
Yehia A.Salam's user avatar
15 votes
3 answers
33k views

Magento 2 REST API usage with examples

need to call Magento2 rest api in code level how to call default magento REST APIS
Pradeep Kumar's user avatar