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
0answers
29 views

How to get direct OAuth based access as a third party app?

I was going through the API docs and couldn't find a step-by-step procedure for our use-case. I need to integrate Magento on our SaaS app dashboard for our customers who use magento. So basically, I ...
1
vote
0answers
37 views

How to create Layered Navigation in API?

I want to fetch Category wise products and products attributes with values just like values of layered navigation in web using REST API. Any help/advice would be appreciated.
2
votes
0answers
52 views

Get and Add like(Favourite or Unfavourite) product in Magento 2 Rest API With URL?

Get Favourite product in Magento 2 REST API with URL? And Add to Favourite in Magento 2 REST API with URL?
-1
votes
1answer
63 views

How to set the key for object array?

I have create a custom Api and I am getting the response as follws: [ [ { "entity_id": "154", "state": "new", "status": "pending", "...
0
votes
1answer
202 views

UPS stopped working from yesterday in Magento 2

I was using UPS in my Magento 2 store, from today I found that the shipping methods are not fetched and they are displayed with the message Unfortunately we cannot provide a shipping quote at this ...
3
votes
1answer
192 views

Magento 2: Run reindexer using REST API

Is any one having tried to create REST API so using custom API one can trigger re-indexing? which method do i have to mention in webapi.xml file as this is purely AREA::ADMIN activitiy. currently ...
1
vote
0answers
50 views

Magneto 2: How to configure a rest api only server for best performance?

I know magento have some recommendations for the best performance. And I found several articles related. But nothing specific for servers that provide access only by the Rest API. Because everyone ...
1
vote
0answers
29 views

Use different domaine for Admin and Front

How can we use different domaine for the Front and the admin section. If I'm changing the domaine on the base URL of the store config, I'm getting a 404 because there's no admin on this domaine. I've ...
1
vote
1answer
46 views

How to create a custom API in magento 2 which can be accessed by all the customers only?

I need to create a custom API which can be accessed by all the customers only in magento 2 . Please help.
1
vote
0answers
24 views

How to get the order details of a customer using the access token of other customer?

In my project there the two types of users: manager and captain. The manager should be able to view the orders placed by captain so i need to use the access token of manager to get the order list of ...
0
votes
1answer
70 views

How to establish connection between Magento 2 and some ERP Software?

I am working on ERP Magento 2 Connector. I have a query about it How is it practical to make connection with some ERP through csv formate data. I mean we can create REST/SOAP APIs but how can we tell ...
1
vote
0answers
55 views

Magento 2 Payment method Instruction in API

Fetch Instructions for Payment method in Magento 2's existing API /rest/V1/carts/mine/selected-payment-method Magento APIs doesn't provide any Instructions for Payment method, Even after selection of ...
0
votes
2answers
260 views

How to create shipment and add tracking number through API in Magento 2?

I have a csv file with 3 columns with list of (increment_id, carrier_code, tracking_number). How do I Post POST these values to existing magento 2 order using API? I have managed to load the values ...
1
vote
0answers
11 views

Magento API from magento1 or 2 to magento2.1

I want to have an api to transfer data from magento1 and magento2 to magento2.1 real time I mean that want to change my magento2.1 price field if it changed from magento 1 or 2 websites could you ...
1
vote
0answers
43 views

API error when adding an extension attribute

I'm trying to follow Magento's tutorial for adding an extension attribute. I want to add an extension attribute called "exportedFlag" to the Invoice class, and have it returned through the V1/...
2
votes
1answer
92 views

POST /rest/V1/carts/{cartId}/items isn't working when logged as customer

I'm trying to use all the /carts/{cartId} endpoint list in the magento rest API documentation with the cart ID I've recevied on POST /rest/V1/carts/mine but every time I'm getting a error "message": ...
1
vote
0answers
308 views

How to assign a guest cart to a customer with rest API

How to assign a guest cart to a customer with rest API. I've try PUT /carts/{cartId} when I’m log as a customer to assign a guest cart to the customer https://devdocs.magento.com/redoc/2.3/customer-...
0
votes
1answer
174 views

How to not use attribute default value over rest API in magento2

Im working on api integration between one store of magento2 multi store installation and product db of a client. Our current problem is that part of the items for in our store are duplicated (same sku)...
2
votes
1answer
119 views

When to use PUT /carts/{cartId}

When should I use the PUT /carts/{cartId} when I’m log as a customer to assign a guest cart to the customer https://devdocs.magento.com/redoc/2.3/customer-rest-api.html#operation/...
3
votes
2answers
111 views

Magento2 API to access internal payment method

I am working on creating a way to make an order via the magento api and wondering if it is possible to access internal payment methods (payment methods that are only enabled for the admin panel) via ...
0
votes
0answers
36 views

Bug Magento, use default value on updating with API

In order to patch this bug on Magento 2.3 (updating value using API make "Use default Value" unchecked for store level) https://github.com/magento/magento2/issues/22159 https://github.com/magento/...
3
votes
2answers
36 views

Why does new api module needs composer.json?

I followed alanstorm's magento 2 guides and now I am in Magento world for a little more than a month. https://alanstorm.com/category/magento-2/#magento-2-mvc I've come across this tutorial about ...
1
vote
1answer
100 views

Set Length, Width, Height OOTB Attributes Using API

Currently I can only change weight using api not Length, Width and Height. these are out of the box attributes in magento 2.3 as seen in the product panel below. Price and weight is updated by POST ...
2
votes
2answers
388 views

How can we get customer orders history with rest API

How can we get the customer order history over the rest API with the customer token. If I'm trying the url /V1/orders?searchCriteria[filter_groups][0][filters][0][field]=customer_email&...
1
vote
1answer
355 views

How to overwrite customer registration REST API in magento 2.3

Any once please help me out for overwrite the REST api in magento 2.3 please describe with example.
0
votes
0answers
19 views

order invoice from SOAP api

How can i get invoice and shipment order using SOAP api. $soapResponse = $soapClient->salesOrderManagementV1GetOrderInvoice(array("increment_id" => 2000000001)); this code is not working. what ...
0
votes
0answers
100 views

Magento 2 REST API get order rows

Hi I have an issue with getting data about items in order, my order contain 1 row (one item) but in JSON I have 2 duplicated items with the same SKU but one with product_type=configurable and other ...
0
votes
0answers
35 views

Retrieving newsletter subscriber field from magento 2 API

I have the code below... but it's not giving me the newsletter subscription status. Please assist. $api = "rest/V1/customers/search"; $json = ' { "search_criteria": { "filter_groups": [...
1
vote
1answer
429 views

What is Asynchronous Web APIs in Magento 2.3?

In Magento Open Source 2.3.0 Release Notes Magento introduced Asynchronous web endpoints in Release Notes. Example PUT /async/V1/products/24-MB01 payload { "product": { "price": 29 } } ...
2
votes
1answer
39 views

Magento API for mobile application

My organization wants to create mobile application for their website I have checked the rest API from dev docs: https://devdocs.magento.com/guides/v2.0/get-started/rest_front.html Is it ok to use ...
2
votes
0answers
17 views

Magento 1.x API

In an integration with Magento 1.x SOAP v2 API through WSDL I've encontered many agencies with different Magento versions and WSDL files. The worst case scenario is when the "communication interface" ...
0
votes
1answer
83 views

Magento 2 : how to add additional information in rest API response?

I have one custom table 'vendor_info' with 5 fields and I want to add this table data along with this API http://www.hostname.com/rest/V1/products?searchCriteria
7
votes
2answers
762 views

Magento2 Admin dashboard chart is broken in my all Projects

Today suddenly my admin dashboard chart is not visible. Live and Test websites are on different server and suddenly today it's broken. I have check in log file and found that [2019-03-19 05:51:17] ...
1
vote
0answers
19 views

How to speed up a registration of various products using API Magento SOAP 1?

I am registering more than 20 thousand products via API soap Magento 1. But it is taking 5 seconds to register 1 product! Is there a way to streamline this procedure?
1
vote
2answers
200 views

Magento 2 how to add product dimensions using rest api

I can add simple products to Magento 2 just fine and adding the weight is no problem at all I do the following: $data = '{ "product": { "sku": "' . $row["item_number"] . '", "name": "' . ...
1
vote
2answers
95 views

Magento Api request foreach error

I am trying to get attribute option Ids for a sku using this below api call. http://localhost/rest/V1/configurable-products/sh8/options/all I used this curl request: $curl = curl_init(); ...
6
votes
2answers
773 views

How do I post JSON to a web API method?

I want to send a JSON string via API, and then parse the JSON in code. I don't want Magento to try to convert my JSON parameter to a PHP object. I'm trying to add this to the stock registry API. ...
2
votes
0answers
238 views

Custom REST API for fetch all product with stock information

I am creating custom rest API for getting all products including out of stock products too but I am not able to get out of stock products. /** * Get products with filter. * * @param string $...
1
vote
0answers
101 views

Magento 2 calling External API

How do I call an External API in Magento 2? And what file/folder do I do it in?
1
vote
1answer
164 views

Why are product_id and item_id part of the request to update stock through the API?

I'm developing an application to integrate with the Magento inventory API, and I'm confused about the fields product_id and item_id. I'm PUT-ing to the API /V1/products/{productSku}/stockItems/{...
0
votes
0answers
74 views

Magento 2.3 Return Custom Shipping Methods

Magento 2.3 I have an external REST API that will return a list of shipping methods based on zip code, how should I set up my custom module return the results in a list of shipping methods to pick ...
0
votes
0answers
34 views

Magento 2 Bulk API Store set for categories

How can I set a store_id for categories using the \Magento\AsynchronousOperations\Model\MassSchedule::publishMass I want to update it's attributes but the store_id in ...
4
votes
1answer
61 views

How to make Dynamic URL for Browser and Mobile Application - for Customer Confirmation mail URL?

Magento 2 gives us the ability to take more control of the customer account creation process. There is a special configuration setting located in Admin under Stores → Configuration → Customers → ...
1
vote
0answers
30 views

Magento 2.3.0 - Class MailCampaigns\Connector\Helper\MailCampaigns_API does not exist [closed]

I installed the module (https://github.com/mailcampaigns/Magento2Connector) On my Magento (2.3.0 version) application. It installed successfully but when I try to add a product to the cart. It's ...
1
vote
0answers
20 views

Bing API for Create Update Delete/Close Places in Bing Using PHP [closed]

Can we create update and delete places from Bing API?
2
votes
1answer
73 views

Learn zend, magento modules and magento API

I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?
2
votes
0answers
79 views

Update select attribute in custom_attributes via catalogProductRepositoryV1 API PUT request

I'm trying to update a product with the catalogProductRepositoryV1. I want to change a custom select attribute for the given product. When sending the following request: { "product": { "...
2
votes
0answers
71 views

Magento 1.9 : I am unable to generate session using soap api v2

Can anyone help me, regarding soap api v2 , I am unable to generate session using v2 version, is there any changes to change? I am getting below error message: Fatal error: Uncaught SoapFault ...
1
vote
1answer
291 views

Magento 2 + Fatal error save() must be an instance interface not a model

Trying to save record in admin grid with create API interface but getting fatal Error link below Fatal error: Uncaught TypeError: Argument 1 passed to Mage2\Inquiry\Model\InquiryRepository::save()...
8
votes
2answers
424 views

Soap API - How to get request by Limit 10 based on pagination?

I am getting products list using catalogProductList, its taking too long time to return the values(see screenshot) actually my products count is 24K, how can i run by using limit 10 and if i click ...