Questions tagged [api]

An application programming interface (API) specifies how some software components should interact with each other.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 views

How to Get All Product with pagination using REST API in magento 2?

Using REST API Get all product with pagination. In first page 20 product and second page 20 products ect...
0
votes
1answer
770 views

Adding value to the additional attribute of product via SOAP V1

I have created one additional attribute with dropdown field. When i add values via SOAP v1, i could not be able to add. following is my code $result = $client->call($session, 'catalog_product....
0
votes
1answer
736 views

Magento create order via API works - but we can i send a confirmation email to the Customer

I am using API V2 for creating order - It's works fine but Magento not sending confirmation emails to the customer for new orders create via API! I am using Magento 1.9.1.1. is there any flag to ...
2
votes
1answer
17 views

How to get the categories child category list per store in magento2 rest api

I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.
10
votes
1answer
1k views

Magento2 : API Stock update

Using Magento 2.2.2, I was trying to add stock updates to a pre-existing setup using the official defined endpoint: rest/V1/products/testsku/stockItems/1 with { "stock_item": { "qty": 1234, ...
1
vote
2answers
874 views

How can I get the HEX code in Visual Swatch via Rest API

Could anyone help me to find the rest api to get hex or image of visual swatch attribute? I need the api to return the following, Label Value HEX or Image of the swatch. Thanks
0
votes
0answers
9 views

Cannot filter by created_at field in magento SOAP

Title says it all. The api can't seem to filter by product's created_at value. I am able to filter by any other value, especially the updated_at, but not created_at. I have noticed that the particular ...
0
votes
0answers
7 views

Bulk Actions Log

After testing Rest Async-Calls with RabbitMQ-Server, all worked fine. In the Magento-Database the table "magento_bulk" and "magento_operation" is full with data from the Rest Async-Calls. But in ...
0
votes
0answers
10 views

Magento 2 API - Error when trying to update a product

In my debug.log I received this error [2019-11-05 14:04:34] main.DEBUG: cache_invalidate: {"method":"PUT","url":"https://example.com/rest/default/V1/products/attributes/...
0
votes
0answers
18 views

CategoryManagement class, how to move at top

I found a problem with a custom script in our Magento 2.3.3 installation. The custom script tries to order the categories. There is a usage of the move function from the CategoryManagement class. It ...
1
vote
1answer
843 views

REST API Access Token Issues

I am trying to use the Magento REST API for a client to get details of customers, and orders, etc. I have setup a REST Consumer and I am trying to obtain an oauth access token and having issues. I ...
2
votes
2answers
36 views

Update Cart Item quantity by customer quote id in custom API

I want to Update Cart Item quantity by customer quote_id in custom API. I have tried below code but it's not work with Magento 2.3 $quote = $this->quoteRepository->getActive($quoteId); ...
0
votes
1answer
893 views

Magento 2 API get product price

I'm building an iOS application for my store, and I'm looking for a way to get the correct price of an actual product. Looking at the API I only find requests to get raw product information. http://...
0
votes
1answer
658 views

Making External API Request in Product Model

In my Magento project I have to receive pricing and inventory information on our products. Right now I have created my own method within the product model to make a SOAP request in the getPrice() ...
2
votes
1answer
61 views

How to Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.
3
votes
1answer
44 views

Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me. I have ...
3
votes
1answer
701 views

Getting all attributes of products does not work in Magento2

I want to create custom API module that will return the same thing as: /V1/products REST API endpoint. In order to do that I created the following custom endpoint: public function __construct( ...
0
votes
0answers
10 views

Magneto 2 Rest API out of stock not working in search Criteria parameter

In searchCriteria Result items are empty while add stock parameter only in stock It get not any result in these param http://www.thepetstore.ae/rest/V1/products?searchCriteria[filterGroups][3][...
0
votes
1answer
790 views

retrieve the oauth access code in magento 1.9

$callbackUrl ="http://host/mgstore/customApi/test.php"; $temporaryCredentialsRequestUrl = "http://host/mgstore/oauth /initiate?oauth_callback=".urlencode($callbackUrl); $adminAuthorizationUrl = 'http:/...
0
votes
2answers
28 views

Magento2 : checkout_cart_product_add_after Event not working with API

I have created an observer on event "checkout_cart_product_add_after" and its working fine for web but not working with REST API.
1
vote
1answer
1k views

Magento 2 RESTful API update category

I am using Magento 2.0.11. I would like to use the RESTful API (HTTP:// magento2URL/index.php/rest/V1/categories/(category ID)) to change the "Is Active" attribute of one category from True to ...
3
votes
1answer
68 views

Magento 2: Authorize.Net: Transaction has been declined. Please try again later

I'm on Magento 2.3.2, Using Authorize.Net [sandbox] as my payment method, I'm unable to place order because I'm getting an error Transaction has been declined. Please try again later., I see my ...
0
votes
1answer
270 views

Where to find a solid Magento 2 SOAP-API Documentation

I'm currently working on a webapp that communicates with a magento 2 server. I tried to use the soap interface for the communication but it quickly turned out, that the soap api changed from Magento 1 ...
0
votes
1answer
20 views

Any suggestions of a Single Sign-On to users from external apps (Mobile) to Magneto 2?

The titles say it all. Is there any extension, or suggestions to add this feature to Magento 2 store? I want users to access the store from a 3rd-party mobile app. And from there, users will be able ...
0
votes
1answer
811 views

Get pending, completed, processing orders REST API problem

I have an API module to get orders with any status for a specific customer. I am calling the API as : https://{{magento-store}}/index.php/rest/V1/order/myorder?status=processing and authoriaztion : ...
4
votes
4answers
840 views

best practice to connect Magento 2 to price/product service

I have my own price/product service that I need to connect to Magento. The service has a variable amount of products with very variable prices. The price can change with every request a customer makes....
0
votes
2answers
860 views

Magento SOAP V2 API Unknown error

this is the first time I use Magento, and I'm trying to make an API, but Im getting some errors. When I try to call a custom SOAP api method, I'm getting this error: Uncaught SoapFault exception: [...
0
votes
2answers
2k views

v2_Soap API on an elastic beanstalk setup with a separate admin server stopped working after 1.81 upgrade

Currently, I have my app servers deployed through Amazon Web Services Elastic Beanstalk. I have a separate EC2 instance set up as a backend admin server that is only accessible from our office. The ...
2
votes
4answers
3k views

How do I fix Magento API URL redirect on HTTP?

I'm running Magento CE 1.8.1 and trying to access my Magento site over the API using the URL http://www.mysite.com/index.php/api/v2_soap?wsdl=1, but I'm getting redirected to https://www.mysite.com/...
0
votes
0answers
26 views

Magento 2.3.2 - Update product attribute option api duplicate option value

I'm trying to add and update product attribute options through the api endpoint: /V1/products/attributes/:attributeCode/options. When I try to update the values of an existing attribute option, the ...
0
votes
0answers
14 views

Magento soap api update product max qty

Update product inventory Max qty allowed in shopping cart using magento soap api, find the screenshot: we have tried with the below link, but its not working, useconfig checkbox not updating with ...
0
votes
1answer
38 views

Magento 2 : Change default REST API response

I have an order collection get out via API How can I change some value in API response via custom module
0
votes
0answers
17 views

Reorder Issue - Placing order using API

The Reorder button does not appear when I am trying to place the order using API.I have checked the API using swagger even there the reorder variable is not set. how CAN i RESOLVE THE ISSUE
0
votes
0answers
10 views

Magento 2 : Change option_value of custom option via api

I took the order via API My problem is how to edit the option value of the custom option via API. hope you helps. Thank in advance.
0
votes
0answers
22 views

Order API Pre-set parameters

I have a custom module with it's own api requests, but I wish to create an alias to an Magento api request. My api path: GET /V1/orders/get-new which is a simple alias to Magento owns GET /V1/...
1
vote
1answer
22 views

Magento 2 change product description using API on every 5 seconds

I am working on Magento2, and I've to change my product description on every five minutes using the third-party API. Then I've 1laksh product in my Magento, so which approach is better to change the ...
3
votes
5answers
12k views

Magento 2: How to get order information using REST API?

I want to get order,customer information by using REST API. Anyone have idea about this?
0
votes
0answers
9 views

Magento2 - Empty cart by customer email in API

I am struggling to empty the cart by email in the API. The store is multi-website and my API endpoint works in that it takes an email and returns a message. The customer ID is retrieved but the ...
9
votes
2answers
1k views

merge guest quote with customer quote(if custommer log in) magento 2 rest api

if 2 items in cart if customer login both item should need to add cart , Both quote (before login & after login) merge and create final quote which contain all item of customer quote Refference ...
0
votes
0answers
14 views

The owl carousel is initialized before the module instagram and does not see the items

I have a block that displays pictures from instagram, he gets them using the library. https://www.mageplaza.com/magento-2-instagram-feed I have 6 elements in a row, I want to use them in a carousel ...
4
votes
1answer
505 views

Magento 2 Add to cart api Item price set zero in Quote Item table

I am trying to add product to cart with Magento 2 default API. POST : http://{{magento2}}/rest/V1/carts/mine/items Request : { "cartItem": { "sku": "p2", "qty": 1, "price"...
0
votes
2answers
898 views

How to add / change group prices with Magento API 1.9.1

I can't find a way to add or change the group prices with the API. Its only possible to change the tier prices. Have anyone a idea, how to solve this?
0
votes
2answers
42 views

How to programmatically reindex product after update ex. price/stock quantity

how to programmatically reindex product after update ex. price/stock quantity using Magento ver. 2.3.2 API via Swagger? I do application in C# which sync my system with Magento. I have a lot of ...
0
votes
2answers
29 views

How to Get API Paramter?

I use a custom API with Delete Method. I would get this paramter. { "id":"1" } How can i get it in my api response? etc/webapi.xml <?xml version="1.0"?> <routes xmlns:xsi="http://www....
0
votes
1answer
33 views

Custom Module API get CDATA Error

i got this error at localhost/rest/V1/hello/name/Jim. This XML file does not appear to have any style information associated with it. The document tree is shown below. <error> <messages> &...
5
votes
0answers
112 views

HELP - How to convert Default SOAP-v2 API Magento Objects into XML Values?

In Magento1.9 - product collection by default return values as Magento Objects using soap v2, how can i change into XML, <?php ini_set('display_errors','On'); $proxy = new SoapClient('abc.com/api/...
0
votes
1answer
15 views

Magento2 : Set Customer Custom Attribute Value Using Rest API

Property "Mobilenumber" does not have accessor method "getMobilenumber" in class "Magento\Customer\Api\Data\CustomerInterface". Whenever i am trying to set customer custom attribute value i am ...
0
votes
1answer
285 views

How to implement MSI (multi-source inventory) in Magento2.2.3 project?

Problem: I need to implement Global inventory management in magento 2.2.3. so that inventory can be synchronize from various sales channel like source(ecommerce marketplace example: amazon,flipkart.. ...
0
votes
1answer
1k views

Rest Api service for shipping information Post -

V1/carts/mine/shipping-information for this service which parameter are required.. I had given below parameters { "addressInformation": { "shippingAddress": { "id": 0, "region": "...
3
votes
1answer
1k views

Sign Up With Avatar REST API Validation Error : Magento 2

I have this code for image attribute (avatar). app/code/Ibnab/CustomerPut/Setup/InstallData.php : <?php namespace Ibnab\CustomerPut\Setup; use Magento\Framework\Module\Setup\Migration; use ...