Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
0 answers
231 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?
Sham Dhiman's user avatar
0 votes
0 answers
70 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.
Lovely Setia's user avatar
4 votes
3 answers
8k 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. ...
Ramesh KR's user avatar
  • 886
1 vote
1 answer
697 views

unable to set store ID in place order REST API - Magento2

There is no option to set store ID in place order API: rest/default/V1/carts/1/order Payload has below data only: { "paymentMethod": { "method": "banktransfer" }, "...
Gaurav Sharma's user avatar
2 votes
2 answers
6k views

401 Unauthorized for accessing customer api

I was able to get the admin token using the below url against the created admin user http://username:[email protected]/index.php/rest/V1/integration/admin/token The username and password is for ...
JN_newbie's user avatar
  • 207
1 vote
1 answer
2k views

Overwrite magento 2 default customer rest api

I use magento 2 rest /V1/customers/me it get response like this { "id": 2, "group_id": 1, "default_billing": "2", "default_shipping": "2", "created_at": "2018-03-30 07:53:13", ...
mohan's user avatar
  • 352
0 votes
1 answer
2k views

Magento 2 REST API Add product to cart with custom option type file

I'm trying to add a product to cart using the REST API. I'm using a custom option to add an image, but it doesn't seem to work. This is my json object that I'm sending. The option 7819 which is text ...
Omitri's user avatar
  • 333
3 votes
2 answers
3k views

How can I get the HEX code in Visual Swatch via Rest API

Could anyone help me to find the rest api to get hex or image of visual swatch attribute? I need the api to return the following, Label Value HEX or Image of the swatch. Thanks
Medomage's user avatar
1 vote
1 answer
533 views

Knowing "simple" products are related via REST API

I am doing a search via the REST API, looking for products with a certain color and a certain name: http://127.0.0.1/index.php/rest/V1/products/?searchCriteria[filter_groups][0][filters][0][field]=...
John Farrelly's user avatar
1 vote
0 answers
561 views

Magento 2.2 Creating Configurable Product With API

I want to create configurable product and its related simple products at the same time via API. For example: shoes; with different sizes(attribute=shoesize).. as like: Prada's new shoe (...
stackiii's user avatar
2 votes
0 answers
84 views

Adding custom options in to cart through API in magento2.1

I have custom options like 'booking_from' and 'booking_till' in my custom module, everything works in the backend is fine. But how can I add those options in a cart through REST API in magento2.1.7? ...
N.ameen's user avatar
  • 386
1 vote
0 answers
363 views

oauth_problem=Consumer+key+has+expired

Hello Magento Community, I am trying to integrate the Magento Rest API in my App. But while doing the OAuth authentication for request token I am getting error as Consumer Key has Expired. I have ...
Manoj Sethi's user avatar
6 votes
1 answer
8k views

Magento 2: How to authorize REST API call of customer after login?

I am using rest API to login in customer account usig the below URL and details: URL: https://magento.host/index.php/rest/V1/integration/customer/token Header: "Content-Type:application/json" Data: "{...
Pankaj Pareek's user avatar
1 vote
1 answer
2k views

Injecting Guzzle with Parameters Magento 2

Writing some REST API bits and going to use Guzzle, which I have used many times before. The issue I am coming across is, I know Guzzle has to take the configuration via parameters when constructing ...
Tom Burman's user avatar
7 votes
1 answer
4k views

How do I consume the REST API in Magento 2, using AJAX with session-based authentication?

I am having issues successfully making an AJAX call to Magento 2 REST API endpoints, using session-based authentication. When I run the following javascript, I always receive a 401 (Not Authorized) ...
DrewK289's user avatar
  • 193
0 votes
1 answer
175 views

Magento Integration with Solr

I have integrated Solr with Magento EE. Solr logs whatever I search in Magento fronted search box. I'd like to know if Magento will also use Solr engine if the search REST API is called? Endpoints- ...
blakcaps's user avatar
  • 1,965
0 votes
1 answer
503 views

What would be authorization endpoint for oauth in magento 2

I am trying to build an api that delivers magento resources to a third party and for that I am using oauth for authentication purpose. On the third-party side the application asks for a authorization ...
Vivek Kumar's user avatar
  • 5,750
0 votes
1 answer
942 views

pulling order IDs via REST API in magento 2.0

we are seeing a big dependency between the order ID that we are getting from Magento via REST and the order ID that we see in the order confirmation email. for example REST returns 45, the email has ...
Fodakty's user avatar
  • 161
2 votes
1 answer
4k views

magento rest api V1/products endpoint

I use following code to call rest api in magento 2.1.5 $consumerKey = 'aca1rh9env59axm0ob48xfu62t9s4a5e'; $consumerSecret = 'dgn4y1ejfu9aixb5mrio4kbsor5tq208'; $accessToken = '...
tsifra's user avatar
  • 41
1 vote
0 answers
195 views

Some SKUs not returning the product details through REST API using get / update method in Magento2.1.3

Am trying to update the product details from third party machine to magento 2.1.3 using REST API. here some of the SKUs not returning the details while get/update and then i logged that SKUs and ...
Sathish's user avatar
  • 829
6 votes
2 answers
14k views

How can I generate a full swagger doc for Magento 2 REST API?

I have a fresh Magento 2.1.5 install, and I'd like to access the full swagger spec, like the one published on http://devdocs.magento.com/swagger, but with the Try it Out! buttons enabled. I've ...
Ramses's user avatar
  • 295
0 votes
1 answer
1k views

When creating an order via the Magento2 Rest V1 API, can I disable customer emails?

I'm working through integration of orders from external sources into our Magento store. We sell directly through our Magento instance as well as through some other carts (cartLoom). When an order is ...
Kimball's user avatar
  • 103
5 votes
2 answers
5k views

Getting value through javascript and REST api

The problem actually is defined in two steps: 1. How to define a REST Api which returns an array? 2. How to use that REST Api through javascript? Description: What I have done but not achieved ...
Pro-Magento's user avatar
2 votes
3 answers
3k views

How to add a custom attribute to a category using the API?

Is there a way to add a custom attribute to a category? I only see these options in the swagger documentation: GET /V1/categories/attributes/:attributeCode GET /V1/categories/attributes GET ...
Jessica's user avatar
  • 101
1 vote
1 answer
521 views

REST PUT success but no change

I am calling REST PUT to change a category name (one that I am testing) and the response is 200 with the correct new name. When I do a REST GET on the id to get the category back it is again the ...
George's user avatar
  • 243
1 vote
1 answer
692 views

Magento2: creating custom search REST API

I have created many Api's (both GET and POST) but now I want to create the custom search API with different URL Structure (all the params after ?). I can create the search API in below URL formate.. ...
Mohammad Mujassam's user avatar
1 vote
1 answer
2k views

Use API rest media management by storeView code (admin)

I'm having troubles using the catalogProductAttributeMediaGalleryManagementV1 API rest for manage the products images in a multiple storeView project. The main problem, is when I use the POST /V1/...
Marc Pont's user avatar
  • 1,453
5 votes
5 answers
8k views

magento 2 rest api : get cart items with images

In rest api, I am using "/rest/V1/guest-carts/e3e1fd447e0e315dd761942cf949ce5d/items" method to get the magento cart items. It works well and the result is [ { "item_id": 100, "sku":...
Arun SS's user avatar
  • 451
2 votes
0 answers
276 views

Magento 2.1 REST API configurableProductLinkManagementV1 only adds first simple product to configurable product

I'm making a call to REST API configurableProductLinkManagementV1. The first simple product is associated correctly. Any simple product after that is not. The error I receive states "option values are ...
Keith Carmichael's user avatar
3 votes
2 answers
2k views

How to use token base Rest API?

I have created custom module and also implemented API in that but I want to know other two ways Auth base and Token base access. My webapi.xml file:- <?xml version="1.0"?> <routes xmlns:xsi=...
Manish Goswami's user avatar
1 vote
1 answer
140 views

How to add new product in Magento 2.1 by Rest API?

I read this page http://devdocs.magento.com/swagger/index.html, but I couldn't find any API for adding new product to website.
Vahid's user avatar
  • 111
1 vote
0 answers
106 views

API not allowing attribute codes > 30 characters

I have tried updating the ATTRIBUTE_CODE_MAX_LENGTH value in ../magento/module-eav/Model/Entity/attribute.php. I've cleared the cache, reindexed and rebooted the server but, the changes don't seem to ...
Jessica's user avatar
  • 101
1 vote
0 answers
927 views

magento2, using REST api media upload

I am Trying to upload image using rest api but it gives string(116) "{"message":"Consumer is not authorized to access %resources","parameters":{"resources":"Magento_Catalog::products"}}" My code is ...
srinath madusanka's user avatar
2 votes
1 answer
99 views

Magento 2.1 Navigation is not displaying categories correctly

Has anyone experienced this issue? There is only one category that will show up in the menu and there are no subcategories that will show up. I've tried: *both developer mode and production *cleared ...
Jessica's user avatar
  • 101
2 votes
1 answer
864 views

Magento 2.1 : How can I save a shipping address using the REST V1 API

I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping ...
Giel Berkers's user avatar
  • 12.3k