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
122 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
118 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
101 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
30 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
34 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
93 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
1answer
309 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
304 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
15 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
84 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
31 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
379 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
37 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
16 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
65 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
720 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
151 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
94 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
680 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
211 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
94 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
140 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
31 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
55 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
27 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
78 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
66 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
244 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
375 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
33 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
245 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
26 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
13 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
74 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
45 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 ...
3
votes
0answers
38 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
146 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
2answers
436 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
159 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
133 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
479 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
31 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
205 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
39 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
78 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
36 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][...