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.
1,856 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
45
views
Magento 2 - Rest API error - The consumer isn't authorized to access %resources
I am following the document to create a Rest API:
https://developer.adobe.com/commerce/php/tutorials/backend/create-custom-rest-api/
and defined user roles:
Generate Admin Access Token:
If i try with ...
0
votes
1
answer
64
views
Magento 2 rest API add bundle product in the cart
Magento 2.4.6 REST API – Bundle Product Cart Issue
I'm using the Magento 2.4.6 REST API to add a bundle product to the guest cart.
Create Quote
POST /rest/V1/guest-carts
Response (quote_id):
test
Add ...
0
votes
0
answers
50
views
Shipping method issue with RestAPI
I'm facing an issue with my REST API. I've created an interface for the API and am using the same function in both my REST and GraphQL APIs, with identical parameters.
The problem is: when I call the ...
0
votes
1
answer
66
views
How can I get a list of items on stock, filtered by certain product attributes?
I want to fetch (using the REST API) a list of products that are:
Above a certain price
Enabled
On stock
I can filter fine on the first two using the price and status fields in the rest/V1/products ...
0
votes
1
answer
52
views
How to send personalized messages via chatbot to confirm orders and abandon carts
I am looking to create an automation to send personalized messages with a chatbot through an intermediary API and trigger order confirmation and cart abandonment.
In other words, whenever an order is ...
0
votes
1
answer
82
views
Add Customer Via REST API with a company
I am using Magento 2 official B2B extension and I am trying to create customers via the REST API and assign it to a company on creation.
Sending a POST request to /rest/default/V1/customers with the ...
0
votes
1
answer
61
views
PUT/POST Rest request occasionally fail without error status code 400
Not quite sure where to start debugging, PUT/POST request occasionally without any errors in Magento logs, status code 400. The exact same request later goes through succesfully.
Example failed ...
0
votes
0
answers
28
views
Is there a list of which fields would typically be on Extension Interfaces in the REST API?
I'm maintaining a Magento integration which is used by people who use Magento or Adobe Commerce instances which aren't necessarily setup the same way as our test instance is. Several years ago, we ...
0
votes
1
answer
49
views
Add products to Category by API call
I was trying to create an API call to Magento with category ID
Endpoint
PUT https://www.website.com/rest/V1/categories/
Body
{
"category": {
"id": 1709,
"products&...
0
votes
0
answers
39
views
Magento2 REST API, change address through /order/parent_id endpoint
I want to change the shipping address and billing address for Magento 2 orders through the /order/{parent_id} endpoint:
https://adobe-commerce.redoc.ly/2.4.7-admin/tag/ordersparent_id
Parent_id is the ...
0
votes
1
answer
50
views
I used the REST API to create an order so bad that it bricked my admin portal. How to fix?
Steps:
I created this request in Postman, ran it, and got a 200 OK response:
Route: http://{website}/rest/V1/orders/create
Body:
{
"entity": {
"customer_id": 4,
...
0
votes
1
answer
202
views
Issue Creating Invoice via Magento REST API: %fieldName% is not supported Error
I'm trying to create an invoice using the Magento REST API (/rest/default/V1/order/{orderId}/invoice) and I'm getting the following error:
"message": "\"%fieldName\" is not ...
0
votes
1
answer
219
views
How to Create an Admin User Using an API?
I need to create an admin user using an API, but I'm not sure about the correct process or how to.
My Questions:
What API endpoint and parameters should be used to create an admin user?
How do I ...
0
votes
1
answer
113
views
Use extension attribute in order invoice table
how can I add a custom column into an order invoice table and use extension attribute to save some data in this column via REST Api.
thank you!!
Hi thank you very much for your answer, it seems to ...
0
votes
2
answers
191
views
Magento 2 Carding attack guest cart order placed even if we disable guest cart using REST API
I am using Magento 2.4.7-p1 hackers are trying to place order using guest cart REST API carding attacks
tried cloudflare , rate limit magento and captcha also, but no use in braintree created so many ...