Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
133 views

Create product with custom option (Field type ) using rest api not saving

I am trying to create simple product with custom option(Field type) using rest api but custom option is not saving with product endpoint rest/V1/products. request body { "product": { ...
magento stacker's user avatar
0 votes
1 answer
1k views

Create product with custom option using rest api

I am trying to create simple product with custom option using rest api but custom option is not saving with product endpoint rest/V1/products. anything missing here Here is my request body { &...
magento stacker's user avatar
1 vote
1 answer
2k views

Product attribute create/update using rest api and assign it to attribute set

I am creating product attributes using rest API with the below request body. End point rest/V1/products/attributes/ { "attribute": { "is_wysiwyg_enabled": false, &...
Zahirabbas's user avatar
  • 2,083
1 vote
2 answers
2k views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
ne0nlight's user avatar
0 votes
0 answers
398 views

How to extend magento 2 product rest api

I am trying to get the value of product searchCriteria in the custom module. By using that value I need to add some data in response API @return \Magento\Catalog\Api\Data\ProductInterface Now custom ...
user_new's user avatar
0 votes
1 answer
1k views

How can I disable customer emails when order create using rest api in Magento 2

Is there an API call or cart/quote setting I can use to turn off customer notifications just for the order confirmation? I create order using this api Method:PUT url: http://localhost/testproject/...
Gagan's user avatar
  • 565
1 vote
0 answers
126 views

Magento 2 Rest API - How to add custom comment option to Cart Item

I am using Magento 2 default quoteCartItem Rest APIs to add and update items in cart. I want to add custom comment option in cart. Any custom module to send comment using rest API. I'm new in magento ...
Gagan's user avatar
  • 565
0 votes
2 answers
164 views

Removing ID at the end of Get Request from Magento 2

I have written a custom html script which is saved in a custom block and displayed on a product page, which is a GET request and fetches the data from a node service on another service, when the ...
user82807's user avatar
2 votes
1 answer
364 views

How to secure Magento 2.x guest API

I realized that it is possible to register customers through API without authentication. https://devdocs.magento.com/guides/v2.2/rest/anonymous-api-security.html Just make a POST call to https://...
fmineo's user avatar
  • 219
2 votes
1 answer
911 views

Adding extension attribute to customer rest API giving Fatal error

I'm trying to add custom extension_attribute to customer API (REST) in Magento 2. The logic is working for single record API V1/customers/{{CUSTOEMR_ID}} But it is not working for search API V1/...
Suyog's user avatar
  • 103
5 votes
0 answers
99 views

Magento2 : Reduce time of Product Update API Using REST

I have created an API to update Product Price, Product Cost, and Tier prices. The issue is the API response timing in around 7 to 8 secs every time for a single product update. How can I reduce this? ...
Amrit Pal Singh's user avatar
1 vote
0 answers
73 views

How can I fix this? Magento 2 REST API paypal payment successed but Order not creating and getting error in console?

How can I fix this ? Magento 2 REST API paypal payment successed but Order not creating and getting error in console !
Abu Jafar Md. Salah's user avatar
1 vote
0 answers
47 views

Magento 2.2 REST API Call to get media, does not return base 64 string

I tried the call /V1/products/:sku/media/ I get this response [{ "id": 31, "media_type": "image", "label": null, "position": 1, "disabled": false, ...
Shivam Kamat's user avatar
0 votes
0 answers
98 views

How to create a custom Api in magento 2 to add multiple products in cart using single APi call?

The default Api in magento 2 to add items to cart V1/carts/mine/items allows us to add only one product to cart at a time. Now I need to create a Api to add items in bulk in cart. How I can do this? ...
Flying Finner's user avatar
1 vote
1 answer
864 views

Property "FilterGroups" does not have accessor method "getFilterGroups"

I'm sending the request http://10.232.32.64/rest/V1/orders? searchCriteria[filter_g‌​roups][0][filters][0‌​][field]=status& searchCriteria[filter_groups][0][filters][0][value]=pending& ...
Ben Rubin's user avatar
  • 549
0 votes
0 answers
647 views

Why /V1/carts/mine/totals [GET] and /V1/carts/mine [GET] give 400 and 404 error after placed order in Magento-2.2.7 using Rest API?

I have one issue in Magento-2.2.7 API.After Placed order, This API /V1/carts/mine/totals [GET] and /V1/carts/mine [GET] give errors 400[Bad Request],404[Not Found] error. Please guide me what is ...
Lovely Setia's user avatar
1 vote
1 answer
2k views

Grabbing invoice pdf file through API

Hoping someone can point me in the right direction on how to generate an invoice pdf for an already invoiced order through the rest api. It looks like in the admin, Magento is creating it on the fly ...
user1155594's user avatar
7 votes
2 answers
2k views

Swagger available to the world wide web

On any given Magento2 website, you can navigate to https://yourmagentostore.com/swagger and access the swagger UI for API methods. One of the methods that you can test before being authenticated is ...
Haim's user avatar
  • 2,154
2 votes
1 answer
600 views

0 item price in cart when add to cart after place order

I'm building Mobile Magento 2 application with REST API. I'm using the following endpoint to add an item to cart /V1/carts/mine/items Then I'm placing an order with /V1/carts/mine/order After ...
Dima Portenko's user avatar
1 vote
2 answers
4k views

Magento 2 order REST Api append Custom Attribute

I want to get Custom Attribute value which is already saved in database table, i just want to append it to my Sales order REST APi, i have tried adding extension attribute , i am able to get set and ...
Banvari Lal's user avatar
1 vote
2 answers
5k views

How to add extension attributes to order interface in magento 2.2

I wanted to write custom rest api to get all customer's order and details using customer token. I'm able to achieve this by this post. But it is not loading up my custom extension attribute (...
Bhargava Rama's user avatar
2 votes
1 answer
398 views

Getting Decoding Error with Accented, Latin Characters Magento 2.2

I'm trying to create products via the REST API but in the body of the request I send accented characters (á, é, ñ, etc) and I get a decoding error as a response, I have configured postman to send the ...
John Maldivas's user avatar
8 votes
4 answers
7k views

How to update customer address using custom Api in magento2?

I have created custom API to update customer address using customer id or address id. Below code I used to implement it. [Vendor]/[Module]/etc/webapi.xml <route url="/V1/address/createUpdate" ...
Jafar Pinjar's user avatar
  • 1,961
1 vote
0 answers
235 views

Magento 2 REST API - Encrypted Authentication

I would know if it is possible to use the REST API of Magento using a Basic Auth approch. The idea of the token authentication, as described in the doc is very simple and good for my purpose but for ...
labgua's user avatar
  • 11
2 votes
2 answers
886 views

Magento 2 Customizable Options for orders not appearing using API

Is there a way to get customizable options from an order to the API? For example, this product allows a customer to enter a name on a t-shirt - This also appears on the admin side of the order - ...
BigDaddyL's user avatar
  • 522
1 vote
0 answers
166 views

Magento 2, How to create API for customer login by using facebook

Using Magento 2.2, API. How to create login/logout into magento by using Facebook. I got user profile info form facebook and I need to use this info to get Get Customer Token.
Bong Channarith's user avatar
0 votes
1 answer
569 views

Magento 2 CE Customer update REST API for email address update not validating the password

Magento2 CE REST API for customer information update not validating the given password with actual password, it accepts everything. Content-Type : application/json Authorization: Bearer "...
Mohan S Gopal's user avatar
1 vote
1 answer
550 views

Magento 2, how to get list of product by item_id?

Using Magento 2.2, REST API. What URI of api for get list of product by item_id? This below get all item without defined item_id GET /index.php/rest/V1/carts/mine/items HTTP/1.1 Content-Type: ...
Bong Channarith's user avatar
0 votes
0 answers
129 views

Magento 2, how to add `attribute` and `custom option` of configuration product into cart?

Using Magento 2.2, API, Configurable Product. I had read the Similar Question for add attributes with custom option but it cannot help me to understand. I need to create new Web Service for Add ...
Bong Channarith's user avatar
0 votes
1 answer
3k views

401 Authorization Required Magento 2 REST API

I'm trying to get the list of all magento2 products but I'm getting 401 authorization error. I tried the below methods and in all methods I'm getting the mentioned error! First Method: $userData = ...
Iftikhar uddin's user avatar
2 votes
0 answers
100 views

REST API: One Magento refuses to accept tokens

I have a weird problem- I am trying to use the REST API in Magento 2. I am using exactly the same method with two other Magento installations successfully, and I was looking for some help debugging ...
Skippy's user avatar
  • 21
2 votes
0 answers
149 views

How to create Rest API for Store Wise Site Map in Magento 2?

I want to create Rest API for sitemap according to the store-wise. Which include active, salable and visible products on front-end. Can anyone suggest? How to do that task?
Vinod Kumar's user avatar
  • 2,065
2 votes
1 answer
4k views

magento 2 Rest APi How to use default methods

Magento 2 Rest API have many default methods. I want to use those method and display data. For that i have create one new user and assigned full admin access. Trying to get the product information ...
jack's user avatar
  • 920
0 votes
2 answers
331 views

What different between 'adding items in to cart' and ''adding item into quote'?

Using Magento 2.2, I need to add the simple and configuration products into the basket by REST API. On the stack, I saw someone use cart and other use quote. What the correct solution for add items?
Bong Channarith's user avatar
1 vote
1 answer
3k views

Magento 2.2. Get error with ''@param string[] $types' in REST API

Using magento 2.2. I create rest api for edit address which need pass param in 'array of string' but i get an error: Doc: Magento Configure services as web APIs Used array of string for pass param ...
Bong Channarith's user avatar
1 vote
2 answers
2k views

Magento2 Push notification for IOS and Android

I am creating a native app for my magento2 store, Want to create facility of Mobile notification for different module (default and custom), I have certificate for IOS that will be use regarding this. ...
Yogita's user avatar
  • 784
2 votes
0 answers
283 views

How to create a session and share with iframe in magento 2 API

The username and password will be send from third party service by cURL or something to Magento application. So now we need to create session in Magento application for shared customer details and ...
Gnanasekaran Loganathan's user avatar
1 vote
1 answer
387 views

setCurrentCategory producing error when use it for get FilterableAttributeList in magento 2

setCurrentCategory producing below an error when uses it for getting FilterableAttributeList in a custom module via API. $this->_layerResolver->setCurrentCategory($categoryId); Error: { "...
Gnanasekaran Loganathan's user avatar
2 votes
1 answer
1k views

What is the usage of itemId inside Update inventory REST API?

According to the swagger, the REST API PUT /V1/products/{productSku}/stockItems/{itemId} is used to update the product inventory. However, for the attribute value itemId, I found no differences no ...
PY Yick's user avatar
  • 2,705
0 votes
1 answer
182 views

Magento 2 What is the path component after rest /rest/<default|wholesale>/V1/...?

I have a multi-store setup, each store view has its own domain, and I just noticed on order-place Magento calls this API https://example.com/rest/wholesale/V1/carts/mine/payment-information and I ...
Mac A.'s user avatar
  • 280
0 votes
1 answer
225 views

Is possible to create a new cart for a customer after he has done an order?

On my frontend, using the Magento 2.2 REST API, I have the following situation: a customer has the possibility to order products and specify the delivery date for each product. For example: I can ...
Leonardo Minati's user avatar
0 votes
4 answers
8k views

Magento 2 token integration error

I can able to get token from http://example.com/magento2/rest/V1/integration/admin/token with Username & Password. Using this token, I can request product details on http://example.com/magento2/...
maniramav's user avatar
0 votes
0 answers
790 views

Magento REST API access using store id

I am using Magento 2.2 REST API. I could not find the URL to get Products using store id. Using Store Code in URL is not working. The URL I tried is: http://{{serverIP}}/index.php/rest/store_code/...
Keerthipriyan Rengasamy's user avatar
0 votes
1 answer
1k views

Magento 2 REST API get categories names by list of ids

If you use Magento's REST APIs to get product, you use this endpoint: GET /V1/products/{sku} This endpoint returns response with category_ids in it. What I want to do is to get the product with ...
Mohammad Karam's user avatar
0 votes
1 answer
189 views

get order by string/value in product_options array

We are working with a third party plugin that interacts with the Magento cart process prior to an order being placed. In that it is dealing with a product configuration that is still in a 'quote' ...
Scott's user avatar
  • 273
0 votes
1 answer
848 views

Magento 2.2.3 - Problem connecting via REST API (Shipworks)

I have been having difficulty trying to setup my Magento 2 store to work with a 3rd party shipping application that communicates with the Magento store via the REST API connection. The system is able ...
LandonL's user avatar
  • 253
1 vote
1 answer
1k views

Magento 2.2 - Cannot update attribute values

I've created some custom product attributes with REST API, correctly populated them and assigned values to products. Everything works fine in dev environment whereas I got difficulties in staging ...
sissy's user avatar
  • 534
0 votes
1 answer
46 views

How to use the rest api without body data

I have rest API URL but how to run the in rest API. $service_url='http://testing.com/data/rest/Masters/CheckPartnerId?Key=121&Type=CREATE&PartnerId=13&BrandId=67&StoreId=...
venkata prasad's user avatar
1 vote
0 answers
471 views

Magento2 Rest api checkout

Get the response from rest API. after that how to place an order based on success or failure messages. If success then only place an order else show the failure message on the checkout page. try { ...
venkata prasad's user avatar
0 votes
1 answer
389 views

Pass the values to rest api from magento2 checkout page

Get the values from magento2 checkout page but I need to pass into the rest api. How to pass the values. *$params = array( 'OrderLineId'=>$orderLineId, 'MaterialNo'=>$...
venkata prasad's user avatar