All Questions
1,856 questions
0
votes
1
answer
27
views
Adding Groped Products items to the cart using the Api
I am using this endpoint :
http://mage.local/rest/V1/carts/3747/items
and this is the body:
{
"cartItem": {
"sku": "8717752030514",
"qty": 1,
&...
0
votes
1
answer
28
views
How to save products in bulk using API?
I am new bee in API development and need to save bulk products in my Magento using API.
Do I need to create custom API module or is there any default API to save the products in magneto2?
What are the ...
0
votes
0
answers
11
views
Add To Cart API and Read From Cart API, unable to retrieve configurable product variant - Magento 2.4.4-p4
So I was creating an add to cart API and read from cart API
The problem that I encounter is unable to retrieve variant of configurable product
Below are my addToCart API code
/**
* POST add to ...
1
vote
0
answers
76
views
The consumer isn't authorized to access %resources. Magento 2.4.7 & 2.4.7-p3
The consumer isn't authorized to access %resources.
{
"message": "The consumer isn't authorized to access %resources.",
"parameters": {
"resources": "...
0
votes
0
answers
5
views
Get CartID of existent cart
Yes, I can create cart and get ID in post answer, but how to get the id of existent cart to manipulate with the items, for example. Preferred way is REST API, may be cookies, storage, etc, make be ...
0
votes
0
answers
17
views
API with price filter and configurable products
I'm working with the Magento 2 API and can't work out why when using a price filter configurable products are being filtered out completely from the results. I remove the price filter and the products ...
0
votes
1
answer
28
views
Magento API: Set 'Use Default Value' for Cost on Empty Fields
I have two stores and want to set the "Use Default Value" option for the cost field when its value is empty. This is functioning correctly in the admin panel. How can I achieve this using ...
0
votes
1
answer
652
views
API keeps getting hacked, how is it still compromised?
On a sizeable site, for the third time now, we're seeing this type of attack:
A request to GET /rest/V1/cmsBlock/search to find out some block IDs.
A few minutes later there is PUT /rest/V1/cmsBlock/...
0
votes
2
answers
80
views
WorldPay Payment method REST API for Transaction/Payment details in Magento 2.4.7
Has anyone worked with the WorldPay Payment Method API?
I've successfully installed the WorldPay Payment Method, but I'm struggling to find the API for retrieving transaction or payment details. ...
0
votes
0
answers
26
views
Is it possible to use Magento's import functionality to create multiple configurable products using REST api
I want to create a custom REST api where we can pass multiple configurable products data (similar to what we use in import.csv), and it will create the configurable as well as the child products based ...
1
vote
0
answers
17
views
Magento provider for Apache airflow
I'm trying to create magento provider for Apache airflow.
I need community support to merge that pull request.
https://github.com/apache/airflow/pull/41556
Please let me know who are interested to ...
0
votes
0
answers
12
views
magento oauth is not working with apache airflow
I want to use Apache airflow for automation tasks related to Magento, so I'm trying to create an order sync.
https://github.com/sivajik34/magento-airflow
below oauth authentication is not working.
...
0
votes
0
answers
21
views
How to upload a new attribute via API?
I want to create an attribute from my android app written in Kotlin. For the explanation I am going to use Postman. Following is the code I use to create an attribute:
Post method:
https://mydomain....
0
votes
1
answer
69
views
How to make oauth1.0 request using guzzlehttp
I am trying to connect two magento2 instances through REST API.
I have already created Endpoints.
I am using GuzzleHttp\Client to make request.
How to implement Oauth 1.0 Using guzzlehttp.
Any other ...
0
votes
2
answers
49
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 ...
0
votes
0
answers
31
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 ...
0
votes
1
answer
43
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 ...
0
votes
1
answer
38
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&...
0
votes
1
answer
173
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 ...
0
votes
1
answer
62
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 ...
1
vote
0
answers
59
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 ...
0
votes
1
answer
79
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 ...
0
votes
2
answers
45
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 ...
0
votes
1
answer
28
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?
...
0
votes
0
answers
17
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 :
{
"...
0
votes
0
answers
19
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 ...
0
votes
0
answers
16
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 ...
0
votes
2
answers
92
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 ...
1
vote
4
answers
345
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 ...
0
votes
0
answers
29
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=&...
0
votes
1
answer
43
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.
0
votes
1
answer
67
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 ...
0
votes
1
answer
165
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 ...
0
votes
1
answer
26
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?
0
votes
2
answers
32
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 ...
-1
votes
1
answer
52
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 ...
0
votes
1
answer
47
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 ...
0
votes
0
answers
24
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 ...
0
votes
0
answers
26
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 ...
0
votes
1
answer
40
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:...
0
votes
1
answer
57
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:
{
"...
0
votes
0
answers
23
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'...
0
votes
0
answers
25
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 ...
0
votes
0
answers
28
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/...
0
votes
0
answers
16
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/...
1
vote
1
answer
207
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&...
0
votes
1
answer
312
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?
0
votes
1
answer
90
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 ...
0
votes
1
answer
35
views
Update custom attributes to product using rest
$data = [
"product" => [
"sku"=> $productsku,
// "attribute_set_id"=> 4,
//"attribute_set_id" => $mage_attr_set_id,
...
0
votes
0
answers
35
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.
{{...