People who code: we want your input. Take the Survey

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

Magento2.4 rest api for get all products inventory

I need to get all products detail such as inventory, max, min, qty and more. how can I get them with rest api for magento 2.4? I can get it for 1 sku but I need all skus
0
votes
0answers
4 views

Magento2 - extend Category API save functionality

I am trying to extend the save() functionality on magento2, when it handles an Catalog / Category API call. I do not want to extend any events, as I figure they're being handled globally which is not ...
1
vote
0answers
20 views

REST API /products endpoint does not return all products

I'm trying to list all products via the REST API. I have 1195 products in my store, but the API is consistently only returning 849 of them, and it's the same ones that are left out every time. My ...
0
votes
0answers
19 views

Rest Api - get request - url parameters

URL/V1/products/?searchCriteria[filter_groups][0][filters][0][field]=name&searchCriteria[filter_groups][0][filters][0][value]=10&searchCriteria[filter_groups][0][filters][0][condition_type]‌​=...
0
votes
0answers
20 views

Magento 2.4 stock_item in /v1/products API

The stock_item seems deprecated in the Magento /V1/products endpoint there is some mentioned here: Magento 2: Get Product Stock status details in Rest API Magento 2: Rest API add "stock_item"...
3
votes
1answer
32 views

Magento Rest API - white space sku issue

Issue Unable to get update price via REST API due to white space in the sku Steps to reproduce the issue Create a product with SKU containing white space, eg. 'BAH SB' Query Magento instance via REST ...
0
votes
0answers
16 views

Change product rest api endpoint

I would like to change product rest endpoint like for delete operation default endpoint is rest/V1/products/test_simple_product3 I would like to add one more param to this endpoint. like rest/V1/...
0
votes
1answer
22 views

Magento 2 REST API - How to add product custom attribute type file upload to a product when adding a product

I'm working on a project where my product has some datasheets that has to be uploaded to the website. Right now I've created one product attribute named datasheet with attribute type file upload. I'm ...
0
votes
1answer
26 views

Magento 2 REST API - Creating cart price rule is not working

I'm trying to create a cart price rule via REST API but always get error 400 Bad request with message: Specified request cannot be processed. I even try to use minimum request body (only required ...
0
votes
1answer
14 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
1answer
11 views

Magento 2 - How to add custom customer attributes to sales order API?

I have created custom attributes in the customer table. I want to add those attributes in order API. How can I do this? Thanks.
1
vote
1answer
20 views

Security issue ? User with restricted scope can access ALL orders on a multiwebsite setup

Using Magento Cloud EE here but this issue might be the same on CE I'm not sure. Create user foo Create role test Assign foo to test Restrict website scope for test to www.website1.com only Login ...
0
votes
2answers
31 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
2answers
19 views

Magento2: How to get custom comment for order in REST API?

I ve installed Infobeans OSComments. Module adds additional field on checkout page and save value to Order Page. Is it possible to have access to this comment via REST API ? Can this value cand be add ...
0
votes
1answer
23 views

Web api testing could not use ApiSuiteLoader

I am new to testing in Magento. To add a new functional api test, I followed https://www.youtube.com/watch?v=JAA7BkH82gY&ab_channel=MaxPronko but he doesn't show how he runs the test. I followed ...
0
votes
2answers
74 views

How to set notify me when back in stock for Magento 2 through REST API?

In Magento2 customers can subscribe to the out-of-stock products and get notifications when back in stock. I would like to know how can a customer subscribe to out-of-stock products through REST API.
0
votes
0answers
13 views

Magento 2 Base image tag on UI does not match with API response

I had a product for which I had uploaded a base image with file name 7aceebe8-7adf-48dc-9c78-c235999b34a1.jpg Then I uploaded another image 677dce28-258e-4a92-ba4a-88fae42c9b60.jpg as base image via ...
0
votes
0answers
14 views

Rest API doesn't set tier price by website id product is linked to

I have 2 different Magento website hosted on different servers with the identical amount of internal websites (1) and same version 2.4.2. When sending PUT request to "rest/V1/products/tier-prices&...
0
votes
0answers
23 views

On using Magento 2 REST API with custom option getting Please specify product\'s required option(s)

I have working on Magento 2.2 version with REST API on creating a customisation option with a checkbox which is not required. When i select that checkbox and add to cart that product everything works ...
0
votes
1answer
19 views

Magento 2 - Rest API - How to get the text of a custom attribute that is a drop-down menu

I have a custom attribute that is a drop-down with the brands of my products. If I query $query = 'https://example.com/rest/V1/products?'. "fields=items[id,sku,name,custom_attributes[Brand]]"...
0
votes
1answer
30 views

REST API and custom attributes

