Questions tagged [rest]

Denotes questions related to the REST API on Magento

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Extension attribute not working in updateStockItemBySku API

I want to update the product custom attribute in this stock update API so, I have passed Payload like this: { "stockItem": { "qty": 7.00, "is_in_stock&...
0
votes
0answers
17 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
0answers
10 views

Magento 2 Customer API Token refresh

I am developing an APP based on magento 2 ecommerce. As any APP, the user should never logged out. I can get with magento 2 a token for any customer by that token have an expery time. I know that I ...
0
votes
1answer
16 views

REST API > Create Product = 400 error “Please select a product type”

I'm trying to create a Product with a call to the REST API POST https://mymagentodomain.com/V1/products { "product":{ "price":8, "sku":"123456789", ...
2
votes
0answers
50 views

What is Cleanup Probability Settings For OAuth

I am not getting the implementation of Cleanup Probability settings which you can find at Stores > Configuration > Services > OAuth > Cleanup Settings > Cleanup Probability. From the ...
0
votes
1answer
15 views

gift-message attribute not appearing in REST API Orders response after setting it on Cart

I am developing a headless Magento backend using REST/Graphql on the frontend. After enabling the Gift Message module in admin, I set correctly set the Cart gift-message like so: http://localhost/...
0
votes
0answers
28 views

Cant get Admin Token using cUrl 403 error

I've managed to get the API Token using Postman however, when I try to get the admin token through a cUrl request it returns a 403 error. Postman Post Request: https://localhost/index.php/rest/V1/...
0
votes
0answers
24 views

Customer Login, Products and Place Order REST APIs for React Native from an existing Magento 2 website

I've figured out how to login using customer credentials and get the token. I'm not able to fetch the products, categories with this token. Do I really need an admin token? Is it not safe to expose ...
0
votes
0answers
16 views

PaymentIntent Error while creating order via Stripe via magneto REST API

I'm trying to create order using POST /rest/V1/carts/mine/payment-information with test info { "paymentMethod": { "method": "stripe_payments", "...
0
votes
1answer
80 views

Got error when trying to submit order via rest api and stripe

I have magento 2 setup, with Stripe plugin, and I'm trying to create order using PUT http://ec2-3-236-104-131.compute-1.amazonaws.com/rest/V1/carts/mine/order BODY { "paymentMethod": { ...
1
vote
0answers
12 views

how i can retrieve Minimum Amount in magento 2 using REST API?

Dears I am using Magento ver. 2.2.7 as backend for my app, i want to get "Minimum Amount" for orders when my users review them bascket. So i am looking for API to retrieve value of "...
0
votes
0answers
21 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
1answer
15 views

Magento 2 how to get info_buyRequest in rest result rest/V1/orders/105"

Hi can any one tell me how to get addition information (info_buyrequest) in rest api result https://mainwebsite.com/index.php/rest/V1/orders/$order_id. but here not getting product options getting ...
0
votes
0answers
48 views

Get reward points via REST API

Is there an API call to retrieve reward points for a customer please in Magento 2? Can't seem to find it. Thanks, Kurt
0
votes
1answer
25 views

Get cart item details for logged in customer Magento REST API

I want to get the list of items in a customer's shopping cart through REST API. I am using GET /V1/carts/mine but not getting the shopping cart item list. What will be the best way to get it with ...
0
votes
0answers
68 views

Upgrading from 2.4.1 to 2.4.2 broken API

Since upgrading from Magento 2.4.1 to 2.4.2 a simple PUT to set a value in a custom attribute now fails with a 500 error. {"entity":{"entity_id":26481,"extension_attributes&...
0
votes
2answers
58 views

/index.php/rest/V1/modules File not found after upgrading to magento 2.4.2

after upgrading to 2.4.2 there is a problem with rest api the url /index.php/rest/V1/modules responds with "File not found" the url /rest/V1/modules works well https://magento-560832-1812590....
0
votes
1answer
113 views

Magento 2 Rest API getting "The signature is invalid. Verify and try again on some installations but works in postman

I have a small php script that fetch some product information from the Magento 2 Rest API. The problem I am facing is that it works fine for some Magento 2 shops, but not others. For some shops I get &...
0
votes
1answer
21 views

First product added to new cart returned with no JSON “price”

This is my first time currently working with Magento. I am developing a custom web shop solution for a machine shop with React.js. My issue is the following: After having completed a purchase and ...
0
votes
1answer
63 views

REST API: Consumer is not authorized to access %resources

I'm in the middle of finishing a Magento 2 store for a client. The last I had on my to-do list, was connect Magento to their accounting software through the REST API. However, apparently there's some ...
0
votes
0answers
25 views

Magento 2 How to get products details with qty calling products endpoint?

Magento 2 How to get products details with qty calling products endpoint? I need to get the qty from the products endpoint.
0
votes
0answers
10 views

How to extend customer rest api request and response

Here i want to modify the current request body and response body for customer rest api. How current rest api working is like here. Request Json. { "customer": { "email":&...
0
votes
0answers
17 views

How to create custom customer attribute in Magento 2.4.1 and update and get data via REST API

How do I create a custom customer attribute in Magento 2.4.1 and then update that attribute value via REST API and then get the attribute value with all other customer data via REST API?
0
votes
1answer
719 views

Magento 2.4 REST API for Create Cart Not Working

I am trying to create the magento default REST API for add simple product to cart like this way. First I generate the customer token with the use of this API Call. https://www.domain.com/rest/default/...
0
votes
0answers
40 views

Magento 2 How to get Custom Attribute Value Of Order Using Rest API

I have created one attribute for order named "custom_fee" and it is showing okay in magento orders frontend as well as backend but when I tries to access order data with rest API , I am not ...
0
votes
0answers
30 views

Magento 2.3.5-p1 Special Price still displayed after expiration

We are facing a problem with Special Price End date on Magento 2.3.5-p1. We are updating the prices using the Rest API on a multi store English & Greek. When we add the special price with the ...
0
votes
0answers
17 views

MAGENTO 2.3 API: Consumer is not authorized to access %resources Magento_Sales::actions_view

I have moved a website to another server with the same features and the same version of php but the api calls no longer work. The calls do not work for me neither in Postman nor in curl. And postman ...
0
votes
0answers
140 views

Curl request doesn't login to my API, why?

I've been working on this code to log in to my API. But every time I try to login using CURL I get the following error {"message":"The request entity's media type 'multipart/form-data' ...
0
votes
0answers
40 views

Creating Products returns %fieldName is required error

I'm trying to create products in magento2 via the Rest API. The POST request works fine when doing it with postman, but when the request is exported to php curl, Magento answers with: {"message&...
0
votes
0answers
7 views

async operation still lock on old error

I've started to call this async endpoint POST /async/V1/products/base-prices with a proper payload. All requests have worked in the right way. I've provided a missing SKU and starting from this ...
0
votes
0answers
82 views

Modify existing custom attribute value of category in magento 2.4 using rest API

As the title says, I want to modify the value of a custom attribute of each of my categories in magento 2.4 and I want to do this using REST APIs. I am using this endpoint https://magento.redoc.ly/2.4....
0
votes
1answer
30 views

Logs full of /rest/V1/analytics/link 500 errors

Working on a new M2.4 store and we've got the store blocking access to all visiting IPs except ours. Our logs are filled all day, every day with hundreds of this error: Error 52.73.51.61 500 GET /...
3
votes
1answer
385 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
31 views

Magento 2 API invoice items showing as double

For some reason on a invoice more QTY is returned than what exists in the items array. It seems to only do this on configurable products however how should one handle this from the API? Full example: ...
1
vote
0answers
323 views

2FA REST API using Postman

I have followed the steps at: https://devdocs.magento.com/guides/v2.4/security/two-factor-authentication.html to get a token in order to use Postman to fetch Magento 2 REST endpoints e.g. products, ...
0
votes
1answer
131 views

Rest API response for api inside the extension module appends square bracket

I have a rest api created in php. Sharing a sample here: public function getApiData(){ $returnData = ["a"=>"A","b"=>"B"]; header("Content-Type: ...
3
votes
1answer
386 views

Magento 2 Stripe SCA (3d secure) rest api integration

I'm creating a pwa based on magento 2 rest api. I have installed stripe/stripe-payments official module to integrate stripe payments. Everything works fine without SCA payments. i have tried to ...
1
vote
0answers
101 views

Magento 2 - Create order using REST API - Third Party Payment Gateway such as Paypal or other 3rd party payment gateway

I need to use the Magento REST API to create an order from an API. In my case, I am trying to implement the payment directly using API to Magento. What I need to do is to create an order by setting ...
1
vote
1answer
37 views

Facets in Magento 2 Rest API for search. Are they available ? how do i make them available?

How do i make facets available in Magento 2 ? Currently i do not think it's supported in the Search Rest APIs
2
votes
3answers
240 views

get orders by date using REST endpoints

I'm trying to get all orders on a specific date, as an example, I'm trying to get all orders at 28th of June 2020. But my problem is that I get a total count of 0 even though there's orders at that ...
0
votes
0answers
26 views

Magento 2 Custom REST API Update

If Only part of the data is to be updated then is sent the following way: { "entity": { "entity_id": 1, "is_enable": 1, "name": "Hello", ...
1
vote
1answer
126 views

Send email to customer on order update via rest API

I'm using /rest/V1/orders POST WebService to update an existing order. Is there any way to send an email to customer when the order is updated this way? Thanks in advance !
0
votes
1answer
83 views

magento 2 resource model “save” to implement service contract persistence operations. not saving POST empty

I have a custom rest api for PUT and POST that the post data is an empty array therefore not saving as it's empty can anyone advise why or what could be wrong? /** * Save data. * * @...
3
votes
1answer
107 views

Is it possible to override vendor/magento/module-sales/Api/Data/OrderAddressInterface.php

Is it possible to override vendor/magento/module-sales/Api/Data/OrderAddressInterface.php as I want to get sales order address custom column value in order REST API.
0
votes
1answer
514 views

Sales order address custom attribute value in Order Rest Api

I have added door number custom attribute to sales order address table. But I'm not able to get the vale in Order REST API. Please help me on this
0
votes
1answer
130 views

Error on Update inventory REST API? when SKU has a “#” in it

I'm trying to update the inventory of our products from our ERP using the rest api. I have run into an issue when the SKU has a pound "#" in it. A URL like: https://magento.xyx.com/rest/V1/...
0
votes
1answer
139 views

Get All orders using rest API with specific feilds

I am using this http://domain.com/index.php/rest/V1/orders/7??fields=billing_address,customer_firstname,customer_lastname it return the billing_address,customer_firstname,customer_lastname of ...
0
votes
1answer
456 views

Magento 2.3.4 Add custom product attribute value (text-swatch) via REST API

Using Postman, with the following GET request I receive data from my custom product attribute: rest/V1/products/attributes?&searchCriteria[filterGroups][0][filters][0][field]=attribute_id&...
0
votes
1answer
844 views

How to add Review using REST API in magento 2.3

I am trying to find a rest api to add review. But it seems like magento doesn't provide api for that.I created custom api's to get review and rating using: https://www.mageplaza.com/devdocs/get-...
1
vote
1answer
446 views

Magento 2 Access REST API

I tried looking for answers before posting but couldn't find any. I hosted my magento site in siteground and added integration. Then I tried accessing the API using Postman but I get either 401 ...

1
2 3 4 5
17