Questions tagged [api]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
41 views

How to create my own custom search bar Using Algolia Api's. Magento 2

I want to create a custom search bar in which I can search Orders using Algolia Api's. I know that there is an Algolia extension which is used for to search products but How can I use Algolia Api's to ...
1
vote
0answers
52 views

How can I send invoice email via api?

I have an order id. On basis of that I need to send the already created invoice to the customer.
-1
votes
2answers
84 views

We would like to call an event which is observed from admin as well as from API, which area I should use?

Please Help me on this point i'm new in thie area , I would like to call an event which is observed from admin side as well as from API, in which area I should put my events.xml an dmy observer file ,...
0
votes
2answers
492 views

Magento 2.3 Custom Rest Api get size limit

I have made custom API which returns the categories with the products in them like this: array( key: Category name values:product1,product2,...productX ( where product is an array: array(id,price,...
0
votes
1answer
481 views

Magento2 How to get parent product(configurable) by child product using REST API

How to get parent product(Configurable) by child product(Simple) sku or id using REST API? I can't find in this list: https://devdocs.magento.com/swagger/index_22.html plz help me..
0
votes
0answers
43 views

When creating products with POST, images Roles are not enabled (base/small/thumb/swatch), even after a following PUT

When I add a product via the Magento 2 API and then add an image, the image is added and shows up under the "Images and Videos" tab, associated with the correct product. However, none of the Image ...
0
votes
1answer
213 views

Magento 2.3 disable or secure API access

In the developer docs I've found the option to unrestrict API access. Is there an option to restrict access to the API for everything i.e. nothing is anonymous? Or is there a way to disable the ...
1
vote
1answer
103 views

Payment information API returns 400 error

Link http://protectcovers.ga/rest/store_view_eu/V1/guest-carts/ddukH6HL2TlFsm9WkJmOkMDSqmkiUfbW/payment-information I tried to send the next json: { "cartId": "ddukH6HL2TlFsm9WkJmOkMDSqmkiUfbW", ...
1
vote
1answer
155 views

Magento 2 How to include custom library in controller

I have created custom extension with some library classes. I have placed the libraries in lib/internal/SSOSdk folder. I need to include one of the library class in my controller. I have used the below ...
0
votes
1answer
226 views

Is it better to use Vue.js storefront as a frontend for magento 2?

We have to lunch a new store and planning to use Vue.js storefront on frontend. -> Will it be feasible easily - data will be interchanged using APIs -> Would there be any security issues ? -> Any ...
0
votes
2answers
464 views

how to use curl for external api call in magento 2

How do I make a post request with curl without using a button, but instead calling the external API when a field is filled out
2
votes
1answer
643 views

Magento 2 - Get multi-store addresses REST API

I need to fetch the stores addresses using REST API. We already have storeConfigs but this doesn't return the addresses. GET /V1/store/storeConfigs How can we get the address mentioned in the ...
5
votes
1answer
392 views

Magento2.3 checkout page getting error

I used magento2.3 - when i go to checkout page this error comes below.please if anyone know regarding this reply me Error occurred during "shipping_address" processing. Error occurred during "...
0
votes
1answer
19 views

As capture the token that came through the head and send it to a function that I created myself?

I'm trying to customize the Magento API Engine 2. I would like to know if there is any time of the request, before arriving at webapi.xml to capture the token that came through the head and send it to ...
1
vote
0answers
102 views

Magento 2 API Integration Issue [closed]

I'm running a Magento 2.X.X instance on a dedicated CentOS 7 server. I'm trying to integrate the Linnworks API but it would seem it's a lot more complicated than I thought it would be. In Linnworks ...
1
vote
1answer
134 views

Magento 2 API add item to Cart ignore price

if i add a item to cart via api it set Magento 2 default price of the item instead price set via API 1st i create a cart for a customer: index.php/rest/default/V1/customers/631/carts via POST ...
3
votes
1answer
171 views

Retrive Configuration data via API

Is Magento giving any default REST API for retrieving configuration (system.xml) data ?. If yes then share URL. Else share the best approach for retrieving configuration data via REST API.
1
vote
0answers
246 views

Magento 2 REST API copy image from another SKU

I am trying to use an existing image from one SKU and add it to another SKU. For example: SKU0 -> Image uploaded via Admin SKU1 -> Copy image details from SKU0 to SKU1 via API I've tried using ...
1
vote
1answer
25 views

How we can remove cart item in webservice in magento1.9.3

please check my code because this code removes all cart item. I want to remove 1 by 1.. please check the code and let me know what is the issue. <?php ini_set("default_socket_timeout", 200); ...
0
votes
0answers
96 views

Restrict access to Customer API Magento 2

My website is getting 300+ spam users for a day, On checking it seems to be from Customer API which Magento provides. How can I stop this users, Is there any way that I can restrict the customer ...
1
vote
0answers
23 views

Create customer with default addresses via API

Is it possible to create customer via API and set default billing and shipping address at once ? I know that in customerCustomerRepositoryV1 and customerAccountManagementV1 are fields like ...
3
votes
0answers
256 views

magento2 creating custom search api using elastic search functionality but can not able to create instance

I am creating custom search API using elastic search functionality but can not able to create an instance of \Magento\Framework\Search\RequestInterface $requestInterface, it is giving an error like ...
1
vote
1answer
2k views

Magento 2 how to use RepositoryInterface getList and why

I keep reading about the use of [interface]::getList within Magento 2 and how it's the preferred method for fetching records. For example: namespace Magento\Customer\Api; interface ...
0
votes
2answers
36 views

Create QuestionManagement class

I have made Question repository class: namespace Vendor\Module\Model; use Magento\Framework\Api\DataObjectHelper; use Magento\Framework\Api\SearchCriteriaInterface; use Magento\Framework\Api\Search\...
1
vote
0answers
175 views

Magento 2 : How to create custom API

I'm trying to create a POST call to a custom API for magento 2 , but I do not know how to do this. What is the correct way to do this request? Code: webapi.xml <?xml version="1.0"?> <...
2
votes
0answers
37 views

How to get the ordered items images in the order detail API in magento 2?

I need to get the product image in the order details API of the customer. Please help me to guide how can I achieve this. Thanks in ad
1
vote
1answer
42 views

Disabling payment method for frontend, but not API

I'm trying to only allow the "checkmo" payment method to be used when an order is placed through the API, but not available for a customer on the frontend to choose. Ive tried creating a plugin that ...
1
vote
0answers
160 views

Any examples on how to use requisition_lists API Endpoint?

ORIGINAL POST Trying to use the save requisition list REST API endpoint. The API docs are not very clear on what the values should be and currently don't have access to the B2B module code to see ...
0
votes
0answers
26 views

Magento 2 : Fresh magento 2 API not working?

I have installed fresh magento 2 and when I hit API of anything it doesn't work for me. Check this url : visit here It seems like an permission issue and I can't figure out what? If anyone having ...
2
votes
1answer
93 views

Unable to access the PUT API service of Magento 2 through Python

I'm trying to update a particular product in Magento through PUT using python. I'm using OAuth1Service for authentication to Magento 2. GET products is actually giving me all the products in Magento ...
1
vote
1answer
18 views

Integrate to Magento to offer shipping

I've just started working at a logistics company and some of our new clients uses the Magento platform. I've been looking through the API documentation in search of instructions on how to offer ...
1
vote
0answers
38 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
77 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
136 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
298 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
443 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
119 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
80 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
28 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
156 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 ...
2
votes
0answers
76 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
3answers
1k 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
115 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
122 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
387 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
2answers
437 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
124 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
213 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 ...

1
3 4
5
6 7
32