Questions tagged [rest]

Denotes questions related to the REST API on Magento

Filter by
Sorted by
Tagged with
0
votes
0answers
17 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
8 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
11 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
2answers
309 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
24 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
18 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
9 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
72 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
23 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
5 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
32 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
0answers
15 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
140 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
25 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
163 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
41 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: ...
0
votes
0answers
18 views

PayPal Payflow Pro REST API

I am struggling to find how to use the carts/mine/payment-information REST API with PayPal Payflow Pro, which uses either a vault ID to reference a stored card in the vault, or with a new credit card ...
0
votes
0answers
29 views

Creating an order using REST with default shipping address

I read this document as reference to create an order using REST. But this tutorial have to always add shipping address. So, I use POST <host>/rest/V1/addresses to add / edit customer address and ...
4
votes
1answer
211 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
57 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
27 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
106 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
21 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
42 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
52 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
99 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
289 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
97 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
83 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
340 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
454 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-...
0
votes
0answers
22 views

Create invoice for some items (Magento 2.3)

Good morning. Now I can create invoice: just run this http://magento.local/rest/V1/order/81241/invoice It creates invoice according this https://devdocs.magento.com/guides/v2.3/rest/tutorials/...
1
vote
1answer
158 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 ...
0
votes
0answers
46 views

Magento 2 Rest Api Get Data

I have added 3 fields into Magento 2 Order Rest API using the "Extension Attributes". All these 3 fields are visible using order id call rest API: https://www.example.com/rest/default/V1/orders/...
1
vote
2answers
284 views

Magento 1: Where is oauth_admin.php

The rest documentation for Magento 1 make mention of an oauth_admin.php file $callbackUrl = "http://yourhost/oauth_admin.php"; $temporaryCredentialsRequestUrl = "http://yourhost/oauth/initiate?...
0
votes
2answers
1k views

Magento 2 Get Value of Custom Attribute on Magento 2 Rest API V1/orders/items

I am trying to get the Custom Attribute I have in the sales_order_item to display on the rest/V1/orders/items API call. I was able to get the Attribute to display on the rest/V1/orders API call. Using ...
0
votes
1answer
71 views

REST API : Magento 2 : Without admin token how i can registered new user?

I am using bearer token for rest API authentication in Magento2.3.2 but I am facing one issue, while registering the new user, admin authentication token is required while registering New user by API. ...
2
votes
0answers
160 views

How do I assign an attribute to a group using the REST api?

I know how to create a configurable product based off an existing attribute from this tutorial on the dev docs, and I know how to create a new attribute from this answer on another question. When I ...
0
votes
2answers
554 views

M2 REST API: Creating shipment with products from MSI source

I am using MSI. When trying to create a shipment with a source code, the shipment uses the "default source" instead of the one I'm providing. My Request: [POST] /rest/default/V1/order/5/ship { "...
1
vote
2answers
233 views

Custom Rest API for custom table not wroking

My webapi.xml is below. <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"&...
1
vote
0answers
45 views

SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)

I've created Custom Rest API endpoint which works fine on my local Magento instance but I'm getting an exception on the production server "#0 [internal function]: MMA\CustomApi\Model\PayPal\...
1
vote
0answers
29 views

quoteCartRepositoryV1 serach by nested field

I would apply searchCriteria to /V1/carts/search in order to get all carts which contain specific sku. I've performed this query https://shop.dicanio.it/rest/all/V1/carts/search?[filterGroups][0][...
1
vote
1answer
426 views

magento 2 api. create product with multiple colours and sizes with different image and stock for each variant

I am a noob to the Magento ecosystem. I have read the documentation for the Magento 2 api and understand that I have to create a configurable product but I am not understanding the flow for creating a ...
0
votes
1answer
113 views

Getting 404 error while configuring REST API using RestClient in Magento 1.9

When I try to initiate oauth for getting oauth tokens with callback in my localhost, it throws 404 page not found error. I configured consumer key and secret and with oAuth 1.0 and using GET method. ...
1
vote
1answer
213 views

Bulk Actions Log

After testing Rest Async-Calls with RabbitMQ-Server, all worked fine. In the Magento-Database the table "magento_bulk" and "magento_operation" is full with data from the Rest Async-Calls. But in ...
0
votes
1answer
461 views

Create Product at Magento 2.3.3 Using REST in C#

I'm trying to create simple Product by Rest Api status code is ok Although I can not see the product in Magento2, Here is my code : Token = this.GetAdminToken("admin", "password"); var request = ...
2
votes
1answer
2k views

Extension attribute in quote item

Hello everyone i would like to add an extension_attribute to quote item in magento 2. I create extension attribute: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
4
votes
1answer
575 views

Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me. I have ...
0
votes
1answer
577 views

Magento2 : Set Customer Custom Attribute Value Using Rest API

Property "Mobilenumber" does not have accessor method "getMobilenumber" in class "Magento\Customer\Api\Data\CustomerInterface". Whenever i am trying to set customer custom attribute value i am ...
2
votes
1answer
185 views

How to Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.

1
2 3 4 5
16