Questions tagged [api]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
20 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.
0
votes
1answer
21 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
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 ...
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
21 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
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.
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 ...
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
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 ...
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 ...
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> &...
3
votes
1answer
69 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 ...
3
votes
1answer
45 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 ...
0
votes
1answer
16 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 ...
2
votes
1answer
64 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.
0
votes
1answer
22 views

Magento2 - rest API on custom module “items” object is not populated

I build a custom module with a stores repository that I query using the following webapi.xml: <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
28 views

Mageto 2: get custom attribute via rest api

I have a module "extra fee", I did get order info via rest api, but I don't see "extra fee", how can I get it? anyone help me. Thank in advance.
0
votes
0answers
15 views

External application - Magento 2 login

Do you know if it's possible to use the customer login that I have in my Magento 2 store in an external application? I would like to have one login database for all my applications. Thanks
1
vote
1answer
19 views

magento2 rest api ship to name not adding after creating shipment

Ship to name is not adding while creating shipment using Rest Api with below api url: http://127.0.0.1/magento225/rest/V1/shipment/ Body: { "entity":{ "orderId":9, "store_id":1, "items":[...
0
votes
1answer
26 views

Magento 2: Get order via API

I need to get out of order information via api, but i didn't know what to do, anyone help me, thank in advance.
1
vote
0answers
41 views

How to get all product data from oracle netsuite through php api

I have been created the connection between PHP and Netsuite but now I want to load all product data from NetSuite to my PHP API so how can I do this? is there any solution for that...
0
votes
1answer
14 views

Magento 2: how to create api to send the Hashkey value to Mobile Apps?

I want to create PAYU API for Checksum generation at the Magento backend and send the Hash key value to Mobile Apps.
2
votes
0answers
34 views

Create Module For Send Order Notification on WhatsApp in Magento 2.3.2

I Want To Create Module For Sending Place Order Message On WhatsApp.. Or Also Any Free Extension Available For This I Tried WhatsApp Order Notification But Its Paid I Want To Free Extension Or ...
0
votes
1answer
34 views

Magento 2: Call Controller method from Model

How to call the controller method from model? Or How to programmatically reindexing using API? Here is my code.Below code gives me error like below. { "messages": { "error": [ ...
0
votes
0answers
15 views

Magento 2 : Run command from API

How to run below command programmatically in API code. 1) php bin/magento setup:upgrade; 2) php bin/magento setup:static-content:deploy; Help me to solve this issue.
1
vote
0answers
23 views

In Magento 2.3, How to add custom error code with response

In Magento 2.3, How to add custom error code along with response. For example, If I add the code as below, I am getting this below response: throw new InvalidEmailOrPasswordException(__('Invalid ...
0
votes
0answers
23 views

Did Magento change the language of API error messages with 2.3.2?

Starting with the upgrade to 2.3.2 it seems like error messages of the REST API are localized now. For example the error message "Database deadlock found when trying to get lock" is now "Database ...
0
votes
0answers
10 views

Magento as an API Framework

What do you think about using Magento as an API/webservice framework? I don't mean using the Magento API to consume Magento services (products, orders, customers, etc.), I mean using Magento to ...
2
votes
4answers
135 views

Magento2 Copy data from one to another magento installation

I want to copy all data from one to another magento installation. Wants to copy products,product-attributes,category,category-attributes,customers,cms-block,pages,rules everything except orders. I ...
1
vote
2answers
53 views

You did not sign in correctly or your account is temporarily disabled:customer login

When I try to load /rest/v1/integration/customer/token, passing username and password in the body, it shows below error: { "message": "You did not sign in correctly or your account is ...
0
votes
0answers
22 views

Magento 1.9 : How to Send Mag::Log error using Whatsapp?

How can i send my EventObserver log message by whatsapp message?
1
vote
0answers
9 views

Examples of magento 1 modules that works with 3-rd party API

Recently I started to work with Magento 1, so want to learn how to do things right. Now I have some task - search through 3-rd party API (I am interesting how Magento works with another API, not own ...
1
vote
1answer
36 views

How do I add a api created guest cart to active guest user or how to get quote ID from active guest user

I have a Magento store and a Wordpress website on the same domain, I want to view edit add and delete products from both sites. So far I've been able to get the products from the local storage and ...
0
votes
2answers
140 views

How to enable CORs to access Magento rest APIs : Magento2

I'm getting an error while call API from Angular APP test website and app is hosted in different domain. Website Url abc.test.com Angular App : xyz.test.com When I call API for Listing Of product in ...
0
votes
0answers
32 views

Magento2 - Create custom shipping method using 3rd party api

Magento 2: I have 3rd party API and key, on the checkout page using zip code on-change check with details like country, state, zip-code verify via 3rd party API than get a list of related shipping ...
1
vote
1answer
139 views

Get product attribute value in GraphQL api

I'm having a problem with the GraphQL API for Magento 2. I cannot retrieve the attribute value of multiselect or dropdown attributes when I retrieve my products. In this example my attribute "...
0
votes
0answers
36 views

Magento 1.9 SOAP v2: Specify a store view on category update

I would like to update categories in a specific store view via the SOAP API. Below is the code I'm using: $catu = '628'; $store = '9'; $cat = "name2"; $proxy = new SoapClient('http://example.com/api/...
1
vote
0answers
33 views

Magento 2: How to change price formatting for the API interface?

I need for the (soap) sales order API all prices with 4 decimal places. Example: 9.45 => 9.4500 But only for the API not for other prices! I know the prices are already stored with 4 decimal ...
1
vote
0answers
17 views

REST API: Setting Item Quantity / Need to Get Current Reserved Quantity of an item

Working on using the Magento 2.3 Rest API to set the Quantity of an item available based on a separate datastore. I realize that the formula for getting the Total Salable quantity is based on the ...