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
6 views

layered navigation filter attributes based on selection magento 2 api

I am aware of this Magento 2 api - How to get layer navigation filters available in rest api?. If the color is selected as a filter then rest attributes like size should change based on that color. ...
0
votes
0answers
8 views

Magento 2 Integration with API - route does not exist error

I'm working on integrating linnworks with magento 2 using the rest endpoint which from what I gather is usually /rest/default/v1. However, when visiting that url in the browser, the following error is ...
0
votes
0answers
8 views

How to create REST API to upload image into customer custom fields

I am using Magento Enterprise Solution. Where I have created a few custom fields (File Type) for a customer. I want to get help to create REST API to upload an image into these fields by using REST ...
2
votes
1answer
29 views

No such entity cartId when send POST on /rest/default/V1/carts/mine/payment-information

According to documentation - https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html I'm trying to make call on /rest/default/V1/carts/mine/payment-information with body: ...
0
votes
0answers
15 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 ...
0
votes
0answers
15 views

How to get Magento 2 Customizable Options with GraphQL

How to get Magento 2 Customizable Options with REST API - similar to this, but how to get same result with GraphQL in Magento 2? This Magento 2 documentation doesn't tell anything about getting ...
3
votes
1answer
36 views

invalid date when adding product with custom options(datetime) using REST API

