Skip to main content

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.

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

How to create an order with Configurable Product with Multiple options(same parent with different option)

I'am trying to create an order with Rest API in magento2 , Here i have a configurable product with id 100 and have some child product with different attribute value, here is the payload what i have ...
amith lal's user avatar
  • 790
0 votes
0 answers
23 views

How to add custom content to products endpoint?

In magento 2.4.6 I have a custom module that adds some configuration in the admin panel. I also have a Helper/Data.php with methods to collect the value of each field of this configuration. On the ...
Noty's user avatar
  • 76
0 votes
1 answer
28 views

Update / create FPT using API

Is it possible to update / create FPT (fixed product tax) for a Magento 2 product using the REST API? I have not been able to find anything about it. Current way to administrate in bulk is either ...
Andreas's user avatar
  • 323
0 votes
1 answer
23 views

Setting Custom Property in customer using APi in Magento

I'm passing a custom property value using an API. The problem is that I am sending "Device Registration" as the origin ( custom property ) but the value that is being set in as "D365FO&...
hoor Iqbal's user avatar
0 votes
1 answer
47 views

How to disable Recaptcha in REST APIs?

I am using magento 2.4.7 but when i enable repaptcha it works fine on the website but in APIs it gives me an error "message": "ReCaptcha validation failed, please try again", I ...
Syed Hassan Zamir's user avatar
0 votes
1 answer
43 views

How to create REST API endpoints for core_config_data table?

I am working on an integration extension for Magento 2. I would like to create API endpoints for core_config_data table, because I would like to insert a html script to header of each specific store ...
Krumpel's user avatar
1 vote
0 answers
30 views

Magento2.4.4p4 REST API Error 'Class string does not exist'

I had this issue during when I create a custom Rest API in fresh magento 2.4.4p4 As you can see the error I get is Class string does not exist Below are my code folder structure, which I found to be ...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
53 views

Magento2.4.4p4 REST API Error 'Class array does not exist'

I had this issue during when I create a custom Rest API in fresh magento 2.4.4p4 As you can see the error I get is "Class array does not exist" Below are my code folder structure, which I ...
Mohd Farhan Bin Ramli's user avatar
0 votes
2 answers
36 views

Model Class not found error in Magento REST API - not able to identify any issues in this

Error: Class "Test\CsvImport\Model\Import" not found in /var/www/html/testproject/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121 This is the error I am getting. Here ...
NotEqual's user avatar
0 votes
1 answer
18 views

Magento API Date filter

Is it possible to create a Date filter to fetch orders created only in last two days using API , without hard-coded values ? Something like this: http://<magento_host>/rest/V1/orders? ...
Magento_noob's user avatar
0 votes
0 answers
11 views

Magento 2.4.4p4 Rest API Trouble to Confirm Customer Registration

