Questions tagged [rest]

Denotes questions related to the REST API on Magento

Filter by
Sorted by
Tagged with
0
votes
0answers
7 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 /...
2
votes
1answer
45 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
11 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: ...
0
votes
0answers
40 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
21 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
14 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
18 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 ...
3
votes
1answer
85 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
37 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
22 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
49 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
20 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
21 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
28 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
89 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
127 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
63 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
47 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
228 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
222 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
21 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/...
0
votes
1answer
62 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
43 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
229 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
904 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
0answers
35 views

REST call to change store level attribute values remove “Use Default Value” settings on other attributes

I am working on a Magento 2.3 site that has a number of different stores. If I look at the details of a particular product in a particular store in the admin screens, I can see that some of the ...
0
votes
1answer
50 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. ...
0
votes
0answers
100 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
374 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
160 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
32 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
26 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][...
0
votes
0answers
18 views

Magento2.3.3 : Category API returns null attributes for the entire tree

Rest Api : (rest/all/V1/categories) Method get { "id": 1, "parent_id": 0, "name": null, "is_active": null, "position": 0, "level": 0, "product_count": null, "...
1
vote
1answer
251 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
94 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
109 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
376 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 = ...
0
votes
0answers
15 views

Magneto 2 Rest API out of stock not working in search Criteria parameter

In searchCriteria Result items are empty while add stock parameter only in stock It get not any result in these param http://www.thepetstore.ae/rest/V1/products?searchCriteria[filterGroups][3][...
2
votes
1answer
1k 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
430 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
422 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
168 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
vote
0answers
132 views

JSON Serialize DateTime in Web API

A lot of my Web API interfaces use DateTime return types or parameters as follows. interface TestInterface { /** * @param \DateTime $value * @return void */ public function ...
1
vote
1answer
28 views

magento2 rest api ship to name not adding after creating shipment

Ship to name is not adding while creating shipment using Rest Api with below api url: http://127.0.0.1/magento225/rest/V1/shipment/ Body: { "entity":{ "orderId":9, "store_id":1, "items":[...
0
votes
1answer
177 views

How to set Rest API oAuth token expire in minutes or seconds

How to set Rest API oAuth token expire in minutes or seconds in admin. Currently it's showing hours and it will not accept like 0.5(for 30 minute etc) magento2. Any One know about this, please help me ...
0
votes
2answers
151 views

Magento 2 is it possible to get Magento Version via REST API

I want to use different functionality depending on the Magento version. Is it possible to get version via REST API?
2
votes
1answer
133 views

How to get Magento 2 Customizable Options with REST API

I have customizable options in configurable products. How can I get it via REST API?
0
votes
0answers
14 views

Is it possible to somehow return a value parameter in a POST request using Magento2?

I want to return value from magento2 when creating an attribute option, I make such a request with method POST { "option": { "label": "Pavel", "value": "...
0
votes
1answer
52 views

Search products with manufacturer names

I've been using the Search API to fetch the list of products that match a query, but I've seen that manufacturers are not returned as part of the
1
vote
0answers
62 views

REST API: Setting Item Quantity / Need to Get Current Reserved Quantity of an item

Working on using the Magento 2.3 Rest API to set the Quantity of an item available based on a separate datastore. I realize that the formula for getting the Total Salable quantity is based on the ...

1
2 3 4 5
16