Questions tagged [api]

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

1
vote
0answers
28 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
35 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
21 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
34 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
29 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
64 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
10 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
24 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
39 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
154 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
0answers
48 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
110 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
80 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
25 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
31 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
52 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
111 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
90 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
10 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
40 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
22 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
143 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
33 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
15 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
32 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
540 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
66 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
90 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(); ...
5
votes
2answers
296 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
123 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
71 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
73 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
68 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
26 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
44 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
23 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
17 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
66 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
56 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
46 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
104 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
253 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
31 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
108 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
23 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
12 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
55 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
40 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
33 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