Stack Exchange Network

Stack Exchange network consists of 174 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 [rest-api]

Magento REST API defines a set of functions that a developer can use to perform requests and receive responses. These interactions are performed using the HTTP protocol.

0
votes
0answers
5 views

Dual CMS setup login to Magento from primary site

We have a dual setup for our website, most of the site is served up on another CMS but the commerce side is all Magento 2. The primary CMS doesn't have any frontend logins for users but we need to ...
0
votes
0answers
17 views

How to retrieve reward point amount for order using REST API in Magento 2

The Magento 2 (Enterprise) REST API for endpoint: /V1/orders/{entity_id} is missing the field containing the redeemed reward points for an order, called reward_currency_amount. I have checked the ...
0
votes
1answer
26 views

Using Magento 2 Rest API to filter on product visibility

I want to retrieve only products that are listed as visible in both catalog and search, yet can't find any confirmed way to do this. The obvious solution I was hoping would work (shown below) ...
4
votes
1answer
34 views

Do I need to add shipping address every time whenever I place a new order in Magento 2 REST API?

STEP 1 - Using REST API I created a customer,And in address data I passed default shipping and billing true "defaultShipping": true, "defaultBilling": true, STEP 2 - In GET customer detail API ...
0
votes
0answers
17 views

How to merge guest cart product into active customer cart using REST API

