Questions tagged [api]

An application programming interface (API) specifies how some software components should interact with each other.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Magento 2: Instagram integrtion with number of likes and comments

I have integrated instagram to my store using this module https://github.com/landofcoder/module-magento-2-instagram I want to show number of likes and comments too. And also filter images by sort. Can ...
0
votes
0answers
12 views

Magento 2 - How to run API Call if click save button

I am using Amasty Store Locator module, in this module, we can able to add custom attribute values, I am created two attributes custom input text fields, the first input field filled manually and ...
0
votes
0answers
16 views

M2 - How to do Auto refresh google business review Authorization key?

Now i manually copy & paste the Authorization key, code: <?php namespace Zero\Storelocator\Block; class Customerreview extends \Magento\Framework\View\Element\Template { public function ...
0
votes
0answers
12 views

Magento error when calling /rest/all/schema?services=all

When calling http://b2b.localhost/rest/all/schema?services=all on local server I get error: <response> <message>The "OrderItemInterface[]" class doesn't exist and the namespace ...
0
votes
0answers
15 views

Magento 2 API - Category creation error

Trying to create a category through API. But i'm getting an error { "message": "Could not save category: %1", "parameters": [ "The \"Is Home ...
0
votes
0answers
22 views

Magento 2.3 hide customer attributes from API call

As far as I know, in order to have a custom attribute in the API output, magento needs the attribute to be defined in a extension_attributes.xml file. I've created a customer custom attribute the ...
0
votes
0answers
43 views

Unexpected network error, please try again later. Amazon Sales Channel

I am using Magento 2.3.6 and have installed Amazon Sales Channel 4.4.0, I have added the Production API Key and Production Private Key under Magento Services but I get this error "Unexpected ...
0
votes
1answer
20 views

Maximum and minimum quantity of a product

Good Morning! I need to create an API that returns the maximum and minimum quantity of a product. What methods can I use?
0
votes
0answers
13 views

Magento 2 Base image tag on UI does not match with API response

I had a product for which I had uploaded a base image with file name 7aceebe8-7adf-48dc-9c78-c235999b34a1.jpg Then I uploaded another image 677dce28-258e-4a92-ba4a-88fae42c9b60.jpg as base image via ...
0
votes
0answers
11 views

Magento 2 Facebook login shows “HybridAuth Open Source Social Sign On PHP Library”

I'm using social login extension to login with Facebook on my site, after entering the username and password it shows the error as below, I have tested this on local and live site, it's working fine ...
0
votes
0answers
10 views

Debug isValid method that uses interfaces

I have installed a custom module that uses an Api/Validator/LocationProductValidatorInterface.php to compare two objects ($location, $product). This is the method which always returns false for me and ...
0
votes
0answers
12 views

Order line custom options not displaying on website when added via the API

I’m creating orders using the Magento 2.3.6 API salesOrderRepositoryV1 interface. Everything seems to work fine except on order lines with a custom option. Custom options are added to the order line ...
0
votes
1answer
19 views

Add attributes to the Order API shipping_address

I am calling this endpoint: http://localhost/index.php/rest/V1/orders/<myId> And I want to have 2 customer address attributes inside the response (-> billing_address). In order to get there ...
0
votes
0answers
13 views

magento 2 get folter attributes values in custom api

Hi i created custom API in magento 2 in that i need to implement advance search like store brand,model and year search like this i am able to get brand fileds ` public function getAddtocar($attribute)...
0
votes
0answers
33 views

How to write google business review API in custom module and call into phtml file

What is the best approach to write google business review API in custom module and call inside the custom phtml file, Eg Code: <?php $accountId = 'your_account_id'; $locationId = 'your_location_id'...
0
votes
0answers
34 views

How to add a script in a phtml file

I currently have a email pop up modal in my magento CMS but I need to hide the api so my script I will keep server side in PHP. My question is how can I have a phtml that is just a script be imported ...
0
votes
1answer
16 views

POST source-items for update returns 404

I am trying to update the quantity of products using the rest api call: {HostUrl}/rest/default/V1/inventory/source-items with the below data: { "sourceItems": [ { "sku":...
0
votes
1answer
22 views

Can I set MSI stock values using products REST endpoint?

We currently run Magento without MSI. The ERP sends stock updates via extension attributes on the (bulk) product endpoint. This enables us to do most product updates in on API call. Very convenient. ...
1
vote
0answers
12 views

how i can retrieve Minimum Amount in magento 2 using REST API?

Dears I am using Magento ver. 2.2.7 as backend for my app, i want to get "Minimum Amount" for orders when my users review them bascket. So i am looking for API to retrieve value of "...
0
votes
0answers
19 views

Magento 2 Quote Refresh Api

HI I am developing an API where I faced a challenge in my cart listing api, I need to apply cart rule and add it in quote and need to update quote accordingly. The Problem here is my quote do get ...
1
vote
0answers
36 views

Magento 2 OAuth authentication fails when activating an integration

I want to create an integration. I have added an integration in System > Extensions > Integrations. I have added Callback and Identity URL. When saving, it generates a Consumer Key and Consumer ...
1
vote
1answer
59 views

Fetching SKUs containing a “/” (forward slash character) from the /rest/v1/products/ REST API endpoint?

A lot of our SKUs have spaces and forward slashes in them (eg: "PRODUCT1-DARK BLUE" and "PRODUCT2-DARK/RED". I'm able to curl to the products with spaces via url encoding:     # ...
0
votes
0answers
21 views

Magento Rest API - multiple product list in one call

I want to access specified multiple product list in one call. for example access all the products in category id 14 and 15. This provide the product list id 14: /V1/products?searchCriteria[...
0
votes
1answer
30 views

How can solve Magento 2 Custom REST API returns Error?

REST API returns Error: { "messages": { "error": [ { "code": 500, "message": "Fatal Error: '...
0
votes
1answer
67 views

Magento 2 API Create Order As guest: {“message”:“\”%fieldName\“ is required. Enter and try again.”,“parameters”:{“fieldName”:“email”}}

0 I'm trying to place an order via Magento 2 API as a guest, following the guidance shown here: https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html The end point I'm ...
0
votes
1answer
48 views

Add custom product attribute to Order API

I have added a custom product attribute via code, using InstallData.php public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { $eavSetup = $this->...
0
votes
2answers
89 views

Refused to load the script because it violates Content Security Policy: Magento2

I am using Meetanshi Googgle Invisible Captcha Extension, Integrated with the Keys and verified they are correct. Now when i access my form Page where the captcha suppose to be visible, it is showing ...
0
votes
0answers
43 views

Get reward points via REST API

Is there an API call to retrieve reward points for a customer please in Magento 2? Can't seem to find it. Thanks, Kurt
0
votes
1answer
56 views

On Adding items in cart for guest user using Postman getting error

I have successfully run two REST API's but on running the third one http://127.0.0.1/mag/rest/V1/guest-carts/81/items { "cart_item": { "quoteId": 81, "sku": "...
0
votes
0answers
58 views

Upgrading from 2.4.1 to 2.4.2 broken API

Since upgrading from Magento 2.4.1 to 2.4.2 a simple PUT to set a value in a custom attribute now fails with a 500 error. {"entity":{"entity_id":26481,"extension_attributes&...
0
votes
0answers
12 views

Do Magento 2 Integration OAuth Access Tokens Never Expire?

Hi I just want to make sure that if I created an integration via OAuth authentication I would use the access token of which for Magento 2 API calls. It is my experience that they never expire, is ...
0
votes
1answer
33 views

How to get custom order attribute in API?

In sales_order_grid table I have this custom field: This field was added by this extension: https://github.com/boldcommerce/magento2-ordercomments Is it possible to add it as "custom_attributes&...
0
votes
1answer
48 views

REST API: Consumer is not authorized to access %resources

I'm in the middle of finishing a Magento 2 store for a client. The last I had on my to-do list, was connect Magento to their accounting software through the REST API. However, apparently there's some ...
0
votes
0answers
11 views

How can i use the api in c#

I want to make api calls from a c# script but i have no idea where to start. Can somebody please help me? I searched and found this: https://github.com/nickvane/Magento-RestApi but i dont think it ...
1
vote
2answers
299 views

Test all soap endpoint api with Wizdler chrome extenssion

We can check rest api with all the parameter detail from swagger so I would be highly appreciated if you guys have tested SOAP api with any tool then please guide me. I have installed Wizdler chrome ...
0
votes
0answers
23 views

API Call getting error on home page slick product slider

I am using api for free delivery available or not for the products, producty listing page my api helper class working, path-> my app\design\frontend\Zero\my_theme\Magento_Catalog\templates\list....
1
vote
2answers
41 views

Magento logout from other website

I would like to extend the magento api so that a third party can, via web service or rest api, close the session of a client. Can you guide me on the steps that I should take? or some link with more ...
0
votes
0answers
12 views

Refund with multiple items not possible

I am trying to do a refund in Magento 2 using the invoice. It seems that multiple items are not supported. This is just an example where an invoice with all the order_item_ids are 100% correct but it ...
3
votes
2answers
78 views

M2 Import customers with API with hashed passwords?

I can import customers with the API using /rest/all/V1/customers endpoint. I can also supply a password. But is it possible to import a customer with a hashed password with the M2 API? If possible, ...
0
votes
0answers
23 views

Magento 2 How to get products details with qty calling products endpoint?

Magento 2 How to get products details with qty calling products endpoint? I need to get the qty from the products endpoint.
0
votes
0answers
17 views

POST and PUT custom customer attribute via REST API

I created a custom customer attribute via module: Vendor/CustomCustomerAttribute/etc/module.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
10 views

How to extend customer rest api request and response

Here i want to modify the current request body and response body for customer rest api. How current rest api working is like here. Request Json. { "customer": { "email":&...
0
votes
0answers
17 views

How to create custom customer attribute in Magento 2.4.1 and update and get data via REST API

How do I create a custom customer attribute in Magento 2.4.1 and then update that attribute value via REST API and then get the attribute value with all other customer data via REST API?
0
votes
0answers
13 views

can i include created date in integration/customer/token api

I had set an expiry token for customers as 7 days. How to find token is expired a kind of msg? How Can I add created date in integration/customer/token in this endpoint? so that my frontend team can ...
0
votes
0answers
11 views

Consume xml api from third party in magento2?

I have found an answer for magento 1 here https://stackoverflow.com/questions/47789660/magento-third-api-integration But the directions and example is for magento 1?
0
votes
0answers
11 views

Customer Search by email does not work in REST API

I have a list of customers that I am trying to pull data for all at once. I build a search filter with the contion_type="like", field="email", and value="gmail.com". i ...
0
votes
1answer
24 views

Magento 2 API usage internally

i am doing several custom modules in Magento 2. It is a good practice do all the thing orientated to API (thinking in be consume for an mobile app for example ) and also use those api internally in ...
0
votes
1answer
19 views

How to handle if curl request throws error in magento 2

I am receiving a response from using a curl request. But how do I check whether my curl request throws an error or not? because it takes 15 minutes to give a response from API.(but it works fine while ...
0
votes
0answers
20 views

How to retrieve quantity from products list with REST API?

I need to get stock info about my products in REST API response. I'm using this endpoint: GET https://{{magento}}/index.php/rest/V1/products?search_criteria%5Bpage_size%5D=10&search_criteria%...
0
votes
0answers
21 views

API call issue in magento 2.2.0

we are working on api call module in magento 2.2.0 where main functionality is using API fetch data from other site and show data in grid. we created module for upper version (magento 2.3 and higher) ...

1
2 3 4 5
33