All Questions
92
questions
0
votes
1
answer
291
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
416
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)
{
...
4
votes
2
answers
4k
views
The consumer isn't authorized to access %resources
Magento version 2.3.3
Admin token is successfully obtained using the API, however, when trying to fetch any resource using that token, I get this message: "The consumer isn't authorized to access ...
0
votes
1
answer
47
views
Magento 2 API removes spaces within variables
I am working with orders and invoices.
I noticed M2 (2.4.4) removes lots of spaces in almost all variables eg. for:
order['billing_address']:
'city': 'CHAMPIGNYSURMARNE'
In backend, it's well written ...
0
votes
1
answer
189
views
How to get image link from product option Id in Magento 2 api
I am using Magento 2 API to fetch products information and sync with our platform.
I need the product option image link by passing option_id in API. Is there any API that can return this information?
1
vote
0
answers
131
views
How to get Parent Product Id from Child Id in Magento 2 api
I want to get the parent product id from the child product id in Magento 2.
Is there any API that can give this information? I see solutions in Php.
But I am using c# as a backend language. And wants ...
0
votes
0
answers
714
views
Request does not match any route in Magento 2 API
Need to help in Magento 2 API.
Every time when I call Login API show below response.
{“message”:“Request does not match any route.“,”trace”:null}
My Login xml file as per below.
<?xml version=&...
0
votes
1
answer
503
views
Magento 2 - load Catalog collection without use of objectmanager in GraphQl
I am trying to load the Catalog collection without using object manager by injecting the class in the construct method and fetching the collection but I am facing the issue - "Error: Call to a ...
0
votes
1
answer
52
views
How to set up to use an application on xampp to test api from magento2 installed in Docker?
I have xampp installed set with ports 8081 and ssl to 9001. On xampp I have an application that relies on an api from magento2 (ports 80 and 443) to be populated. This magento2 is installed in docker ...
0
votes
1
answer
465
views
Magento 2 Issue while posting the rating with GraphpQL
Trying to post a review with rating with Magento GraphQl, but not able to post rating with query. Reviews are properly showing on admin but facing problem with rating. Here what I followed
https://...
0
votes
1
answer
161
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
375
views
How i can upload file using api in product customizable option type file magento2
i have a doubt in magento customizable option type file.I want to upload file to magento customizable option type file using api is there any way to do this?
0
votes
2
answers
511
views
Magento2 Rest PUT API return payload of default store instead of the target store
I'm experiencing a problem with PUT API requests with Magento 2.3.5.
I send the requests to endpoints like:
/rest/STORECODE/V1/products/PRODUCT_CODE
The data are properly stored on the right store ...
0
votes
1
answer
187
views
Pass Multiple E-Mails in QV Exception Notification UPS API in PHP
I want to send notifications to multiple emails but I am confused about how to pass the same in UPS API.
<ship:Notification>
<ship:NotificationCode>7</ship:...
0
votes
1
answer
418
views
Magento 2 - How to call some api when adding or updating a product via admin panel
I want to call an api whenever I add a new product to the catalog or update any product, see screenshot.
Is there any possible solution for this?