All Questions
77 questions
0
votes
1
answer
29
views
How to save products in bulk using API?
I am new bee in API development and need to save bulk products in my Magento using API.
Do I need to create custom API module or is there any default API to save the products in magneto2?
What are the ...
1
vote
0
answers
19
views
ProductRepositoryInterface plugin how to join another table with sort option?
I need to add the most-viewed and best-seller sort options into the rest/v1/products API. I created a plugin to add sort condition for following of below link
How to add custom sort like Most View ...
1
vote
2
answers
212
views
How to add custom sort like Most View and Best Selling products in API of Product List in Magento 2?
How do we add custom sorts like Most View and Best Selling products in the API of Product List in Magento 2?
I need to add the most views and best-selling products in /V1/products to this API using ...
1
vote
1
answer
148
views
Magento 2.4.6. Multiple data output problem
Here's my situation:
When calling the endpoint, I receive the following data:
{
"ean": "0744963634260",
"price": "400.000000",
"update_at":...
0
votes
1
answer
12
views
REST on barebones Magento Server - Creating a product doesn't show ANY Price--even the base one
I have a docker instance of magento running. I'm using the latest image.
Here's the post request to create a product:
curl --request POST \
--url http://localhost/rest/V1/products \
--header '...
0
votes
2
answers
1k
views
Get product using SKU with respect to the store data using Magento 2 REST API
I use the core API /V1/products/:sku to get the product using the SKU.
for example, I have 2 stores, one in English and another in Japanese.
My API Endpoint is like
http://local.mystore.com/storefront/...
0
votes
0
answers
382
views
Magento 2: How To Create Product Progamatically Using Custom Rest API
I need to create a product using a custom Rest API. (this is my first time working on API). So to check API whether it's working or not I wrote the code below, API is working, now I need to give ...
0
votes
1
answer
527
views
How to create multiple product using magento API
How to create/import multiple products via Magento API.
I have created a single product using the following API
http://127.0.0.1/magento240/rest/V1/products
0
votes
2
answers
2k
views
magento 2 error - "Fatal Error: 'Uncaught Error: Cannot instantiate interface
I have a custom module to expose an API to get the best selling products & most viewed products separately.
This module is working fine in my localhost and staging server. When i moved the same ...
0
votes
1
answer
94
views
How to add only one product using Magento 2 REST API?
I am using REST API for Magento 2.
I want to add 1 product only in Cart using REST API. Like if cart is empty one product is added is cart and if one product is in cart then remove that existing ...
0
votes
1
answer
96
views
Product special_price only changes with reindex
I'm trying to set a product special_price using rest api, But the special_price only changes in store front with reindex command.
PS: When i use a numeric value, like: 15, 100, etc... it changes ...
0
votes
2
answers
726
views
Magento 2 integration with External System via API
I'm currently in process of creating a Magento 2 module that will handle and pull product data from external system into Magneto database using API requests (SOAP and REST)
Any guide or module ...
0
votes
2
answers
2k
views
On saving Products in REST API in Magento 2 getting error The product was unable to be saved. Please try again
On Saving the products in Magento 2 using REST API it will it will generate the error my payload is:
{
"product": {
"sku": "test1",
"name":...
1
vote
2
answers
3k
views
Magento 2: How get All products (2000 products) using Rest API?
I use Magento2.
I have 2000 products.
I try to get all products, using Rest API.
My request str.:
GET https:///rest/default/V1/products?searchCriteria[pageSize]=1000.
But this is not enough because ...
0
votes
2
answers
604
views
How to add products in Magento 2 using Magento 2 REST API?
How to add products in Magento 2 using Magento 2 REST API.
I am using http://127.0.0.1/mag/rest/default/V1/products this url in postman but it gives me this error:
{
"message": "...
1
vote
1
answer
246
views
How to change Product price of a Cart? [SOLVED]
I created an order using Rest Api and i want to change the Produt Price from a Cart.
I tried this:
But didn't work, this line: $quote = $this->quoteFactory->create()->load($resultQuote->...
2
votes
0
answers
235
views
Magento 2.3 delete wishlist items not working
I am trying to delete wishlist items , using the below code but its not working, error is-
INNER JOIN `catalog_category_product_index_store0` AS `cat_index` ON cat_index.product_id = main_table....
0
votes
0
answers
220
views
Magento 2 REST API filter products in stock
I am looking for an API filter to get in stock products but I could not find any option on the internet.
Any ideas ? Maybe some plugin code ?
Thanks !
1
vote
1
answer
3k
views
Request does not match any route error Magento 2 API
I've created an extension , while visiting
magento.com/rest/V1/wishlist/1/2
it throws error.
here are my files -
di.xml
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3....
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
0
votes
1
answer
27
views
I getting the Error on product page magento 2.3
I tried to update the product using REST API but it shows the page this like i can't recognise the error please any one help to resolve it.
Header : rest/all/V1/products/SKU
My API :
{
"product":{
...
1
vote
1
answer
1k
views
Product custom attributes not updated - Magento 2 REST API
I'm using Magento 2.3.4 CE. I used the below JSON to update the product custom attribute part_number in swagger.
{
"product": {
"sku": 678899,
"name": "...
0
votes
0
answers
264
views
Create Product at Magento 2 Using REST in C#
I'm trying to create a simple Product by Rest API. Response.Status = Unauthorization
I wonder if the installation or configuration of something is missing
Here is my code
public void CreateProduct()...
0
votes
1
answer
782
views
Create Product at Magento 2.3.3 Using REST in C#
I'm trying to create simple Product by Rest Api status code is ok
Although I can not see the product in Magento2, Here is my code :
Token = this.GetAdminToken("admin", "password");
var request = ...
0
votes
0
answers
368
views
Magento 2: How to add extenstion attributes for the ProductCustomOptionValuesInterface
I need to add product custom added Customizable Options to the product Rest API. I have set that custom options to the below core Interface Magento\Catalog\Api\Data\ProductCustomOptionValuesInterface ...
1
vote
1
answer
14k
views
Magento 2: Get Product Stock status details in Rest API
Need to get Product Stock Status in products details using Rest API.
Method: GET
Using API URL: http://testwebsite/rest/en/V1/products/sku
Above api returns products details but need also ...
0
votes
1
answer
312
views
How to hide a product in magento2 rest api?
I want the product not to appear on the site, but not delete ?
How to do it through the REST API ?
3
votes
1
answer
691
views
Addtocart Rest api for Configurable product in magento2?
Addtocart Rest api for Configurable product in magento2 ?
0
votes
1
answer
279
views
Magento 2 - Get all details in product list api
Is it possible to get product available quantity and ordered product quantity to get product API
http://localhost/test/rest/V1/products with all other details?
And extension_attributes are also not ...
0
votes
1
answer
643
views
How to get extension attributes in product list by using api in magento2
I am using "http://localhost/rest/V1/products" api to get product details but not able to get product quantity in response.
So I searched and found that we can get product quantity with extension ...
0
votes
1
answer
1k
views
Filter orders using Product Id in Magento 2 Order rest API
I am using this API "http://localhost/test/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=product_id&searchCriteria[filter_groups][0][filters][0][value]=24"
to filter orders by ...
4
votes
1
answer
2k
views
Get product data between 2 dates using filters in get product rest API magento2
I am using this API to get products between given end_date
"http://localhost/test/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=end_date&searchCriteria[filter_groups][0][...
1
vote
2
answers
4k
views
Rest API import product Magento2
I want to add a product using REST API but don't know how should I do.
could you please help me what should I do? Magento 2.1 I use. this is the code that i used:
{
"id": 989898989989989898,
"...
1
vote
1
answer
388
views
Why quantity_and_stock_status is always 1 in /V1/products?searchCriteria in Magento-2.2.7?
I am using Magento-2.2.7 . If i call this endpoint /V1/products?searchCriteria , it always show each product having same quantity_and_stock_status . Whenever product is in_stock or out_of_stock it ...
2
votes
0
answers
295
views
Magento 2 REST API: Show In-stock products first in product listing API
I am looking into a headless magento approach. I am using the following API to list the products in a given category:
V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&...
1
vote
1
answer
337
views
Magento 2 REST API: extension attribute for saleability not working for some products
I needed product's stock status in the product listing API:
V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=144
...
1
vote
2
answers
4k
views
Magento 2 REST API delete all products
I want to delete all product using Rest API in Magento 2.
2
votes
2
answers
2k
views
How to update sku code using Rest API in Magento 2?
I want to update sku using Rest API in magento 2
Call:
PUT /rest/V1/products/{sku}
Request:
{
"product": {
"sku": "modified.sku",
"name": "modified name"
}
}
Result:
The name has changed, but ...
1
vote
2
answers
1k
views
Why Magento is not giving final price in rest api?
I have recently try to get product final price via rest api.
You can check special_price is already active and it will 20 but of price are coming 45 it will be 20.
API URL : http://magento.local/...
0
votes
1
answer
816
views
How to get all product image with its sku using Rest API in Magento 2
Using this api /rest/V1/products/?searchCriteria=[]
I get all product details any option to get only product images with
sku
1
vote
1
answer
3k
views
Request doesn't match any route
I'm building rest API to get a product using its sku, but it give me this message "Request doesn't match any route" although the url in webapi.xml file is the same in the request.
magento version is 2....
2
votes
0
answers
189
views
Auto Add Product Attribute Options when Creating a new Product by Rest API
Is there a way to tell Magento 2 to:
Send custom_attribute Label instead of Value;
Auto create option in case the Label doesn't exist yet.
I was able to do it with Magento 1 API, but I can't find a ...
0
votes
1
answer
27
views
Adding product to website 3 always adds website 1 too
I am in the midst of writing an integration between our ERP system and a new Magento 2 (version 2.2.5) website.
I have never used Magento before, and the setup of the site etc has been managed by a ...
1
vote
1
answer
273
views
Magento 2 : Unable to create product on magento 2 store using rest api
{message: "Consumer is not authorized to access %resources",…}
message
:
"Consumer is not authorized to access %resources"
parameters
:
{resources: "Magento_Catalog::products"}
resources
:
"...
2
votes
3
answers
289
views
could not found detail of the product using REST API
I tried to get all the product using REST API,i used this url
"http://localhost/magento2.1/rest/V1/products/?searchCriteria[pageSize]=100&searchCriteria[currentPage]=1"
Output of this url:
"...
1
vote
0
answers
8
views
getting z_filters via REST
We are trying to grab all data from a magento 1.x-Shop to process them for some statistics.
I was able to connect to the shop and grab product, customers, orders and stockitems so far
I saw at the ...
0
votes
0
answers
847
views
Magento 2 REST API search in Product Media
I try to find all media IDs of one product with the position number 1 in
HOST/rest/all/V1/products/SKU/media
Everthing I can read tells me to use this:
GET
HOST/rest/V1/products/SKU/media?...
1
vote
0
answers
2k
views
Create Product with image using REST API
I'm trying to create a product with an image using the REST API in Magento 2 but I get always 400 Error Code saying it's a bad request. Trying it without an image works but if I put the entry "...
3
votes
1
answer
449
views
Rest api for my orders
Where can i find the rest api for my orders and my downloadable products in magento2. I can't find the list in the swagger file.
eg:
GET /orders/me
GET /downloadableproducts/me
Or how can i filter ...
5
votes
1
answer
3k
views
Add multiple products to cart using Magento2 REST API using custom method
Add multiple products to cart using Magento2 REST API using custom method
Their is no default magento api
this is single product add to cart json code in rest api body section.
{ "cartItem":
{
...