Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
14 views

Need to fetch custom customer attribute load via SOAP API 'customerCustomerRepositoryV1'

I used SOAP API '{$baseUrl}soap/default?wsdl&services=customerCustomerRepositoryV1' to get customer attributes values. I am successfully getting these attributes values like name, email etc all ...
3
votes
1answer
22 views

Magento : REST API integration with paypal payment method

We are using REST API for mobile app from magento 2. We are try to place order using paypal express checkout method. But we get error. Check detail bellow. API call. Call Type : PUT API URL : https:...
1
vote
0answers
14 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 ...
1
vote
1answer
23 views

magento 2 : Place order using REST API and stripe payment method

We are working on mobile which use magento 2 REST API. In which we are facing issue while try to place order using Stripe payment method. For stripe we are using magenest stripe extension. REST API ...
2
votes
0answers
20 views

Web API: Product set use default status for store view

Our products are created and updated via the web API. When we update a product for all /rest/all/V1/products/123 and set status: 2 the product is disabled. But per store view it's still enabled ...
0
votes
1answer
21 views

How to add customer details for guest user using Magento rest API - create order

I am creating an order for a guest user using Magento rest API. Approach: Create a quote Add items to the cart Prepare checkout - Adding billing and shipping information for the order Create an ...
3
votes
2answers
46 views

Magento 2 - Customer/Token Rest API issue

Customer is signup through rest api in magento 2.3 successfully. after signup, I am unable to get customer's token through customer/token rest api. Api returns following error: Any help, experience ...
2
votes
1answer
15 views

Do you need to create an integration to drive store process or can it be done via rest API?

We are working on integrating our ERP system with a Magento store. To this point, we have been developing a REST API connection to the store which is working fine. The goal is to be able to take ...
0
votes
0answers
11 views

Magento 2 : How to get invoice pdf file through API

In magento2 frontend, Login customer can download particular invoice of order from My Account -> My Order -> Invoice Tab Same Functionality we are developing in android app so my questions is how to ...
0
votes
1answer
27 views

How to establish connection between Magento 2 and some ERP Software?

I am working on ERP Magento 2 Connector. I have a query about it How is it practical to make connection with some ERP through csv formate data. I mean we can create REST/SOAP APIs but how can we tell ...
1
vote
0answers
19 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 ...
1
vote
0answers
20 views

Magento 2.2 REST API Call to get media, does not return base 64 string