I am having trouble to activate this API to confirm user email upon registration Request : { "confirmationKey": "nVU3KFeGFg3Zn6L1oZlUbFaPclx3BOWN" } Response : { "...
Mohd Farhan Bin Ramli's user avatar
0 votes
0 answers
17 views

REST API OAuth - Can we directly login without Consumer key and secret

We are using Magento EE 1.14 code. Requirement : We Need to create an REST API OAuth direct login extension to make the login. that only require username and password (without need the consumer key ...
Baby in Magento's user avatar
0 votes
0 answers
12 views

Getting customer catalog requests using REST API

Our company has a customer form that allows customers to put in a request for a printed catalog of our products. While that information can be exported manually I want to be able to pull the ...
j.hull's user avatar
  • 101
0 votes
2 answers
38 views

Get customer address attribute value in order data using REST

I have a Adobe commerce cloud platform and created one customer address attribute from the admin that is default feature of the Commerce cloud. Now it works fine. It works well on the customer account ...
Sunny Rahevar's user avatar
1 vote
4 answers
105 views

How to fetch and store external api access token in magento2

I am trying to integrate my external API in my magento 2.4.6 instance. I Used Guzzlehttp to make and fetch the data and handle the request. The problem is, I have to provide Username & password to ...
Haarish Infant Raj's user avatar
0 votes
0 answers
19 views

Magento 2 custom API working for Bearer Token and not working for OAuth1.0

I have created a custom API endpoint to retrieve data from a custom table in magento 2. Webapi.xml file content <route url="/V1/bs-customer-price-information/:email/:website_id" method=&...
Mujahidh's user avatar
  • 2,813
0 votes
1 answer
27 views

multi shipping order place using rest api in magento 2.4

I would like to know which APIs we need to use and the parameters required to place multiple orders as a guest customer. Thank you in advance for your assistance.
Kushal Dani's user avatar
  • 2,134
0 votes
1 answer
31 views

The "oauth/consumer/enable_integration_as_bearer" path doesn't exist

I am trying to reset API but when I going to the path Stores > Configuration > Services > OAuth > Consumer Settings > Allow OAuth Access Tokens to be used as standalone Bearer tokens I ...
Haider Mohammed's user avatar
0 votes
1 answer
41 views

Can we configure webhooks in Magento using its REST API

I'm currently exploring the capabilities of Magento's REST API for integrating with external systems, and I'm interested in setting up webhooks to receive real-time notifications for specific events ...
Ibrar Akhtar's user avatar
0 votes
1 answer
25 views

Magento 2 : How To Find Magento Tax Setting

How to find the order is inclusive of tax or exclusive of tax through REST API?
Manisha G's user avatar
0 votes
2 answers
26 views

Magento order notification

I want to retrieve order details whenever an order is placed or updated in Magento. Currently, I am working on integrating orders with CRM. Therefore, whenever an order is created or updated in ...
Manisha G's user avatar
-1 votes
1 answer
47 views

Magento 2 : Create event observer when order placed and updated [duplicate]

In Magento 2, How to create event and observer for the REST API when an order is placed or updated. Is this possible to create event and observer for REST API?. If not, could anyone provide me with ...
Manisha G's user avatar
0 votes
1 answer
25 views

How to fix duplicate id's in multiselect options

Via the api, multi select options were accidentally inserted as duplicates. So instead of 11111,22222 being stored in catalog_product_entity_text.value it was submitted as 11111,22222,11111,22222 and ...
Tschallacka's user avatar
0 votes
0 answers
17 views

Not getting the difference changes on comparing two git branches in same repo using Github API

I am able to get difference between two branches stage and master under same repo on web version via below web URL. https://github.com/:username/:repo/compare/master...staging but not getting the ...
Shashank Kumrawat's user avatar
0 votes
0 answers
21 views

Update REST API Payload using before Plugin

Can I use before plugin in Magento 2 to update Customer Creation Payload? Reason: In Magento, we have one custom customer attribute of dropdown type as you can see below. Now the API is working fine ...
Muhammad Saeed Khan's user avatar
0 votes
1 answer
27 views

Shipment comment

I am trying to update a comment for an existing shipment, but I keep getting err mssg: {"message": "Could not save the shipment comment."} API and example I'm using are : Method:...
Magento_noob's user avatar
0 votes
1 answer
47 views

When creating an order via api, the salable quantity does not decrease

I am using the API /rest/V1/orders/create, but when creating an order, the saleable quantity does not decrease. (Magento ver. 2.4.6-p3 community edition) I am using this payload: { "...
Danilo Duarte's user avatar
0 votes
0 answers
19 views

Api\SearchCriteriaInterface returning products in anchor categories (or not)

Using a module for a mobile app and this code is retrieving search results. However it's completely ignoring anchor categories and I've spend most of the afternoon trying to figure out why not. There'...
DomiGuy's user avatar
  • 31
0 votes
0 answers
19 views

CMS module don't have the getExtensionAttriubtes and setExtensionattributes

I am working on REST API for the cms block and adding some custom fields in the cms_block table. However, I didn't see the methods getExtensionAttriubtes and setExtensionAttriubtes in the CMS Block ...
Arshad Muhammad's user avatar
0 votes
0 answers
24 views

Get salable quantities for all products via REST API

For synchronizing inventory levels with the external ERP, I need to know the quantities and booked quantities of all products. I can easily get quantities of all products with one request (rest/all/V1/...
Alex's user avatar
  • 101
0 votes
0 answers
7 views

Get salable quantities for all products via REST API

For synchronizing inventory levels with the external ERP, I need to know the quantities and booked quantities of all products. I can easily get quantities of all products with one request (rest/all/V1/...
Alex's user avatar
  • 101
1 vote
1 answer
100 views

The consumer isn't authorized to access %resources. Magento 2.4.5-p1 on staging environment

In the testing environment, it gives below errors, { "message": "The consumer isn't authorized to access %resources.", "parameters": { "resources&...
Nilay Kumar's user avatar
0 votes
1 answer
173 views

How to get all orders with a specific SKU using the REST API?

I’m trying to figure out if a product was bought and when, but other than looping over all orders I don’t see how I can do that. I saw this question but I need to do it through the REST API. Any idea?
bfontaine's user avatar
  • 122
0 votes
1 answer
47 views

unable to update custom attributes to product using rest API

I have created the custom attribute through rest API and it is also reflected in magento admin, after which when I tried to update the product with the attribute code.it won't worked. Below is my ...
manikandan.p's user avatar
0 votes
1 answer
34 views

Update custom attributes to product using rest

$data = [ "product" => [ "sku"=> $productsku, // "attribute_set_id"=> 4, //"attribute_set_id" => $mage_attr_set_id, ...
manikandan.p's user avatar
0 votes
0 answers
25 views

Magento 2 Email set as Optional on Create Customer Account API

I have created one module that overrides Magento's default create customer account API. Now, I want to set the email parameter as Optional. Magento uses the Below API to create a Customer Account. {{...
Keval Chauhan's user avatar
2 votes
0 answers
39 views

Professional Couriers Order Tracking REST API Issue

We have used Professional Couriers REST API to get shipping tracking information. But on my end, only three-time correct responses were returned after that given below error. Please check the ...
Sutariya Parth's user avatar
0 votes
0 answers
85 views

Magento 2.4.6 search synonyms doesn't work on REST API

I am trying to make use of search synonyms. I have created a synonym group, and added synonyms comma separated, and afterwards ran full re index. http://website/rest/V1/products?searchCriteria[...
Aniruddha Ray's user avatar
2 votes
1 answer
27 views

Issue with ERP API PUT Request: Unintended Update of `warranty_type`

On Magento 2.4.6: When our ERP executes an API request on the PUT method /all/V1/product/:sku with the following JSON content: { "product": { "custom_attributes": [ { ...
Kallard's user avatar
  • 21
1 vote
0 answers
17 views

ProductRepositoryInterface plugin how to join another table with sort option?

I need to add the most-viewed and best-seller sort options into the rest/v1/products API. I created a plugin to add sort condition for following of below link How to add custom sort like Most View ...
Devidas's user avatar
  • 3,368
1 vote
2 answers
181 views

How to add custom sort like Most View and Best Selling products in API of Product List in Magento 2?

How do we add custom sorts like Most View and Best Selling products in the API of Product List in Magento 2? I need to add the most views and best-selling products in /V1/products to this API using ...
Devidas's user avatar
  • 3,368
2 votes
0 answers
131 views

How to use Magento2 Recaptcha in GraphQl APIs

I want to Use Captcha / Recaptcha in my Graphql APIs I got this link for protected mutations It only shows to insert it in headers but it won't do anything in Graphql apis and for rest apis it gives ...
Syed Hassan Zamir's user avatar
1 vote
1 answer
121 views

Magento 2.4.6. Multiple data output problem

Here's my situation: When calling the endpoint, I receive the following data: { "ean": "0744963634260", "price": "400.000000", "update_at":...
User's user avatar
  • 47
0 votes
0 answers
14 views

Magento AddToCart after place order due to delay in response

We have recently faced strange issue related to an specific order placed from iOS. We are using flutter and utilizing Magento restAPI. There is an order having grand total of 379 but the amount sent ...
Abdul Rafay's user avatar
0 votes
0 answers
23 views

Edit product via POST /products API

I’ve enabled single-store mode and created a new product using the async/bulk/V1/products functionality (\Magento\AsynchronousOperations\Model\MassSchedule). Initially, all attributes of this product ...
Adrian Pop's user avatar
0 votes
0 answers
19 views

Tracking User Interactions, Saving them to Database Table and then send it to GA4 . Events and data events are saved as null in my table

This is the function that captures some data protected function captureRequestData(RequestInterface $oRequest, $aPostParams) { return [ 'request' => [ '...
Enisa Abazi's user avatar
0 votes
1 answer
43 views

Magento 2 api for layer navigation filters available?

<?php namespace handymust\Filter\Model; use handymust\Filter\Api\FilterInterface; use Magento\Catalog\Model\Layer\Resolver; use Magento\Catalog\Model\Layer\Category\FilterableAttributeList; use ...
Faisal Khan's user avatar
0 votes
0 answers
50 views

Rest api carts/mine/set-payment-information and additional_data

When I follow the rest API docs and post some data to the carts/mine/set-payment-information endpoint e.g. { "paymentMethod": { "method": "purchaseorder", ...
AP87's user avatar
  • 197
0 votes
2 answers
105 views

API searchCriteria not working with "FROM and TO" for "created_at" field, fetching the wrong results

Im trying to get data for orders that created between 2 dates(2023-10-05 - 2023-10-01). Im using the search condition type FROM and TO but its not fetching the right details. This is what im trying: ...
Almog Lahav's user avatar
0 votes
0 answers
81 views

Sync products between 2 stores with REST API Magento 2

I am a trying to integrate products with REST API. We have 1 master Magento store where we have all the products, and have plan for other Magento stores which will integrate with Master store and ...
Preet's user avatar
  • 1

1
2 3 4 5
38