Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

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

0
votes
0answers
4 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
23 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 } } ...
1
vote
1answer
24 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
12 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
20 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
6
votes
2answers
310 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
17 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
1answer
19 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
60 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(); ...
4
votes
2answers
56 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. ...
1
vote
0answers
30 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
23 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
20 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
19 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
17 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 ...
3
votes
0answers
30 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
20 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
15 views

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

Can we create update and delete places from Bing API?
2
votes
1answer
55 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
32 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
20 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
35 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()...
6
votes
2answers
129 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 ...
0
votes
0answers
27 views

how send more item details to cart Api in Magento 2

this is postman api call http://praveen/Magento/rest/V1/carts/1/items Responce is { "item_id": 10, "sku": "lenovo", "qty": 1, "name": "lenovo", "price": ...
3
votes
1answer
24 views

Magento2 API Filtering Multiple categories

In Magento2 API, how would I filter by multiple categories? V1/products?searchCriteria[filterGroups][0][filters][0][field]=name&searchCriteria[filterGroups][0][filters][0][value]=%test%&...
1
vote
0answers
21 views

API V1/orders add product_options

I want add product_options to API V1/orders in items, how to do this? please help me! Im a freshman use magento2. have any easy way to do this?
0
votes
0answers
11 views

Create config product with multiple attributes in magento1.9 soap api

Can anyone help me how to add multiple attributes to config product creation using soap api. I am followed the below link: link but iam unble create multiple attribues in associated product section....
0
votes
0answers
29 views

Magento2 : How to connect third party ERP system with Magento system

I'm working on Mageno2 module, which is connect to Infor ERP system. How to get data from Infor to Magento system or Magento to Infor system? Any documents or third party extension available for it. ...
1
vote
0answers
25 views

How to make checkout a static block / have identifier like static blocks or pages?

Can I make magento checkout to have an identifier/ID like static blocks and pages? What's the best practice or solution to do this? I'm currently calling out magento pages / static blocks through ...
2
votes
0answers
19 views

Get list of coupons code for a cart id

Is there any API in magento to get list of all coupons appreciable to a corresponding cart id. can we get sale rules for a cart id and then find coupon through it
1
vote
1answer
31 views

Property “FilterGroups” does not have accessor method “getFilterGroups”

I'm sending the request http://10.232.32.64/rest/V1/orders? searchCriteria[filter_g‌​roups][0][filters][0‌​][field]=status& searchCriteria[filter_groups][0][filters][0][value]=pending& ...
2
votes
1answer
71 views

Optional parameter in Magento 2 REST API

I have a API route like, <route url="/V1/product/:productId" method="GET"> <service class="Vendor\Sample\Api\SampleInterface" method="sample"/> <resources> <...
0
votes
2answers
44 views

How to connect Third party service like ERP system in Magento 2?

How to establish the connection of third party ERP system in magento 2 ? I have credential of Acumatica, How can I establish the connection in Magento 2 and set some data to that ERP system, and Also ...
0
votes
0answers
41 views

Magento 2 coupon generate api exceptions

I'm having a hard time understanding why the v1/coupons/generate is throwing a {"message":"One or more input exceptions have occurred."} (status_code 400) error I'm using this call to batch generate ...
0
votes
1answer
50 views

How to clean up magento2 database programatically?

How can I delete all test data from magento2 database programatically. Is there is any way to run an API and delete all test data?
0
votes
0answers
18 views

How to get admin details like first name, last name,email using Rest API in Magento 2

How to get admin details like first name, last name,email using Rest API in Magento 2. Any options to add custom attribute like GST No, company name, contact number, Bank details
0
votes
1answer
64 views

How to increase/decrease items quantity of product in cart using REST API in magento 2?

How to increase/decrease items quantity of product in cart using REST API in magento 2
0
votes
1answer
25 views

Magento2: How to redirect to payment gateway using api

I am new to Magento and want to implement payment gateway with 3rd party. I am using credcommerce module creater but it works with offline. Can someone guide me so that I can develope Payment gateway....
1
vote
0answers
35 views

How to create REST API for customer profile update?

Since, I have worked with magento get method api calls but yet didn't work on post or put method. I am trying to update customers to update their profile in mobile app. public function update($id){ ...
1
vote
1answer
29 views

API Product with multiple words

I dont know how can I add multiple words search using magento 2 product api. Example : https://www.store.com/index.php/rest/V1/products?searchCriteria[pageSize]=8&searchCriteria[filterGroups][0][...
1
vote
0answers
24 views

Magento 2 V1/carts/mine/totals API getting Old data

In magento 2, after add to cart or merge cart when i am call V1/carts/mine/totals API first time it send me old data. After i am calling same API it give me right data that available in Quote table. ...
0
votes
1answer
35 views

Magento Open Source 2.3 / 2.2 - How many orders / inventary and SKU it can handle?

I'm about to start a project, But my concerned is on the data, the magento 2.2/2.3 can handle. The traffic figures are in 1 Million to 5 million and we are not interested in Enterprise model as of ...
1
vote
0answers
22 views

Why Magento is not giving final price in rest api?

I have recently try to get product final price via rest api. You can check special_price is already active and it will 20 but of price are coming 45 it will be 20. API URL : http://magento.local/...
0
votes
1answer
26 views

rest api invoice capture does not save entry to transaction log

Magento faithfully logs the transaction detail when I manually capture an invoice within the Magento store interface. I assume that Magento would likewise generate the same transaction detail entry ...
0
votes
0answers
19 views

Soap api v1.9, get children product of a bundle

I've to get the children product of a bundle with the soap api. I've trying with the catalogProductCustomOptionList and with the catalogProductLinkList method but the api always return 0. Do you know ...
0
votes
0answers
18 views

how to customize magento 2 order iteminterfae soap api

Hi in magento2 default API order item interface i need to add custom fields those are not attributes just i need to add custom flags in soap API based on order id flags will come how to add that it is ...
0
votes
0answers
38 views

Magento2 Update customer attribute via API

I'm trying to update an attribute for a customer using the rest API Being that I have a customer id, it should be a simple API call to /V1/customers/{id} The description of that endpoint is Create or ...
0
votes
0answers
9 views

Magento 2 user field validation using an API

In a dedicated data table where we stored customer's privilege card number in order to validate them with users that they enter to a field called "privilege card no" On such an occasion I'll have to ...
0
votes
0answers
12 views

Preventing recursion in custom Magento API

I'm having some issues dealing with recursion in a custom API endpoint I have written for Magento 2. I have an endpoint that returns an entity which contains a number of fields, one of these fields ...
0
votes
0answers
5 views

Programatically change all product names to the short description

I would like to modify the way Magento loads the product names and change it to load the short_description instead. We use the API to synchronize between an ERP and the Magento itself, so once the ...