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
1answer
15 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
31 views

Magento 2 API Integration Issue [on hold]

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 ...
0
votes
0answers
10 views

Paypal Api sandbox disable

I'm Trying to Disable sandbpx, i get this error : GetRecurringPaymentsProfileDetails failed: Could not resolve host: api-3t.0.paypal.com; Name or service not known(6)
1
vote
1answer
21 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
30 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.
0
votes
0answers
19 views

how to create Mobile Number Verification (OTP)SMS on customer registration API webservices in magento1.9.x?

how to create Mobile Number Verification (OTP)SMS on customer registration API webservices in magento1.9.x? If you have any api code then please share me...
0
votes
0answers
38 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 ...
0
votes
0answers
12 views

Magento2 How do I see the raw files, I'm just on the admin

I'm very new to this, I'm doing this for a client. I see there is a content section where I can edit the blocks. I suppose I can edit the custom js to add a javascript file to call my API. I'm try to ...
1
vote
1answer
20 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
14 views

What is the best tutorial blog for learning Magento 2 API? [duplicate]

I'm learning Magento 2. I would like to be strong in API concepts. When I have checked about the tutorial for Magento API, I have seen there are a lot of blogs with different contents. Since I'm new ...
0
votes
0answers
8 views

Force use of Flat Tables in Rest API

I'm wondering how to force the use of FLAT Tables in Rest API. I have a product API which is using the Magento\Catalog\Model\ResourceModel\Product\CollectionFactory. I've enabled the Flat Tables in ...
0
votes
0answers
27 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
11 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
25 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
0answers
25 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
22 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\...
0
votes
0answers
11 views

how to get purchased product in magento 2 with rest api

My question is how to I can get products that have been purchased with rest API in Magento? I try this rest API rest/V1/invoicesByEmail but I can't get any data. Has the API been replaced?
1
vote
0answers
30 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"?> <...
1
vote
0answers
26 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
21 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
17 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 ...
-1
votes
0answers
16 views

Download invoice PDF using API

Is there any API for download PDF using API? for get data of invoice should use GET /rest/V1/invoices/2 for PDF something like? PUT OR GET /rest/V1/orders/{id}/invoice Content-Type: application/...
0
votes
0answers
8 views

Storing & retriving a Customer extension attribute using Magento 2 REST API?

What I'm trying to do is associating a my_attribute extension attribute to any customer. Plus, I have to use the Magento API. Storing a Customer would be done by calling POST /V1/customers and ...
0
votes
0answers
21 views

Cannot send tracking number in shipment email when creating shipment from API

I'm creating shipment and tracking number by calling APIs i.e. sales_order_shipment.create and sales_order_shipment.addTrack. APIs are running fine, they are creating shipment and generating tracking ...
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
23 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
15 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
23 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
30 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
2answers
42 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
88 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
54 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
23 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
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
32 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
26 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
49 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
23 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
28 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": ...
0
votes
0answers
77 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
29 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
109 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
73 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
24 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/...
2
votes
2answers
26 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
0answers
28 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 ...