Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
112 views

Magento 2.3 Disallow Post to /V1/Customers

I am battling spam accounts being generated via Magento's REST API for customers. Someone keeps hitting my site with Postman and dumping in hundreds of fake accounts. I have set Allow Anonymous Guest ...
user86226's user avatar
0 votes
2 answers
57 views

Do a action before insert products by endpoint magento 2

I wanna make a verification before inserting products on my Magento 2.3 in the default endpoint. Here is a sample: I post a product on rest/default/V1/products endpoint, but I want to check if this ...
Raphael Cordeiro's user avatar
0 votes
0 answers
331 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' ...
Zyzzx's user avatar
  • 81
1 vote
1 answer
2k views

How to reduce Magento 2 rest api performance time?

I have created some custom rest api's and using Magento's default rest api's. I want to reduce the loading time of the api, as I have custom api's too so the request time and response time is quite ...
paras surya's user avatar
0 votes
2 answers
3k views

Magento 2.3.5 - API error The "array" class doesn't exist and the namespace must be specified

We get the following API error on our Magento 2.3.5 store; The "array" class doesn't exist and the namespace must be specified. Verify and try again. More info; <![CDATA[#0 /vendor/...
JGeer's user avatar
  • 1,422
0 votes
2 answers
2k 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
user12992122's user avatar
3 votes
2 answers
2k views

How to call a 3rd party API from a controller? Magento 2

I built a custom module. Its admin tables with CRUD functionality. I am putting a new button on the grid via the Ui_component listing XML file. When this button gets clicked I want to call a 3rd party ...
R.P.'s user avatar
  • 99
2 votes
1 answer
436 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.
Sangeeta Chandaliya's user avatar
1 vote
0 answers
203 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 ...
KeithRStolte's user avatar
0 votes
1 answer
2k views

Magento 2 set order extension attributes via API

Is it possible to set an order's extension attribute value when creating the order via the API or is there an appropriate API endpoint to update an existing order with this information? For example ...
Matthew's user avatar
  • 183
0 votes
1 answer
381 views

Magento 2.3 call api rest extern

I created a Magento 2.0 module and it calls an external web service with the command \Zend_XmlRpc_Client. /* REST */ $client = new \Zend_XmlRpc_Client($this->_scopeConfig->getValue('akria_store/...
S8N's user avatar
  • 1
1 vote
1 answer
685 views

Payment information API returns 400 error

Link http://protectcovers.ga/rest/store_view_eu/V1/guest-carts/ddukH6HL2TlFsm9WkJmOkMDSqmkiUfbW/payment-information I tried to send the next json: { "cartId": "ddukH6HL2TlFsm9WkJmOkMDSqmkiUfbW", ...
Ashen One's user avatar
  • 433
1 vote
0 answers
39 views

Create customer with default addresses via API

Is it possible to create customer via API and set default billing and shipping address at once ? I know that in customerCustomerRepositoryV1 and customerAccountManagementV1 are fields like ...
Konrad Siamro's user avatar
2 votes
1 answer
2k views

What is Asynchronous Web APIs in Magento 2.3?

In Magento Open Source 2.3.0 Release Notes Magento introduced Asynchronous web endpoints in Release Notes. Example PUT /async/V1/products/24-MB01 payload { "product": { "price": 29 } } ...
Aditya Shah's user avatar
  • 7,647
4 votes
1 answer
1k views

Get tax class ID by tax rate with REST API

I'm trying to get a tax class ID with only the tax rate value, all with the API. I found that I need a first request that returns me the tax rate ID : /rest/all/V1/taxRates/search?searchCriteria[...
G. BARRANCO's user avatar