378 questions
0
votes
1
answer
58
views
Get tags as a list in Magento using API
/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=tags&searchCriteria[filter_groups][0][filters][0][value]=my tag
I tried this but getting error.
{
"message": "...
0
votes
1
answer
640
views
Magento Rest Api Recaptcha Validation Failed Error
I am sending below payload in Create Customer Rest Api in Magento2 but still getting error.I dont want to turn off recaptcha from admin panel. Is there any way to bypass REcaptcha in magento.
url: {...
0
votes
1
answer
196
views
Unable to create a Specific coupon code in magento using REST API
I am trying to create a specific Coupon code for Magento using API REST
I am able to create random coupon code using but i want a specific coupon like HOLI100. How to achieve that
API(URL/rest/V1/...
0
votes
1
answer
554
views
Magento Rest API error:`The signature is invalid. Verify and try again.` after adding searchCriteria Filter
I'm trying to send an API request to the magento 2 api to retrieve all orders. I'm sending this request from Laravel using the Illuminate\Support\Facades\Http. To authenticate myself to magento im ...
0
votes
0
answers
126
views
How to authenticate PhpStorm HTTP Client request to Magento 2 REST API?
I'm trying to emulate request for updating product information from third-party system to Magento 2 REST API using PhpStorm HTTP Client. Authentication type is Integration (oAuth). Are there any ...
0
votes
1
answer
1k
views
Magento 2: 401 Unauthorized error with webapi.xml
Forgive me in advance for what is probably a basic overall question. I'm still learning Magento 2 (v.2.4.5-p1) and need some hand holding at times.
I've inherited this project with several endpoints ...
1
vote
0
answers
379
views
Products added via Magento REST API are out of stock even after specifying quantity
I'm adding a product to my Magento store via the following curl but the dashboard shows that the item is out of stock.
curl --location '<store_url>/rest/V1/products' \
--header 'Authorization: ...
1
vote
1
answer
463
views
Magento 2 - Request sample for carts/mine (GET)
I try to call the carts/mine GET route of the Magento 2 REST API, but it does not show a request sample in the documentation.
It says "Returns information for the cart for a specified customer.&...
0
votes
1
answer
578
views
Magento 2 - Where to find the complete REST API documentation
It seems like the official Magento 2 REST API Documentation is not complete.
I found this code in a application of one of our ex colleagues:
protected function addItemToCart($cartId, $cartItem)
{
...
0
votes
1
answer
1k
views
Magento 2 REST API how to create an order on behalf of customer with Admin or integration token
In our integration with Magento we need to create an order for a customer (not a guest) without the customer token. We're hoping that it is possible using Admin or Integration token.
Every thing works ...
2
votes
1
answer
523
views
REST API Performance issue in Magento 2
Is anyone here heavily using Magento rest API for catalog data (products/categories/attributes/sets/groups) persistence? like not once in a while but more as a system integration. how is the ...
0
votes
1
answer
50
views
How to get a few Products from a store satisfying some string using rest API?
I want to get 4 products from Magento store. These items contain "food" string in their SKUs. SKU can be something like "FoodDietic", "TastyFood" and so on. I have done a ...
0
votes
1
answer
613
views
Magento 2 update invoice state through REST API giving error
I am having project in magento enterprise version :2.3.7-p3
I'm trying to update Magento 2 invoice state via Rest API call : {{magento_api_url}}/V1/invoices/ and method is post below are payload for ...
1
vote
1
answer
694
views
Magento 2 - Custom rest api endpoint for PDF download - net::ERR_HTTP2_PROTOCOL_ERROR 200
I have created custom rest api endpoint in magento for downloading pdf file.
When testing it locally: From separate react JS project I am sending request to that endpoint and file is downloaded ...
0
votes
1
answer
407
views
How to we can maintain two API versions in Magento 2 in case of particular change request
I wants to make few changes in Magento 2 core API by extending this and wants to run both the API (old one and new with changes). Please suggest the standard way out.
1
vote
1
answer
673
views
Magento2 - Rest API - Add product to cart with "customizable option" of type "checkbox"
I have problems with adding products to the cart by REST Api, if the product has custom options and the option is of the "checkbox" type.
I tried as below, but then only one "checkbox&...
0
votes
1
answer
185
views
Mass data change via rest api
I would like to massively change the data in the order, customer and in the product
I can change the data in a single order using this query:
[POST] https://test-page.com/rest/V1/orders
Body: { "...
0
votes
1
answer
1k
views
Magento 2 Rest API - PUT method always return "Class ... does not exist"
I have created magento 2 rest api endpoint for PUT request and it always returns "Class .. does not exist".
There are 2 param's in PUT request:
path parameter: id, json string in body of ...
1
vote
3
answers
4k
views
Double authorization in Postman
I have basic auth on the website, how can I include two authorization methods in the header, Bearer and token?
Is it at all possible if so how, because if I give it like this:
This is when one ...
0
votes
1
answer
612
views
Magneto Rest API to Update Tracking Number and Carrier Code is not working
I tried to update the tracking no and carrier code using the following API with the payload.
http://example.com/rest/default/V1/shipment/track
Payload
{
"entity":{
"order_id&...
1
vote
2
answers
457
views
Magento 2.3.4 Different hour in REST API
I send request via REST API
https://www.mysite.pl/rest/V1/orders/89
And have date and time:
"created_at": "2021-09-21 15:59:34",
When I go to Saels->Orders in admin there is ...
1
vote
1
answer
2k
views
Magento 2 rest API: create and associate select attribute option value for Manufacturer to product
I use "/all/V1/products" rest call to create product on Magento 2.
I'm using this code to create all settings as follow:
$data = [
"product" => [
...
0
votes
1
answer
2k
views
Magento 2 rest API: filter category by name
I need to find categories by name using Magento 2 rest api.
I use /all/V1/categories and filters but I can't get it to work.
Here's the code:
$url = "https://*******/index.php/rest";
$...
0
votes
1
answer
320
views
Paypal rest api get order details for an order palced with nvp api
I have a Magento2 shop with default checkout module that is placing orders using nvp api. I need to later get the order from paypal and do some action based on its status but from the rest api (
/v2/...
1
vote
1
answer
2k
views
Magento 2 Rest API Can't Remove Category ID's from product
I am working on a REST API call which will remove the category ID from a live product. The below code returns true but this has not updated in the back end or on the site.
I have followed the magento ...
0
votes
1
answer
3k
views
Magento 2 rest api doesn't update salable quantity
I use rest api to create a simple product on my magento. All works correctly except quantity column that is correctly update on "Quantity" column but not on the salable quantity.
Rest call: &...
0
votes
3
answers
3k
views
How to update base price of product by store id using magento 2 rest api?
I am trying to update base price of product by store id and product SKU using POSTMAN. But, getting error Invalid Attribute. Sometimes it works fine. I tried to change product attributes to if it ...
0
votes
1
answer
404
views
Magento 2 API shows wrong stockid
I ran the Magento Rest API to get the stock id for a particular product but it's showing me wrong stock id.
We have three websites and each website has a separate stock, but when we call Magento API ...
0
votes
1
answer
593
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
1
answer
928
views
Magento 2 REST API : Product Price and Custom Attribute color are not reflecting in response
I am working on Magento2 [v2.4] Product integration use case.
I am creating a Product using REST API [postman] and observed that product price, color attributes are present in Request JSON but those ...
0
votes
0
answers
306
views
How can I see Magento2 Rest API errors as a 3rd party developer?
We are working with Magento 2 REST APIs to pull back all orders. Periodically, it throws with a 500 error and reference to a webapi #. As a 3rd party provider, I don't have access to the /logs ...
2
votes
0
answers
198
views
Magento OOB REST API - V1/Search is not returning any items
I was trying to use the Magento 2 OOB REST API for search.
Request URL as in the below format.
<host>/rest/all/V1/search?searchCriteria[requestName]=quick_search_container&searchCriteria[...
0
votes
1
answer
1k
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
1
answer
147
views
In Magento can I build my storefront solely on Magento REST API?
Is it possible to use Magento 2.4 solely as a store admin panel and REST API?
I would like to build my store front as a SPA/MPA/NodeJS application that has nothing to do with neither PHP, nor Magento ...
1
vote
1
answer
1k
views
Magento Rest API 2.4: search with condition on order status
we have REST API to Magento that worked with version 2.2. Now, after a migration to V2.4 a search request with a condition on "status" delivers an internal server error.
The Mageto Log File ...
0
votes
2
answers
2k
views
How to run rest api in Magento using postman
I am new to magento and trying to get response from magento rest api but I can't.
Initially I get authorization key by passing username, password
Now I want to list all categories.
In Authorization I ...
0
votes
2
answers
2k
views
Add new tracking number to existing shipment using REST API in Magento 2
How can I add a new tracking number to an already existing shipment that was created using the following endpoint https://magento.redoc.ly/2.4.0-admin/tag/orderorderIdship ?
I can create the shipment ...
2
votes
2
answers
4k
views
Magento 1.9 rest api developer documentation
I want to create rest api for magento 1.9 but I am unable to find any developer documentation for the same.
Please if some could refer me some sites so that I can refer and implement rest api's and ...
0
votes
1
answer
923
views
I tried Magento API, but I got message "401 Authorization Required"
I want to use Magento API for my sites and I want "full headless commerce".
I ran the following PHP code. I got "token". But I couldn't add customer. Why?
401 Authorization ...
0
votes
1
answer
3k
views
“The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.”}
I have created a user in Magento for customer. I need to create a login api for customer.For that I need a token to use.To generate that I have used the below code which ended up in the following ...
0
votes
1
answer
5k
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 : ...
3
votes
2
answers
2k
views
Is there a way to fetch custom filters for a particular category in Magento 2 using Rest api?
I am using the url below to fetch the products in a particular category and it works fine.
/rest/default/V1/products?searchCriteria[filterGroups][0][filters][0][field]=category_id&searchCriteria[...
1
vote
0
answers
326
views
How to place order with paypal express checkout in Magento 1.9 Rest api
I made payment via paypal.I am new in this framework. Don't have any idea, in which table I have to update. I f you guys give some ideas about implementation flow then it will be very helpful.
Below ...
4
votes
2
answers
4k
views
How to clear quote/cart in magento 2 using REST API
Is there any REST API to clear cart all product
One API is there to delete cart product using product ID
http://example.com/V1/carts/mine/items/:itemId
But my quote/cart i have added many product ...
1
vote
0
answers
1k
views
REST API Versioning (V1 / V2 / V3) in Magento 2.3
Have clarification on implementing versioning on custom API in Magento 2.3
Current Scenario:
We have implemented custom REST API with some functionality.
API Spec:
API: https://example.domain.com/...
1
vote
2
answers
4k
views
Order status updates via rest api in magento 2
I'm working on magento 2.3.3. I've stuck in one place while was doing method that receives callbacks from custom payment gateway via magento web api. The main idea is to redirect customer to my custom ...
0
votes
0
answers
1k
views
Magento 2 REST API. List products with parent/child relation
I looking for a way to list products with Parent/Child relation.
API {{baseUrl}}/V1/products (https://devdocs.magento.com/guides/v2.3/rest/list.html#catalog) provides only product sku (parent_sku is ...
0
votes
1
answer
153
views
Oauth initiate failing in Magento 1 site
I am using Nick Vane's Magento REST API and the Oauth authentication works on one client and fails on another.
I have tried resetting the consumer information, client key and secret but on the ...
2
votes
0
answers
659
views
Magento Rest API - Empty / blank Order ID returned on successful order creation
Magento Version 2.3
We are calling Rest API from our PHP code to create orders in Magento for specific customers and not guest carts. We are able to successfully create orders in Magento (able to ...
1
vote
1
answer
511
views
How to Access Magento Rest API in iOS swift 4
I am write code to post data from Magento REST API for IOS Application put get me error. I try from login and register view controller in the same code get me the same error
The api Magento REST API ....