I need to merge the guest cart items into customer active cart using end point API but as per my code its throwing the following error. Array ( [message] => Cannot assign customer to the given ...
0
votes
0answers
13 views

Magento 2 API authorisation error

I am trying to get API for product attributes. http://mysite/elec/rest/V1/products/attributes?&searchCriteria[filterGroups][0][filters][0][field]=attribute_code&searchCriteria[filterGroups][...
0
votes
0answers
16 views

Rest API update router

I need to update rest API url, Instead of having "rest" keyowrd in url I need to replace it with"api" Current Url http://magento2.test/index.php/rest/V1/customers/1 Need to update to http://...
2
votes
2answers
59 views

How to Get Product Image data in Cart API Magento 2?

GET /V1/carts/mine This API Returns information for the cart for a specified customer. How to get Cart Item Images Because in Mobile Application we show Product Images in CART - so how Can I get ...
2
votes
2answers
26 views

Magento 2 Get cart detail API doesn't show subtotal and total

Cart API url http://magento.host/rest/V1/carts/mine/ Authorization <Customer Token> This API provided Lists items that are assigned to a specified cart. But Not Subtotal and Total price of ...
0
votes
0answers
12 views

Magento 2 Rest API get all products with certain attribute_set_id

I need to elaborate de URL that will bring all products with certain attribute_set_id through Magento 2 Rest api, and then change though the api the attribute_set_id of all those items. My problem ...
0
votes
0answers
9 views

Magento2: searching for orders through REST is too slow.

I am looking to optimise my website. Searching for orders through the rest api is too slow. It's taking around 23 seconds for the query execution here: /Webapi/Rest/Magento\Sales\Api\...
0
votes
1answer
16 views

rest api to return categories information

I know that there is an api that returns me category information, but it doesn't return category image. I need build my own api to return category image with the information that is returned from the ...
2
votes
0answers
31 views

rest api are too slow

I'm buildin rest apis for mobile app and when call the api it takes about 20 to 30 second to responds. I'm in developer mode and disabled the cache. requirements are satisfied: php version ...
0
votes
0answers
24 views

Adding a custom field into the items array in the results from the sales order list API in Magento 2

I'm using Magento 2, and I'm trying to figure out how to add a custom field (that I've already added into the sales_order_item table) into the "items" array that is returned for each sales order, when ...
0
votes
2answers
109 views

access to XMLHttpRequest has been blocked

access to XMLHttpRequest 'api link' from origin 'http://localhost:8100' has been blocked by cors policy: response to perflight doesn't pass access to contrsol check: it doesn't have http ok status ...
0
votes
0answers
12 views

Magento2 Reorder using REST Api

Can anyone let me know if we can Reorder in Magento2 using REST webapi? Actually i have made one api and used same code as magento default reorder does, here is my code in API function using order_id ...
0
votes
0answers
24 views

Where can i find the device_name from which the order is placed in magento 2 db?

Need to know the list of the device names appended in the Magento platform and in which table is it rendering from? for example: "device_name": "Smartphone", "device_name": "Desktop"
3
votes
1answer
67 views

What is GraphQl in Magento2 and Why use?

What is GraphQl in Magento2? Why use GraphQl. I want to know detail about GraphQl.
0
votes
0answers
22 views

How to check product delivery from pincode using end point API MAGENTO-2

I need one help. I need to know is there ant end point API available to check the delivery serviceability from pincode. User has its pincode as the input and need to check the delivery serviceability ...
0
votes
0answers
13 views

Magento 2 API GET comment field from Aheadworks One Step Checkout extension?

We are using the AheadWorks One Step Checkout extension in our Magento 2 Shop. Our problem is that in the Magento2 API https://www.shop.com/rest/V1/orders/12345 The comment field is not activated by ...
1
vote
0answers
12 views

Could not add pagination while fetching product as per category ID

I am using end point API to fetch product as per category id and want to add pagination on it but in my code its not happening like this. I am explaining my code below. $quoteUrl ='http://example.com/...
0
votes
0answers
21 views

How to show quote_id in response of /carts/mine/totals API in magento-2.1?

I want to show quote_id in response of /carts/mine/totals API in magento-2.1. Anybody guide me.
5
votes
1answer
110 views

How to get recently viewed products by Customer Id in REST API Magento 2?

Create Recently Viewed Products API based on Customer ID (Token) - Custom REST API in Magento 2 ?
2
votes
2answers
38 views

Magento 2 swagger-ui error

I trying this url http://192.168.1.67/isac/swagger but I got this error below 500 : {"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-5bfe5e3ac4100"} http:...
2
votes
1answer
28 views

where to find Magento 2 API docs?

Finally I found out the magento 2 api endpoint for all products as below rest/V1/products?searchCriteria[pageSize]=20 but I need more detailed docs about api endpoints which I coudn't find out yet. ...
0
votes
1answer
30 views

Notice: Undefined index updateAddress

I'm building rest api to update customer address and I get the following error { "message": "Notice: Undefined index: UpdateAddress in C:\\xampp\\htdocs\\yourParts\\lib\\internal\\Magento\\Framework\\...
0
votes
0answers
17 views

How to define address id

I'm building rest api to update address for mobile application, and I need address Id to update it. so how I can mobile app developer will define address id to pass it as parameter
1
vote
0answers
17 views

Magento2 API Product Repository API “saveOptions”: true

I am not able to find anything on the internet that explains what magento2 api "saveOptions": true is good for.
1
vote
1answer
30 views

clear compare list items rest api

I'm building rest API to clear compare items list here is code I'm using /** * @api * * @return int */ public function clearItems(){ $userType = $this->userContext->getUserType(); $...
0
votes
0answers
22 views

Magento 1 Rest API Get Products

a client is providing me REST API access in order to retrieve products. He is using Magento 1 and OAuth. My question is how to achieve pagination as I get only 100 products and from 1st page. ...
1
vote
0answers
17 views

Getting error while adding image of product to cart using RSET API

I am facing one issue. I am adding configurable product to cart with its image,size and color but getting the below error using magento-2 REST API. Error: {"message":"The image content must be ...
0
votes
1answer
28 views

Get cart info REST API

I need to get cart id using the following api http://localhost/rest/V1/carts/mine but when I run that api using the following code $headers = array("Content-Type: application/json", '...
4
votes
1answer
45 views

Get tax class ID by tax rate with REST API

I'm trying to get a tax class ID with only the tax rate value, all with the API. I found that I need a first request that returns me the tax rate ID : /rest/all/V1/taxRates/search?searchCriteria[...
1
vote
0answers
30 views

Magento REST API Integrate

I want Magento API Integration but this issue appeared : oauth token not generate. please help hostname=http://www.fast-option.com/low/magento/admin/ callbackurl=http://www.fast-option.com/low/...
0
votes
1answer
62 views

Magento 2 How to add custom attribute to Quote Item Rest API

I want to add custom attribute to http://{{magento2}}/rest/V1/carts/mine/totals API response. I have done follwing way but it not working. extension_attributes.xml <config xmlns:xsi="http://www....
0
votes
0answers
41 views

Magento 2 REST API to fetch all the filter attributes based on Category

How can we fetch all the available filter attributes in the category page with REST API? I'm working with the mobile app for my Magento store. In the category listing page, I need to show all the ...
1
vote
1answer
38 views

How to specific pass fields in custom rest api for get product Information

I'm creating custom rest API for getting a list of products. In my module, I have just use the getList function of ProductRepository. I need to pass select specific fields in API. so, how can I get ...
1
vote
1answer
65 views

How get wishlist in Magento 2 Rest API?

Get Wishlist product in Magento 2 REST API ? And Add to Wishlist in Magento 2 REST API ? Wishlist API is not provided by Magento 2
0
votes
0answers
26 views

Is there any possibility to login Magento 2 front-end customer through Rest API

I'M trying login Magento-2 front end customer through rest api but if browse api url through browser then only the customer logged in, and if excute that api through php script then the customer not ...
2
votes
1answer
80 views

What are the rest api's for the Magento2 modules

We are working on Magento2.2.6 website. We are planning to build the mobile application. For this, we need the Rest api's for the following : Sort by options api Layer navigation Login with otp api'...
4
votes
0answers
20 views

soap product quantity not updating return exceptions

i am tring to update product quantity using soap but it return error here is my code public function update($data){ //return $data->sku; $_sku = $data->sku; $_catalog = Mage::...
1
vote
1answer
55 views

How can we get customer shipping address based on address id in magento 2

How can we get address id based get address details! I got all address details getting based on customer id but i need to get address details based on address id?How can i achieve this
2
votes
0answers
43 views

Magento 2 REST API, get attribute values instead of ids

When I make a REST call to get product data, any multi-select attribute (in custom_attributes) is return with a numeric id rather than its text value, ie: 24 => {#2105 +"attribute_code": "...
1
vote
0answers
20 views

How to enable a custom shipping method for API in Magento 2?

We have created a custom shipping method in magento2, It's being added to the JSON response when we fetch the order data as well. But we are not able to append it in post request JSON of order ...
0
votes
1answer
67 views

The signature is invalid - Magento 2 Oauth 1 Rest API Authentication

I need to generate access token for third party extension in Magento. I create integration, now I should sent request to /oauth/token/request in order to get a request token, but I get following ...
0
votes
0answers
23 views

Magento 2 created product using rest api and price in cart shows 0

I am setting online fashion store. I am using meigee team theme. I am using Magento 2 default rest API to create the configurable products. Products are being created and it does show the price in ...
4
votes
2answers
75 views

How to get order History of customer in Magento 2 API?

Get list of all previous orders of the customer using Customer token in API.
0
votes
1answer
25 views

getting “Consumer is not authorized to access %resources” when using rest API in magento2

AUTH REST API: if(isset($_POST)){ print_r($_POST); $email=$_POST['email']; $pass=$_POST['pwd']; //$email='memotest@gmailtest.com'; //$pass='memo@123'; $userData= array("username"...
0
votes
1answer
36 views

How can I change language in param of REST API?

I want to change language in REST API. ex. integration/customer/token for Japanese is "error message = Japanese translation" integration/customer/token for English is "error message = English ...
0
votes
0answers
10 views

How can we add a custom shipping method and price in magento 2 and fetch it via api?

Is there a way to add new shipping method with input text box values for shipping name and price? Also the values given needs to be stored in db and fetched in api code of Magento.It should be visible ...