Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
5k views

Rest Api - call custom rest api function

i am beginner in creating Rest api, i dont know from where to start. till now am able to pull products list using http://my_host.com/api/rest/products. but am confused what will my url for calling ...
Deepak Mallah's user avatar
2 votes
1 answer
354 views

Add a comment to an order [API REST]

I want to add a comment to a magento order. When i try to do this with postman it works properly: But when i do this with my php code, the request return an error: //GET TOKEN $url = '***/rest/V1/...
IvannVerano's user avatar
2 votes
1 answer
3k views

Magento 2: Where are the Token-based authentication access token stored?

I have been following along with this guide: https://devdocs.magento.com/guides/v2.3/get-started/authentication/gs-authentication-token.html This guide shows how a token can be requested and shows ...
J W's user avatar
  • 33
2 votes
1 answer
363 views

How to get the categories child category list per store in magento2 rest api

I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.
mgt dev's user avatar
  • 23
2 votes
1 answer
436 views

How to Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.
Sangeeta Chandaliya's user avatar
2 votes
2 answers
1k views

Error in Uploading Image using REST API in Magento 2

I am getting below error while hit REST API from postman: "message": "The product can't be saved.", I have used below details for API: URL: magento.localhost/rest/V1/products/p1/media ...
BornCoder's user avatar
  • 1,518
2 votes
1 answer
2k 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 ...
Sudhanshu Bajaj's user avatar
2 votes
1 answer
192 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/...
maru3l's user avatar
  • 145
2 votes
1 answer
68 views

Magento API for mobile application

My organization wants to create mobile application for their website I have checked the rest API from dev docs: https://devdocs.magento.com/guides/v2.0/get-started/rest_front.html Is it ok to use ...
Asim Ali's user avatar
  • 149
2 votes
1 answer
2k views

Magento 2 REST API ship order tracks error

