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
0answers
12 views

Rest API Requests are too slow

We are using the third party vendor for stock & product management. They are updating the custom attributes in Magento 2 using Rest API calls. for example: PUT index.php/rest/all/V1/products/{...
0
votes
1answer
16 views

How do I get the Area/City Name from Region ID for add address programmatically in Magento 2?

I got the state list from country code by following this blog for my Magento 2 store. I want to get the Area/City name from the state/region id, is there a way or method to get it in Magento 2.3.x?
0
votes
1answer
19 views

How to translate API response

I'm adding product to cart using {baseUrl}/rest/{store_code}//V1/carts/mine/items If requested qty not available in stock then in response you'll get The requested qty is not available I want to ...
0
votes
0answers
6 views

Customer visit tracks in Headless setup

For every guest or customer visit Magento stores data in table customer_visitor after executing events controller_action_predispatch or controller_action_postdispatch. But we need to track the same ...
0
votes
1answer
12 views

Examples website with payload of all magento 2 rest api

Hello a few weeks ago here I saw a website that contained all the payloads of the magento 2 rest api but now I can't find it please can you pass it to me.? I am looking for the payload of this api: ...
0
votes
1answer
46 views

Magento 2: Rest API update multiple cart Items

I need to update multiple cart items quantity in Rest API. Default Magento only have update single cart item. Single cart update Item endpoint: /V1/carts/mine/items/:itemId I have tried with ...
0
votes
1answer
53 views
+100

Magento 2 split order based on product attribute

I'm developing a Multivendor marketplace module. I need to split orders based on seller id's which assigned to the product. I tried using this free module. Link But this is not working with attributes....
0
votes
1answer
19 views

Magento 2: Rest API Contact Us Form

Need to Create Rest API for Contact Us form. Submit contact us form via rest API and send an email. API Name: Contact Us API Method: POST API URL: {baseurl}/rest/V1/contactus
0
votes
0answers
13 views

How to get children product details with parent product as per category id

I am fetching the products as per category id using magento-2 end point. I am explaining my end point below. $quoteUrl ='https://example.com/index.php/rest/V1/products?searchCriteria[filterGroups][0][...
0
votes
0answers
10 views

Magento1: How can set custom specific category filter in api user role resource?

I want to allow specific category from api resource in magento1 by soap or rest. Please check below screenshot: Anyone have an idea for that?
0
votes
0answers
13 views

Magento 2.2.3 CatalogInventory REST API not returning all products

We are using Devart Excel extension in order to manage stock in our Magento 2 store. We are mostly using configurable products with 30 simple products, but some are standalone products (aka. simple ...
0
votes
0answers
6 views

I created custom API to update bulk product details but I want to update detail based on store code and store code is collected from payload any idea?

I created custom API to update details but I want to update detail based on store code and store code is collected from payload any idea? Magento 2 [EE] postman custom URL: http://HOST/rest/V1/...
1
vote
0answers
37 views

Magento 2 Create Product Swatch Attribute via API

Is it possible to create a swatch attribute via the API endpoint? Swatch product attributes are seemingly created programatically by setting swatch_input_type data to the attribute, as demonstrated ...
0
votes
0answers
14 views

How to get only parent product with pagination using Magento2

I need to fetch only the parent products as per category ID using magento2 end point but as per my code I am getting also the children products. I am explaining my code below. $quoteUrl ='https://...
0
votes
0answers
14 views

Get layered navigation filters for category

I'm trying to get layered navigation filters list based on category ID. You can review my code here I'm using smile elasticsuit. Because of that it I'm facing problem with data. Even I get filters ...
0
votes
1answer
18 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":{ ...
0
votes
0answers
20 views

User login to Magento from outside of Magento?

I'm building an App and I'm wondering if it's possible to build an user login which basically uses the Magento user database? I want my Magento users to use their login (email + password) in my app so ...
0
votes
0answers
12 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": "Product name", "attribute_set_id":...
0
votes
1answer
25 views

How to delete the order Items from magento using Rest API

I want to delete the order Item form the Successfully placed Order how to delete the order item.Can anyone help to solve this situation. Thanks in Advance :)
0
votes
0answers
29 views

Import product using async rest bulk API and RabbitMQ

We are working on a shop with about 7k products that are provided by several messy CSV. We decided to parse data from all these CSV and try to use async bulk api for import products, basically ...
0
votes
0answers
10 views

I am trying to get the wishlist data and created a module but it's showing me “Request does not match any route”

Code for a wishlist from here I have tried code a wishlist code from the above link and also created a module but don't know why I am getting a response "Request does not match any route" in postman, ...
0
votes
1answer
17 views

Magento2 API Get email of guest customers in carts endpoint

How can I get the email of a cart created by an guest customer? In the response for guest carts I get a null in the property customer.email and also a null in the property billing_address.email but ...
0
votes
0answers
15 views

Is possible to Invoice, Ship, Cancel sales_order_item in other words Sub-Orders via REST or GraphQL APIs?

Wanted to know whether to was possible to update/change the sub-order wise status of sales_order_item via Restful or GraphQL APIs ? I could not find this in the swagger link posted here: https://...
0
votes
0answers
12 views

How to obtain attribute_set_id from product attributes API response

I've been trying to retrieve attribute_set_id and attribute_group id from the below endpoint. rest/V1/products/attributes?searchCriteria=0 However, the response only contains the below keys which do ...
0
votes
0answers
20 views

Magento 2 Register and login REST API

I'm creating an app for magento2 with Rest API. I'm facing the below issues. Im able to create the user through REST API auth Berear token : bbiotqwwj04prtja2oum5gvfsqt8dnjh API : Register URL : ...
0
votes
1answer
25 views

Get All attributes of a product By ID magento 2.3 REST API

I am trying to create a custom API to get all attributes of a product. {{host}}/products/attribute-sets/17/attributes {{host}}/products/attributes?searchCriteria[filter_groups][0][filters][0][field]=...
0
votes
0answers
27 views

Magento 2.3.4 - webapi_rest generate token API call regenerates the form_key. Why?

Any idea why the form_key is regenerated when trying to generate a token through the integration/customer/token API call? Any HTTP form submit following a webapi_rest/graphql customer token API call ...
0
votes
0answers
8 views

Shipping address & billing address gets null after adding new billing address , pls check image

Not sure what's the root cause , it clears shipping address , while adding new billing address -https://i.stack.imgur.com/lWq0d.png
0
votes
1answer
11 views

Missing shipping address in the rest/V1/orders API

One of our venders is telling us that our rest/V1/orders API return is missing the shipping address fields. We are running Magento 2.3.4. Is this a Magento bug? What code library should I be looking ...
0
votes
2answers
36 views

Magento Web API giving server internal error add products

I tried posting a product to my Magento site through its REST web API. I am using curl. I got this error: {"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-...
0
votes
0answers
9 views

How to compare products metadata in database [Magento 2]

I'm creating configurable product by API. All is working fine and the simple/configurable products appears in the backend. However when I look at the frontend, only simple product are shown, not ...
0
votes
0answers
7 views

Magento 2 Custom Api to merge guest cart to active cart using Rest Api

I want an custom api where i can update guest cart to active customer cart using rest api.
0
votes
0answers
22 views

REST API: How do you get the SKU for items in a grouped product?

I'm able to create, update, delete and fetch products using the REST API, the problem is that when I find a grouped product I need to also get the SKU that belong inside that grouped product, I see ...
1
vote
1answer
73 views

How to set data for my extension attribute Magento 2.3

I can't set the value for my extension attribute , how to set the value for extension attribute using json array swagger. And i can't show the data in the order grid. The below attribute and value ...
0
votes
1answer
28 views

Magento 2: Which permission is needed to access `GET /V1/inventory/stock-source-links`?

I have the set of permissions: Stores, Catalog, Customers, Stores. When I get the endpoint GET /V1/inventory/stock-source-links I'm receiving the exception: The consumer isn't authorized to ...
0
votes
0answers
11 views

Array as query parameter in custom rest api Magento 1.9

I have create a custom module for guest user rest api, to get custom product collection, but having issue passing array in query parameter, to get some collection values as response. It is treating ...
0
votes
0answers
23 views

REST API Get products info based on name Magento 1.9

I have created a custom module but unable to get products based on categories name, If I pass a single name it is working. app/etc/modules/Custom_Restapi.xml <?xml version="1.0"?> <config&...
0
votes
1answer
55 views

Magento 2.3 How to convert JSON response array to array of same type object REST API

I have created a custom api to get review and rating summary: public function getRatingSummary($productId) { $result =[]; $product = $this->_productRepository->getById($productId)...
0
votes
1answer
18 views

Magento 2 event observer call

I have created one event for triggering an api on method "sales_order_shipment_save_after". But another 3rd party module is also triggering a same event but I want to call event of 3rd party module ...
0
votes
1answer
28 views

Magento 2 - Get order custom attribute data using rest api

While i am trying to get order custom attribute data using rest api it's coming as string. But magento returning all other data as JSON. Does anyone have any idea how to make this look like json? ...
0
votes
0answers
15 views

magento 2.3 extend rest api to put stock item by id

This is the request to update the stock item of a product: https://www.example.com/rest/V1/products/{sku}/stockItems/{itemid} I am having problem with complex sku with special chars, so I do not ...
0
votes
1answer
35 views

How to add Review using REST API in magento 2.3

I am trying to find a rest api to add review. But it seems like magento doesn't provide api for that.I created custom api's to get review and rating using: https://www.mageplaza.com/devdocs/get-...
0
votes
0answers
41 views

Magento 2: Set custom response status code for REST API

I have created a REST API using Magento 2.3.2 CE All went well, but now I want to return custom HTTP Status Code with my error message like 401 Unauthorized, 409, 400, etc. Currently, for all my API ...
0
votes
0answers
22 views

503 error on PUT call to REST API

I'm able to POST images up to the media gallery of products on my Magento 2 installation using the /products/{sku}/media/ endpoint. I'm of the understanding that I should be able to overwrite an ...
0
votes
0answers
15 views

Ship different qty than ordered qty

I know how to ship orders programmatically and I'm doing it in my current Magento 2 project. However, the requirements is to ship orders programmatically (from an app using custom API) where the app ...
0
votes
0answers
33 views

GraphQl get Product collection

I have created Rest API for getting product collection for learning purpose , I wanted to convert it in GraphQl Api. My question is below code valid for GraphQl or there is something else? My rest APi ...
0
votes
0answers
63 views

Magento 2: Place order via REST API using Stripe Payment Method

I have a situation where I need to create virtual orders programmatically using the Stripe Payment method. I have no issues creating a virtual order programmatically but I want to use Cryozonic ...
0
votes
0answers
12 views

How Can I Get The $productOptions Label Value As Per Store Wise In Magento2

I need To Get wish list data as per store wise in magento-2 costume rest api, so Here, i attach the get wish list function so how can i get the Arabic value when i switch store from English to Arabic ...
0
votes
0answers
15 views

Magento 2 rest api: filtering products endpoint by ID

I find myself unable to filter product data by the integer field "id". Error I get is: HTTPError: 400 Client Error: Bad Request for url: https://www.REDACTED.com/rest/V1/products?searchCriteria[...
0
votes
0answers
23 views

Customize request and response of order REST API

Guest order placement request - URL - V1/guest-carts/:cartId/order Body - { "paymentMethod": { "method":"testpayment_gateway", "customField":"CustomFieldValue" // **This is not product ...

1
2 3 4 5
17