My magento installation has 3 stores (domain+language). I would like to update custom attributes for products. When I call GET products/my_test_sku?storeId=1 i get something like the following json: {...
0
votes
0answers
11 views

Create a new route in webapi.xml under file path vendor/magento/module-catalog/webapi.xml

I wanted to fetch my products data from the V1/products API but it’s restricted to only admin credentials. To let customers get access, I copy pasted the entire route section and changed only the api ...
0
votes
0answers
32 views

Getting error regarding Magento 2 Order Rest API Unknown or expired payment_method_nonce with Braintree Payapl

I am using Magento 2 REST API in my Node application everything is working fine but i done an order using Magento 2 REST API it will give me an error. Braintree\Error\Validation::__set_state(array( ...
0
votes
1answer
23 views

Magento search Rest API how to get products all the detail in the response?

I want to get product all the detail in Search Rest Api response but Magento default is returning only id and custom_attributes attributes. Api :- `http://127.0.0.1/magento/rest/V1/search?...
0
votes
1answer
19 views

Magento 2.4 Rest API need to show filters related search result

Following code fetch the products based on search keyword but the issue is filtering showing all instead of the search result page. I want filters should be shown only related to the search result ...
0
votes
1answer
22 views

Magento 2 REST-API

I'm new to Magento (Version 2) and am a bit confused by the variables for the calls in the API-Documentation (https://magento.redoc.ly/). As you might know there's not much explanation about what they ...
0
votes
1answer
24 views

Create a ResourceModel based on 3rd Party API Call from Magento

I am working on integrating a 3rd Party API into Magento. I'd like to use an Admin Grid with a Data Source that comes from a 3rd party API. So Essentially the Flow work like this... User Loads into ...
0
votes
1answer
52 views

Got error when trying to submit order via rest api and stripe

I have magento 2 setup, with Stripe plugin, and I'm trying to create order using PUT http://ec2-3-236-104-131.compute-1.amazonaws.com/rest/V1/carts/mine/order BODY { "paymentMethod": { ...
0
votes
0answers
19 views

Assigning Thumbnails via Magento REST API

I am trying to add thumbnail images to SKUs via REST API. However, the image is added but does not show as a thumbnail. Please see my POST request below https://url.co.uk/rest/V1/products/231877/media ...
0
votes
0answers
10 views

Magento 2 : The consumer isn't authorized to access %resources

In postman while i check to http://local.vendor.com/rest/us/V1/carts/mine/payment-information It shows { "message": "The consumer isn't authorized to access %resources.", &...
0
votes
1answer
13 views

Add product with text customisable option to cart using REST

When using the REST API to add products to the cart, you need to add a product_option.extension_attributes.configurable_item_options object to the cartItem payload (POST-ing to /V1/carts/mine/items). ...
0
votes
1answer
28 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": { ...
0
votes
1answer
35 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 { &...
0
votes
1answer
39 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, &...
1
vote
1answer
56 views

Fetching SKUs containing a “/” (forward slash character) from the /rest/v1/products/ REST API endpoint?

A lot of our SKUs have spaces and forward slashes in them (eg: "PRODUCT1-DARK BLUE" and "PRODUCT2-DARK/RED". I'm able to curl to the products with spaces via url encoding:     # ...
0
votes
1answer
30 views

Magento2: How to add extension attribute to rest/V1/products/attribute-sets/4/attributes

I want to add extension attribute to the default API to identify the visual and text swatches http://localhost/m2.4/rest/V1/products/attribute-sets/4/attributes API.
0
votes
0answers
21 views

Magento Rest API - multiple product list in one call

I want to access specified multiple product list in one call. for example access all the products in category id 14 and 15. This provide the product list id 14: /V1/products?searchCriteria[...
0
votes
0answers
15 views

M2.2 - Raising maximum failures_count in oauth_token_request_log

We recently experienced an issue that seems to have been lingering around for a while now with no real concrete solution but moreso bandaid fixes; https://github.com/magento/magento2/issues/4432 In ...
0
votes
1answer
13 views

Magento 2 how to get info_buyRequest in rest result rest/V1/orders/105"

Hi can any one tell me how to get addition information (info_buyrequest) in rest api result https://mainwebsite.com/index.php/rest/V1/orders/$order_id. but here not getting product options getting ...
1
vote
1answer
114 views

Magento2.4 API - Update product inventory for multiple sources (MSI)

I have created a product, which has two different sources assigned to it with different quantity allocated to both sources. I want to update product's quantity for both sources separately. I am using ...
0
votes
3answers
35 views

How To Change Currency Code Using Quote ID

I need to change the quote currency to order from the mobile app. For this, I send the quote id from the mobile app, I did the following code on Magento, but it did not work. Suggest me the correct ...
0
votes
1answer
31 views

Magento 2 Rest API response “There is no mediagalleryentryconverter for given type”. How fix it?

I need to get All Products using Magento 2 Rest API, but on some products I get response: "There is no mediagalleryentryconverter for given type". How can I fix it? I use POSTMAN for testing....
0
votes
0answers
16 views

How to change currency code before place order using API

I need to change the quote currency to order from the mobile app. I tried to convert quote currency from GBP to USD through the following API, but it did not work. It only adds product to the cart, ...
0
votes
1answer
25 views

Is it good to use Access Token in Magento 2 for REST API?

I am using REST API for some product insertion process in my Controller File and i will used that Access Token to generate the token. Is it good to use that on my Live Website Code If not then what ...
0
votes
1answer
28 views

How can I load image through api by using external image url?

I have my product images in my cloud store and those are public. I want to map those images to product through API. I have gone through the solution given in the below link. But I want to check if ...
0
votes
2answers
55 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":...
0
votes
2answers
36 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
1answer
24 views

Product always goes OUT OF STOCK in magento 2 after inserting through REST API

I have added product in my Magento 2 Store using REST API but it always goes out of stock like this. But when i run php bin/magento indexer:reindex the product will come in stock. Any idea why is ...
0
votes
1answer
42 views

Using REST API with admin username and password is good or safe in Magento 2

I am using REST API in Magento 2. For using in Guest user i want to create admin token so i have used CURL Request like this. $ch = curl_init(); $userData = array("username" => "...
0
votes
2answers
42 views

Cart items not shows in cart on using Magento 2 REST API

I am using Magento 2 REST API for add to cart item in guest but after checking on cart page it's just empty. Why it is empty. http://127.0.0.1/mag/rest/V1/guest-carts/Hkt4RC38lJX1rAalFoPlsk2suRwb8Fnp/...

1
2 3 4 5
21