I have a product with a custom option DateTime filed in product options When I try to place an order using rest API. My order array is given below $order = array ( 'cartItem' => array ( ...
0
votes
0answers
6 views

rest API - send product translations for store-view

We've setup in Magento a website with multiple store-views for translations. The products and translations are stored in Microsoft Navision and will be transfered to Magento by using the rest API. We'...
0
votes
0answers
10 views

Custom API not working when use “all” in url

I have created a custom API which is working fine with: curl -X POST "http://127.0.0.1/magento2.4/index.php/rest/V1/wishlist/add/3" -H "Authorization: Bearer ...
0
votes
0answers
9 views

Magento 2 REST API endpoint

I want to know how we can get product attribute option ID based on product attribute option value using REST API.
0
votes
0answers
14 views

API Coupon Code Generation Invalid Value Type Response

Attempting to dynamically generate a coupon code for a Sales Rule that I created withing the admin UI, using a REST API call. I am sending the bare minimum required (according to the documentation) in ...
1
vote
2answers
45 views

DynamicRows (or Associative Array) in Magento 2 REST API

I am using Magento 2 REST API for the mobile application. I am facing some complexity so I need your help. I have DynamicRows component with two fields in UI Form, the name of the field is ...
0
votes
0answers
16 views

How to get multi-select attribute option in products using REST api?

How to get multi-select attribute type option in products using REST api in Magento 2?
0
votes
1answer
17 views

Add new tracking number to existing shipment using REST API

How can I add a new tracking number to an already existing shipment that was created using the following endpoint link ? I can create the shipment for a sale/order with the initial tracking number/s, ...
0
votes
0answers
14 views

magento 2: get product name, price in product linked list in :sku/product endpoint rest api

In default api product links details are like product_links": [ { "sku": "02247", "link_type": "related", "...
0
votes
0answers
15 views

On updating product using ASYNC REST API it doesn't create product in Magento 2

I have using postman to test API to create a product API URL : http://127.0.0.1/magento/rest/async/V1/products Data Passed to test same as documentation : { "product": { "sku": &...
0
votes
2answers
42 views

Magento 2: How to add a tracking number to an order using REST API

I use the following code to add a tracking number to an order: $url = 'https://xxxxx/rest/V1/order/514/ship'; $authorization = "Authorization: Bearer ".$json; //I get $json ...
0
votes
0answers
25 views

how to get attribute label in magento 2 rest api for child products

How to get attribute labels for child products by using configurable-products/:sku/children. Below code is working fine for products/:sku endpoint. public function getAdditional($sku, $editMode = ...
0
votes
0answers
12 views

Magento2 Modify search criteria response that is available by Rest API

Magento2 How can I modify & pass only limited data to the Response of Magento Default Response API http://ayz.arjun.local/rest/V1/products/? searchCriteria[filter_groups][0][filters][0][field]=...
0
votes
1answer
13 views

Magento 2 Stock update API Postman error (Consumer is not authorized to access %resources)

I am trying to update the product quantity using postman. But i am getting the following errors { "message": "Consumer is not authorized to access %resources", "parameters&...
0
votes
0answers
11 views

What is the best way to get available filter in magento 2 REST API

What is the best way to get available filter in magento 2 REST API. I want to create Layered navigation using Layered navigation.
0
votes
0answers
21 views

How to get stock item in configurable-product/:sku/children rest api magento 2

How to get stock_item for every child product return in configurable-product/:sku/children. I can able to get stock_item in Products/:sku only.
0
votes
0answers
8 views

Magento 2 - REST API - How to create order for customer with admin token

I'm working on an app for Magento store. and I want to create an order for customers with my admin token. I found 2 ways: To get the customer credentials (user name and password) and create a queue - ...
0
votes
0answers
6 views

How can i add x-api-key, authentication key in magento to work rest api

I am integrating third party api in magento 1.9, they given x-api-key, authentication key, and type. How can i add x-api-key, authentication key in magento to work rest api.
0
votes
0answers
14 views

“error”: [{ “code”: 404, “message”: “Request does not match any route.”}] error magento1.9

for custom get api request i am getting "Request does not match any route." error api.xml <route_entity> <route>/servicebms/outgoingcall/:k_number/:agent_number/:...
0
votes
0answers
20 views

C# magento2 API REST update product

Hello i am trying to update a product in a magento store using the API REST, my version of Magento is 2.1.8 To do the test firstly i get the token, secondly i get an existing item by SKU, then send ...
0
votes
0answers
17 views

How to add and delete order in existing order uisng rest api in Magento 2

How to add and delete products in existing order using rest api in Magento 2.Any modules available for add order in existing order in Magento 2
0
votes
0answers
27 views

How to get billing address and shipping address in Magento 2 Invoice API?

Any options to get billing address and shipping address in magento2 rest api. I want to get billing address and shipping address in invoice api. Method: Get Url: http://127.0.0.1/jaipur/rest/V1/...
0
votes
0answers
15 views

Magento 2 REST API end points for multi website

I have created 3 multi websites for my store. Each website has one store and separate root category for each website. The Urls are like below hi.abc.com (default website) hello.abc.com hi-hello.abc....
0
votes
0answers
16 views

How to get attributes before adding product to the cart past api / rest?

I've been researching and testing plugins and events for more than 20 days add the customized item passed by POST /V1/carts/{quoteId}/items. { "cartItem": { "sku": "1809&...
0
votes
1answer
16 views

Magento2 update email address vis rest API

Magento2 update Email Address using Rest API. How can I update email address of login customer via Rest API or Graphl
0
votes
0answers
34 views

How to get customer name in invoice using rest api

I want to get customer name using invoice api. Any options to get customer name from invoice list. API for invoice list Method: Get Url:http://localhost/jaipurnew/rest/all/V1/invoices/1 ...
1
vote
1answer
14 views

is there a way to check if some code in Magento 2 is performed by a web API call

I am update a product stock item using the Magento API: <magento_url>/rest/V1/products/<sku>/stockItems/<item_id> and I have now setup a plugin to override the default Magento ...
0
votes
0answers
11 views

Magento 2 - Admin Grid Listing with Third Party API

I created admin grid according to devdocs guide. But my requirement is to list third party API data into admin grid. Let's take example of https://jsonplaceholder.typicode.com/users API. How I can ...
0
votes
1answer
35 views

Magento 2 rest api to get customer password using customer id

I want to get customer password using customer id. I developed mobile application. Magento use a backend service. Any options to get customer password using get method.
0
votes
0answers
10 views

How to use the REST API ​/V1​/products for mobile

I cannot really grasp how to use searchCriteria. What is the value that I should be passing? What is filterGroup, what is filters, what is conditionType. What are the values I can send in them.I am ...
2
votes
0answers
16 views

Reset admin password via REST API

How can reset admin password using rest api. I want to reset admin password using rest api in Magento 2
0
votes
1answer
13 views

why magento rest api returning more order items than ordered?

I placed order using magento graphQL api, order placed successfully and listed in my orders section in website. I placed order of 1 product. In website's order detail page it displaying 1 item ordered....
0
votes
0answers
10 views

Error 400 while trying to POST to orders

When I try to create an order, I get the error 400, can someone help me? Things that may help you guys help me I'm using NodeJS with Express Data that I'm trying to post { "entity&...
0
votes
1answer
10 views

Magento2 : Add simple product with custom options To cart Rest API

hello I need to Add simple product with custom options To cart throw Rest API I succeeded t add the simple product , price is correct and every thing is ok but unfortunately I didn't succeed to add ...
0
votes
0answers
26 views

Configurable product details + API (REST or GRAPHQL) + magento 2

How to change attribute selection wise product information like price and image for configurable product and combination attribute also using API. Get configurable product details using below API { ...
0
votes
0answers
14 views

How does Magento2 handle compare products for Guest Users?

Magneto2 I would like to know how does Magento handles compare products for Guest User. I am creating a Rest API to add the product to compare products. But for Guest User how am I suppose to restrict ...
0
votes
0answers
9 views

Rest api is not working in local server magento 1

Rest api is not working in local server magento 1, I taken module from github, it's working fine in server, but in localhost it displays the html code of home page. how to configure apache2 to work ...
0
votes
0answers
27 views

How can get invoice pdf using rest api in magento2

I setup module of pdf using this link. https://github.com/netz98/N98_WebapiRestPdf I use this method for print pdf url: http://127.0.0.1/jaipur/rest/V1/invoices/6 Method: Get Using this method ...
0
votes
0answers
30 views

Magento 2.3 Multi website Store /rest/australia/V1/carts/mine/payment-information 404 error

I am using the Multi website store, main website USA, second website Australia. Here my issue in Second Website store (Australia) If i try to pay i am getting 404 error, how to solve this error? How ...
0
votes
0answers
9 views

How can manage partial payment of orders in magento 2 admin using api

I want to save due balance of payment in magento. Customer purchase order $100 paid $60 $40 are due. Any options we can mention due payment details in magento 2. How to manage partial payment using ...
0
votes
0answers
21 views

Magento 2 : Rest API get product price in cart with including tax

I have added tax rules to add GST on a product prices. I have changed the store->configuration->sales->tax->Price Display Setting->Display Product Prices In Catalog to yes. I am getting ...
0
votes
0answers
28 views

magento 1 rest api url

I am creating a custom API in magento 1.9, but i don't know how to give url for the request and response here is the api route <routes> <route_entity> <route>/servicebms/...
0
votes
0answers
11 views

REST API not responding properly to Postman requests after server put online

This might be a newbie question as I am one. But earlier when my friend(at a different location) was using local server for magento the API calls were working fine for me . But recently he put the ...
0
votes
2answers
35 views

Magento 2 REST API to generate coupon code

I want to create coupon code in magento 2 using rest api. Any custom module available for create coupon code.

1
2 3 4 5
19