I can create a shipment for an order via REST API. But when i try to add tracks i get the error: Carrier Code can not be empty. This is my code: Array ( [items] => Array ( ) [...
James Barr's user avatar
2 votes
1 answer
2k views

%fieldname is a required field for entry in post media gallery

I'm pretty new to Magento and I was trying to add a media to a existing product. From code I am able to do that as the following: $entry = ['entry' => [ 'media_type' => ---, ...
Meow Meow I'm a Cow's user avatar
2 votes
1 answer
4k views

Check products in cart if they are out of stock before place order REST API : Magento 2

I am building mobile application using Magento 2, I had an old defined cart which had a product and when checking out it gives an error saying the item is out of stock, that happened after payment and ...
Jsparo30's user avatar
  • 1,356
2 votes
1 answer
2k views

How to use Magento 1.9.2.3 REST or SOAP API to get list of products - working example required

I'm a new to Magento API. Tried this: https://stackoverflow.com/questions/40734545/how-to-get-product-info-using-rest-api-in-magento but all I'm getting is a blank page. Can anyone help or advice what ...
Rob D. A.'s user avatar
  • 867
2 votes
1 answer
1k views

Return Shipping Methods in Store REST API

Is there an API endpoint to return all shipping methods and carrier codes used in the store?
Jsparo30's user avatar
  • 1,356
2 votes
2 answers
3k views

Sort Products REST API : Magento 2

I did a sort for product by price through API: http://domain.com/index.php/rest/V1/search?searchCriteria[requestName]=quick_search_container&searchCriteria[filterGroups][0][filters][0][field]=...
Jsparo30's user avatar
  • 1,356
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
2 votes
2 answers
3k views

Magento 2 Rest API: create / update order,customer information

I want to create and update customers, order in Magento-2. But I am facing problem in how to pass data to create customer. Can anyone give me an example for this? I passed data like: $cusData = "...
BornCoder's user avatar
  • 1,518
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
2 votes
1 answer
3k views

Coupon Code API Params

We just want to know what would be the json params to create coupon code from magento2 rest API. The API we are using to generate the coupon code is /rest/V1/coupons
harish's user avatar
  • 91
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
2 answers
1k views

Client Side OAuth

So I'm trying to make a SPA that uses Magento 1.9.2.2 as its back office. To do this, I would like to use its REST API. And of course, it forces you to OAuth with Magento first. I have tried ...
Christian Grabowski's user avatar
2 votes
1 answer
266 views

Magento 1.7 doesn't return token key

I installed magento 1.7 and test for rest api according to this link. http://www.aschroder.com/2012/04/introduction-to-the-magento-rest-apis-with-oauth-in-version-1-7/ When I request to this http:/...
ZMH's user avatar
  • 21
2 votes
0 answers
476 views

Magento 2, How to get and set of custom_attributes value for Rest API

API: /rest/V1/products?fields=items,total_count,search_criteria[page_size,current_page]&searchCriteria[filterGroups][0][filters][0][field]=category_id&searchCriteria[filterGroups][0][filters][...
sky's user avatar
  • 1,397
2 votes
1 answer
161 views

Magento 2: Create Invoice or Shipment with REST API with different date

I want to post a shipment and/or invoice into Magento 2 but put a different date than today's date using the HTTP Rest API. Is this possible and how would I accomplish this? When I include the ...
MrPeanutbutter's user avatar
2 votes
1 answer
346 views

Magento 2 API for product add to compare and compare list

There is any way to get API for product add to compare and get compare list for customer. Thanks
Feedlay Technologies's user avatar
2 votes
2 answers
681 views

Not able to get data through API...!

Error is "message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5dee36e254394". When you run http://localhost:8888/magento/rest/V1/position/1 Need to get result ...
Akash Killedar's user avatar
2 votes
1 answer
1k views

Bulk Actions Log

After testing Rest Async-Calls with RabbitMQ-Server, all worked fine. In the Magento-Database the table "magento_bulk" and "magento_operation" is full with data from the Rest Async-Calls. But in ...
maettuw's user avatar
  • 137
2 votes
0 answers
843 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 ...
Jav's user avatar
  • 21
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
2 votes
0 answers
350 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 ...
Douglas Ianitsky's user avatar
2 votes
0 answers
161 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 ...
Aditya Shah's user avatar
  • 7,647
2 votes
1 answer
450 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": ...
maru3l's user avatar
  • 145
2 votes
0 answers
892 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-...
maru3l's user avatar
  • 145
2 votes
0 answers
204 views

Magento2 Rest Api to Delete an item after place order

Can anyone help me how to remove an item from an order after order completion using resti api in magento2 Thanks
shivashankar m's user avatar
2 votes
0 answers
68 views

Magento 2 : Rest APi Management payment methods

I need a solution to manage payment methods. Ex. Credit cards. in the web version we have the option to list the cards already used in purchases. (html: // vault / cards / listaction /).   Is it ...
Francisco Bras's user avatar
2 votes
1 answer
538 views

event sales_order_invoice_save_commit_after is not being dispatch over REST API

May I know how can I dispatch event sales_order_invoice_save_commit_after when I create invoice via REST api? I noticed there are quite a number of extensions is observing this particular event but ...
mhwong's user avatar
  • 21
2 votes
1 answer
1k views

How can I get user information from JWT tocken?

I'm react-native developer, I'm new to Magento, REST and OAuth. I want to use the Magento 2.0 OAuth REST API to login into my app I am getting this token as shown in the image, how can I use this ...
nukala satish's user avatar
2 votes
0 answers
271 views

Custom REST API returns duplicate "response" tag

I am struggling because I get an invalid response from my custom API module for Magento 2 (2.2.5). When I send a request to my endpoint via GET with the header "Accept application/xml" (which is ...
hallleron's user avatar
  • 365
2 votes
0 answers
116 views

If we can access data by using simple http request ,then why to use rest or soap api or curl?

I am accessing database using simple http request and use it on another interface.for example api's for Andriod or iphone .Even simple http request and method created in mage functionality without ...
Anil Thakur'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
52 views

How to develop a SOAP API as a guest user

I am trying to developing a SOAP API. For first I created a module like this app\code\MyVendor\MyModule in which I created etc\module.xml, etc\webapi.xml and etc\di.xml. Then I created my API ...
Giulio Savoca's user avatar
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
0 answers
139 views

How to Manage API Authentication Lifecycle on Mobile Devices? Magento2

Every hour regeneration of token and after that login again every hour is not logical for Mobile Application. Then how Magento manages user login data and authentication in Mobile application,...
Aditya Shah's user avatar
  • 7,647
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
2 votes
1 answer
984 views

Get Configurable Products Under Specific Category REST API Magento 2

I am trying to get configurable products only under specific category using http://domain.com/index.php/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=type_id&...
Jsparo30's user avatar
  • 1,356
2 votes
0 answers
205 views

Catalog Search gives different results every request : Magento 2

I did search several consecutive times for catalog search in the search box in the header of the store, but every time gave me different results as following: Also, I can see this difference when use ...
Jsparo30's user avatar
  • 1,356
2 votes
2 answers
2k views

Magento 2 API - Update Product Custom Attribute to Blank/Null

I am trying to update a product via the Magento 2 Rest API. If an attribute already has a value I can update that value with another value with no problems. However if I want to delete the value and ...
LeoMan's user avatar
  • 21
2 votes
2 answers
1k views

Magento 2 : How to clear cache using REST?

How can I clear the Magento 2 page cache using REST API after updating the product quantity from 0 to 10?
AirWin's user avatar
  • 21
2 votes
3 answers
94 views

How to create REST API's in Magento 2?

I have to create a REST API that can be used in android phone to list all the products including product image using category id ?
srg's user avatar
  • 465
2 votes
2 answers
2k views

Magento2 REST API products list and out of stock

In the api call V1/products i get also out of stock products, even though I've set in Stores->configuration->catalog->inventory "Display out of stock products" to No. there's a way to get rid of this ...
daniele andreoli's user avatar

1
3 4
5
6 7
12