Questions tagged [magento2-api]

Denotes questions related to Magento CE and EE 2 API

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Ship different qty than ordered qty

I know how to ship orders programmatically and I'm doing it in my current Magento 2 project. However, the requirements is to ship orders programmatically (from an app using custom API) where the app ...
0
votes
1answer
43 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" : [{...
0
votes
0answers
12 views

Is their an interface for using the Bulk API within a Magento2 module?

Is their an interface for using the Bulk API within a Magento2 module? I'm trying to identify how I can programmatically modify large numbers of products?
0
votes
1answer
120 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"/...
2
votes
0answers
131 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
877 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
463 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 ...
3
votes
2answers
2k 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
164 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
466 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
438 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
353 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
762 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
163 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
94 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
193 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
418 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
5answers
13k 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'" : { ...
13
votes
3answers
17k views

Magento 2 REST API usage with examples

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