Questions tagged [api]
An application programming interface (API) specifies how some software components should interact with each other.
1,712
questions
0
votes
0
answers
24
views
How to integrate Google Merchant Content API on Magento 2
I saw that products on Google Merchant can also be passed on via Content API. I have read a few things about how this type of integration works. But the question is, how do I integrate Google Merchant'...
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
43
views
Magento API speed?
We are trying to do API product import into Magento and getting out such performances:
Threads = 3 ( no web lags )
60min = 806 sku
CPU load = 22-25%
Threads = 10 ( web starts to lag )
60min = 1465
CPU ...
0
votes
0
answers
25
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
28
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
48
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
42
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 ...
2
votes
1
answer
39
views
Calling Thirdparty api to Magento 2 checkout page
We have third party application,we are getting data from that application with the help of API. So here that application will provide one invitation code.Using invitation code will enter to the ...
0
votes
1
answer
58
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
0
answers
21
views
Klaviyo API Retirement on June 30th
I got an email that says we will be affected by the API retiring in a week. We are running Magento 2 version 2.4.5 and Klaviyo version 3.0.11. If this chart is correct, then we need to upgrade to at ...
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
1
answer
43
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
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 ...
0
votes
0
answers
23
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
0
answers
82
views
Send data from Magento to ERP using RabbitMQ
I need to integrate Magento 2 with Odoo ERP by sending new orders from the first platform to the last. Shortly, when an order is placed, I need to make it available to the ERP system that will ...
0
votes
0
answers
34
views
Issue in creating pdf using fileFactory->create() in magento 2
I am pulling files from 3rd party server using apis and generating pdf files.
My code is some thing like this. I Will update the sample code to explain my approach.
foreach ($fileData['dataDocuments'][...
0
votes
2
answers
24
views
custom api endpoint for newsletter unsubscription question
I wrote an API endpoint to handle unsubscribe thru API call
It is working well. However, I don't want Magento to send out unsubscribe email to customer, how can I achieve this?
Thanks
<?php
...
0
votes
0
answers
8
views
AJAX and pure JS API token request break user session
API token request break user session if logged in, but request successful.
The result is the same for $.ajax and pure JS fetch
Tested on two projects
let url = '<?php echo $this->getUrl('...
0
votes
1
answer
57
views
Magento2: Create orders grid replica and add custom columns
I want to replicate the order grid, add custom columns in it and fetch that columns data from the API.
0
votes
0
answers
256
views
Configuring RabbitMQ with Magento 2: Bulk Queue Pending
I am trying to integrate RabbitMQ with Magento 2 to access bulk endpoints
Bitnami Magento ver. 2.4.6-p2
I have successfully set up RabbitMQ with my Magento 2 instance, and now bulk requests are being ...
0
votes
0
answers
131
views
Magento2 graphql query to create product?
How to Create Product using graphql is there any mutation for this I couldn't find a single tutorial nor mutation in core module-catalog-graph-ql.
1
vote
1
answer
151
views
How to add Product to Cart with Mutiple custom options using GraphQl?
I have Two custom Options for Downloadable Product
here is my query response for getting product
{
"data": {
"products": {
"items": [
...
0
votes
2
answers
598
views
How to get Custom Selected Options details from Cart in Magento2 GraphQl Query?
I wanted to get product custom selected options values and labels etc with Query how can i get this ?
This Query gets all the available options and selections but how can i get the selected
{
...
0
votes
2
answers
626
views
Extend Magento2 GraphQl Product Query?
I want to add product FAQS along with product query but getting the error when i query product with CustomizableProductInterface
"message": "Fragment cannot be spread here as objects of ...
0
votes
1
answer
30
views
Magento Api Calls return a void object
I'm developing headless e-commerce using Vuejs and Magento.
But I'm facing an issue during the API calls to retrieve products in categories.
It returns a void list.
May someone help me?
0
votes
1
answer
145
views
Updating products in bulk with async endpoint fails with error getProductFromLocalCache() must be of the type string, null given
I'm trying to update multiple items as a batch in Version 2.4.3-p1
$productUpdates = [];
foreach ($updates as $magento_sku => $data) {
$productUpdates[] = [
'sku' => $...
0
votes
1
answer
41
views
How can I create Layered Navigation Filters on MobileApp using APIs?
I want to create the layered navigation filters for my mobileapp the same way it is working on web how can i do this kindly guide
Thanks in advanced
0
votes
1
answer
94
views
how to redirect to shopping cart page by clicking proceed to checkout button in magento2
how to redirect to shopping cart page by clicking proceed to checkout button in magento2 . And which file need to add in our custom module
0
votes
1
answer
144
views
What are the inventory(MSI) options available in Magento 2?
I'm looking to understand the inventory management features in Magento 2. Can someone explain the different inventory options available in Magento 2 and how they can be utilized? Specifically, I'd ...
0
votes
1
answer
570
views
How to save data to database using interface repository api
I'm a newbie magento 2 developer. I'm currently learning how to store data to database using repository-interface-model-api approach. My code is not working.
model ItemRepository
class ...
0
votes
2
answers
1k
views
Magento 2.4 Rest API Error: Method's return type must be specified using @return annotation
I had been trying to use rest api for getting Configurable Products (Child products) using the rest API -
https:url//rest/V1/configurable-products/sku/children
But, I am getting this framework error -
...
0
votes
1
answer
620
views
Set Maximum SearchCriteria pageSize to 500
How set Maximum SearchCriteria pageSize to 500.
In documentation Magento is present this page but not found these options
https://experienceleague.adobe.com/docs/commerce-admin/config/services/magento-...
0
votes
1
answer
717
views
can I use async/bulk/V1/products/ for bulk update products custom attributes?
Hi Can I use PUT async/bulk/V1/products/ this endpoint bulk update some custom attributes?
However, I am not success to do so. Anyone can give me an advice what the payload should look like? Thankyou ...
0
votes
1
answer
608
views
update product custom attribute API JSON format
I was using the postman to send post request.
I have a single json payload send to API endpoint, which is success
rest/default/V1/products/
{
"product": {
"sku": "203-...
0
votes
1
answer
187
views
How can I export saved searches from NetSuite to Azure Blob Storage?
I want to export saved searches from NetSuite to Azure Blob storage.
0
votes
1
answer
318
views
Magento 2 custom API giving "Class string does not exist" error
In Magento 2.4, I am using custom API and it is giving the below error.
{
"message": "Class string does not exist",
"code": -1
}
I have tried this and this solution. But ...
2
votes
0
answers
46
views
Magento2.4.5 throws error while di:compile from Inventory module, SourceValidatorInterface not found
I upgraded the magento version from 2.3.6-p1 to 2.4.5-p1 for enterprise edition.
While running di:compile, got the following error. Please guide
Error: Interface "Magento\InventoryApi\Model\...
0
votes
1
answer
266
views
Error in Postman and show that Invalid type for value: \"%productId%\
I have developed a module in my magento 2.2.6 for to create an API that can update the product price and quantity via product id . Please see my code below
/var/www/html/app/code/AdmNetsuitePQ/...
0
votes
1
answer
254
views
How to generate admin token after enabling 2FA?
Since I enabled 2FactorAuthentication my admin token API isn't working anymore.
My request is:
POST: {{magento_url}}V1/integration/admin/token
Body:
{
"username":"{{admin_user}}&...
0
votes
2
answers
1k
views
Magento 2 - Request sample for carts/mine (GET)
I try to call the carts/mine GET route of the Magento 2 REST API, but it does not show a request sample in the documentation.
It says "Returns information for the cart for a specified customer.&...
1
vote
1
answer
2k
views
How to work with Magento REST API using Integration tokens?
I have tried these steps
Use the following steps to generate an access token:
Log in to Admin and click System > Extensions > Integrations to
display the Integrations page.
Click Add New ...
0
votes
4
answers
684
views
rest/V1/products?searchCriteria[page Size]=10 giving signature error magento 2.4.5
I am calling Magento rest API to load all products of a site.
https://store_url/rest/V1/products?searchCriteria[pageSize]=10
It gives the following error -
"message": "The signature ...
0
votes
2
answers
106
views
how to return custom data with response in Customer API
I am calling Magento2 API /V1/customers/me I want to add custom data in response of this API that is stored in my custom table how can I implement this ?
Thanks !!
0
votes
0
answers
86
views
The consumer isn't authorized to access %resources. Magento 2.3.3
Magento version 2.3.3
Admin token is successfully obtained using the API, however, when trying to fetch any resource using that token, I get this message: "The consumer isn't authorized to access ...
0
votes
1
answer
185
views
Rest API service
http://dev.eternal/rest/all/schema?services=all, gives all services,
but what if I want to grab only customer service? how can I do it?
Plus, how to create a service and call just the desired API's?
...
0
votes
2
answers
1k
views
How to include a custom attribute in the Customer object when calling through API
I made a custom attribute using this code in the Setup/Patch/Data, everything works just fine except when calling the API to get the customer object, it comes without the new custom attribute included,...
5
votes
1
answer
1k
views
How to access the magento 2 graphql api using react js
We are developing a headless eCommerce application for our company, so here is my question how to access the magento2 product collection graphql API which is running on a server using react js which ...
0
votes
2
answers
441
views
Magento 245 SoapClient Class Removed From PHP 8.0
Magento241 is working with PHP7.4 and 7.4 have SoapClient and i have custom api call that uses Soapclient.
i just upgrade to magento245 and php 8.0 and Soapclient stop working.
Any one have idea ? any ...
1
vote
0
answers
138
views
Magento2 how to write PHP unit test cases for GraphQl?
Can any one provide me the steps, how to write PHP unit test cases for Magento2 Graphql API with simple example.
0
votes
2
answers
1k
views
Info Bip Sms Sending issue
I am using the Info bip for sending SMS notifications to customer by Kakoa. I am facing this issue. I tried a lot but I am still facing this issue.
AnyOne help me to get rid of this.