I tried the call /V1/products/:sku/media/ I get this response [{ "id": 31, "media_type": "image", "label": null, "position": 1, "disabled": false, ...
2
votes
0answers
45 views

Need to get customer order list from Rest API

First I tried this endpoint /rest/V1/orders to get list of all orders history for a customer but got this error: { "message": "The consumer isn't authorized to access %resources.", "parameters": { ...
0
votes
2answers
32 views

How to create shipment and add tracking number through API in Magento 2?

I have a csv file with 3 columns with list of (increment_id, carrier_code, tracking_number). How do I Post POST these values to existing magento 2 order using API? I have managed to load the values ...
0
votes
0answers
16 views

How to not use attribute default value over rest API in magento2

Im working on api integration between one store of magento2 multi store installation and product db of a client. Our current problem is that part of the items for in our store are duplicated (same sku)...
0
votes
0answers
21 views

Not getting the order id using payment information API in magento-2

I need to create the order id after checkout page using endpoints from Magento-2. As per my code, I am getting the following error. {"message":"Please check the shipping address information. ...
2
votes
1answer
20 views

How do you correctly specify a filter to get all orders that have been updated since date

I have tried to create a filter to get all updated orders since date... rest/V1/orders/searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][...
0
votes
0answers
21 views

How to create a custom Api in magento 2 to add multiple products in cart using single APi call?

The default Api in magento 2 to add items to cart V1/carts/mine/items allows us to add only one product to cart at a time. Now I need to create a Api to add items in bulk in cart. How I can do this? ...
0
votes
0answers
14 views

Magento 2.3 Rest API: Error message for each cart item

I'm using this endpoint to get cart items: /rest/V1/carts/mine/items How can I get error message for each cart item without modifying PHP code like demo website did when I go to cart page? (I want ...
0
votes
0answers
16 views

How to customer login using Rest Api in magento 2

Using Curl Post. $userData = array("username" => "sarveshmobileapp", "password" => "Sarvesh@123"); $ch = curl_init("http://localhost/vaibhav.local/index.php/rest/V1/integration/admin/token")...
1
vote
1answer
72 views

“%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type

Calling this http://localhost/XXX/rest/V1/XXX/uid/2 and My Model Code is /** * Returns greeting message to user * * @api * @param int $uid User Id. * @return string Greeting ...
0
votes
0answers
15 views

How to get the extension attributes in shipping info and order/{id} APi magento2?

I have created a sales attribute "port" in sale_order table. I want to POST this post attribute in shipping information API payload and get it in response as extension attribute. I also want to save ...
1
vote
1answer
21 views

Include title / salutation at /order endpoint

Is there anyway of getting a customers title (mr / mrs etc) to the /rest/V1/orders/orderID endpoint? It currently doesn't appear. https://devdocs.magento.com/swagger/index.html#!/...
0
votes
0answers
14 views

magento 2 add shipping icon to estimate-shipping-methods json

I have added shipping icon to shipping methods and its display on frontend when page load first time. When I change the country shipping methods reflect and shipping icon gone because there will json ...
0
votes
1answer
59 views

Inventory management after order created via rest API in Magento 2.x version ( without cart)

I have created Magento rest API for the third party integrations and I have used a couple of API's for listing products, fetching product detail and created order. I used [PUT] - /V1/orders/create - ...
2
votes
3answers
90 views

Request does not match any route issue in magento 2

I have creating a extension for get cms static block content using rest api. di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
22 views

How to call Web API call inside custom module Magento 2

How can we call Web API in a custom module? I have a third party module, in which they are sending a request with API calls. I have custom functionality where I have to redirect my page to that Web ...
0
votes
1answer
50 views

How to add configurable product In magento 2 using rest api?

I created a configurable product using the below link and Payload 1 Configurable Product Created http://localhost/rest/V1/products { "product": { "sku": "Js-Con", "name": "Js-Con", "...
0
votes
0answers
27 views

Add Customer Attribute using REST API in 2.3.1

I am using Magento Open Source 2.3.1, REST API and would like to add a customer attribute (if it does not exists already). I could already add product attributes successfully and I can get a list of ...
1
vote
0answers
27 views

Algolia REST Api's to apply category, Price and Brand filters using PHP curl process on Algolia?

I Have sample curl code, It is working perfectly but I don't know, how to apply filters on category, price, and brands to get all products list. we are using algolia REST API's. $APPI_ID = "...
1
vote
1answer
34 views

Magento 2 - Get abandoned shopping carts through Rest API

I'm trying to retrieve the abandoned shopping cart through the Magento Rest API. Here is my request https://<my_domain>/rest/V1/carts/search?searchCriteria[filter_groups][0][filters][0][field]=...
2
votes
0answers
25 views

Adding a grouped product to cart via the rest api

I'm trying to POST a grouped product to my magento 2 site. Doing this for a simple product is easy enough. How to do it can be found here. But what is doesn't specify is how to add a grouped product....
0
votes
0answers
27 views

Magento 2.3 REST API Json response format issue

How I can change the json format from [ [ { "success": [ { "code": 200, "response": { "...
0
votes
0answers
25 views

How to add guest cart Items into customer cart

I need to add guest cart items to customer cart. I can't save guest token in localstorage which changes when page load. var data = null; var xhr = new XMLHttpRequest(); xhr.withCredentials = true; ...
1
vote
1answer
19 views

Magento 2 - Rest API add new custom request for home page slider

I have a table, where I am storing data for home page slider. (home_slider) I have also created a module for updating slider from backend. Now I want to add a custom API request in existing Magento ...
2
votes
1answer
30 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 ...
1
vote
1answer
24 views

Magento 2 V1/Shipment API getParentItem on null

I am using postman the rest api to create shipping: http://myMagento/rest/default/V1/shipment POST: { "entity": { "order_id": 5873, "shipment_status": 1, "store_id": 1, "total_qty"...
0
votes
1answer
24 views

Magento 2 : how to add additional information in rest API response?

I have one custom table 'vendor_info' with 5 fields and I want to add this table data along with this API http://www.hostname.com/rest/V1/products?searchCriteria
1
vote
0answers
14 views

Issue with wildcard preceding value converting to URL encoding

When using a wildcard at the beginning of a search query, it does not seem to work and instead tries to convert the percentage sign to a url entity when the value is an int. Any ideas on causes/...
0
votes
1answer
74 views

Magento 2.3 - How to Get product-salable-quantity using REST API?

I followed the Magento documentation regarding fetching Product Salable quantity using REST API. https://devdocs.magento.com/guides/v2.3/rest/modules/inventory/check-salable-quantity.html But I'm ...
0
votes
0answers
31 views

Magento 2 : Rest Api for access customer id with token

I want to get customer id with token. Currently we receive only access token using this API rest/V1/integration/customer/token Method : Post { "username":"customer1@example.com", "password":"...
0
votes
2answers
55 views

Magento 2 : Rest Api for search customer by name

I want to search customer by name. Any options to search customer by name using Rest API in Magento 2
1
vote
0answers
20 views

Magento 2 REST API for reset password of admin

How to reset of password of admin using rest api in Magento 2.Any options to reset password of admin using rest api
2
votes
1answer
92 views

REST API 404 error: “Request does not match any route error” at Shipping method selection Magento 2

The REST API request rest/default/V1/guest-carts/:cartId/shipping-information is returning a 404 error with message "Request does not match any route".
0
votes
0answers
13 views

Magento 1 Rest API - How to filter products using attributes color / size / brand name?

Can anybody help me to filter products using attributes color / size / Brand name instead of ids? Example: api/rest/products?filter[1][attribute]=brand&filter[1][in]=10603 (want to use brand ...
1
vote
1answer
59 views

Get list of all Catalog Price rules using API in Magento 2

I want API endpoints that give me all available catalog price rules in Magento 2.
0
votes
0answers
68 views

Magento 2 REST API delete all products

I want to delete all product using Rest API in Magento 2.
3
votes
1answer
32 views

How to add custom data in the output of GET API to get children of configurable product in Magento 2.3?

To get children of Configurable Product, I'm using following API /V1/configurable-products/{{SKU}}/children I'm getting following output: [ { "id": 3234, "sku": "ABC1006", ...
1
vote
1answer
44 views

Rest API: Consumer is not authorized to access Magento_Sales::sales

I am creating an Invoice through Magento REST API with the below request: POST "https://<magento-domain>/mg2/rest/V1/order/9/invoice" Request Headers: { "Content-Type": "application/json",...
1
vote
2answers
72 views

Magento Api request foreach error

I am trying to get attribute option Ids for a sku using this below api call. http://localhost/rest/V1/configurable-products/sh8/options/all I used this curl request: $curl = curl_init(); ...