Questions tagged [api]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
76 views

I am new here. I want to know how can I create my own simple API

I am new here. I want to know how can I create my own simple API to fetch product image,name,is it available in stock and price of the product. Please help me with complete procedure.
0
votes
0answers
19 views

How to return a csv or xml file by REST or SOAP api in Magento 1

I want to create two custom API, both REST and SOAP that will return a CSV or XML from the media folder. Please don't ask why! Is even possible to return a file in Magento API because I didn't find ...
0
votes
0answers
14 views

Magento Analytics

I'm trying to debug an error with Magento Analytics. If I try to reauthorize the user in System --> Integrations I have the following error. Ideas to debug? Api are working with another shipping ...
0
votes
0answers
9 views

magento2-API:-Report shows error while Create New Account: Fatal Error: 'Uncaught Error: Maximum function nesting level of '256' reached, aborting!

I used :- Vuestorefront-frontend, Vuestorefront-api with magento2-backend...PWA My issue:- In Vuestorefront Login and Order-process is correctly working through magento2-API But Error is only occured ...
1
vote
0answers
29 views

Add product with customized option in the cart through API

I'm having a problem adding a product with custom options in the Magento cart 2.3.1. After defining a custom option as multiple selection, I tried to add the product to the cart with the following ...
0
votes
0answers
14 views

Product Alert Notification from API in Magento 2

Hi find this useful features in Magento2: https://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-alerts.html But I can't understand how access it from REST API. Is it possible? ...
0
votes
0answers
21 views

Magento 2 API: 3rd Party makes a post request to magento API with x-www-form-encoded data

I am trying to integrate a payment gateway with my headless magento 2 website. So after the payment is processed/failed, the payment website makes a POST request to my API with x-www-form-encoded ...
0
votes
0answers
18 views

Magento 2: sellrapido import product using brandsdistribution

When I try to import products from sellrapido to magento 2, it gives me this error on var/log/exeption.log: Next Exception: Report ID: webapi-5d24af47428bd; Message: Property "IsFilterableInGrid" ...
1
vote
0answers
23 views

How to get product's attributes and their value from product id in Magento 1.9 Soap Api v1

All i need is product total no of attributes and their value ...via passing product id(code is given below). <?php require_once('../app/Mage.php'); Mage::app(); $client = new SoapClient('...
1
vote
1answer
59 views

Instagram pictures on homepage [closed]

I have to create a custom module (or anything else what let me do what i want to), which will display few latest pictures from my instagram on homepage. I do not know how to use Instagram api to do ...
0
votes
0answers
36 views

How to get product detail from product id in Magento 1.9 Soap Api v1

Right now I have created an API that gives me product info. But I need product Image and other attribute's value....(code is as below)...all I need is....By passing category id ...product name, image, ...
0
votes
0answers
14 views

How to add an address attribute order REST API

I m trying to add a address attribute(ex : district) in billing address field of Order API by using extention_attributes.xml, i could not add an attribute inside the billing address it adds at the ...
2
votes
1answer
27 views

Create Update product REST API magento2.1

I got below error on my rest API on magento2.1 { "message": "%fieldName is a required field.", "parameters": { "fieldName": "product" } } My URL is: https://XXX/rest/all/V1/...
2
votes
0answers
21 views

Setting the weight unit which gets automatically generated

I am facing this issue since very long now, we have a delivery partner Ecomm express and one of our developers had integrated its API and now he's not working with us anymore. So what is happening ...
0
votes
0answers
24 views

How to get order_statuses from API in Magento2?

I try to search online but can not find any endpoint that allows getting order_statuses. All I can get is the only status_code from the orders.
0
votes
0answers
33 views

Modual to acceess API required?

I am struggling with getting connected to a Magento site's API and getting permission denied. I have manually created an integration using the Admin GUI and activated it with all permissions, I then ...
0
votes
0answers
21 views

Magento2 Add Extension attribute to Order Items

I want to add Extension attribute to order items. Magento\Sales\Api\Data\OrderItemInterface I want to add field in order items that current item has custom options or not? How can i do it in order ...
1
vote
0answers
26 views

Override Api xml Magento1

i made changes in app/code/core/Mage/Customer/etc/api2.xml now i want to override this xml in my local module how i do
1
vote
0answers
19 views

SOAP API module example Magento 2 [closed]

Hello I search an example of API SOAP module, maybe someone can send an example of SOAP API in Magento 2
1
vote
1answer
26 views

Magento 2 - Custom Repository does not create new entity

I create a custom entity and repository. All work well, but the POST API route does not create new entities. But if I call the PUT API route to change a property, it works well. Why my custom ...
2
votes
0answers
21 views

Difference between StockStateInterface and StockRegistryInterface

I was using StockStateInterface to get stock qty, it was working fine in development and staging server but was not working in production server. Then I used StockRegistryInterface to get the result ...
1
vote
0answers
31 views

How to create my own custom search bar Using Algolia Api's. Magento 2

I want to create a custom search bar in which I can search Orders using Algolia Api's. I know that there is an Algolia extension which is used for to search products but How can I use Algolia Api's to ...
1
vote
0answers
21 views

How can I send invoice email via api?

I have an order id. On basis of that I need to send the already created invoice to the customer.
0
votes
0answers
31 views

Magento2 pass json data format in call to external service

Currently I'm referencing this article to post data to external services in a form data format. Some of the external services require in json format. How should I do it if I want to pass json format ...
-1
votes
2answers
44 views

We would like to call an event which is observed from admin as well as from API, which area I should use?

Please Help me on this point i'm new in thie area , I would like to call an event which is observed from admin side as well as from API, in which area I should put my events.xml an dmy observer file ,...
0
votes
2answers
35 views

Magento 2.3 Custom Rest Api get size limit

I have made custom API which returns the categories with the products in them like this: array( key: Category name values:product1,product2,...productX ( where product is an array: array(id,price,...
0
votes
0answers
14 views

Product Variants Magento 1x

I am trying to use the magento 1.x REST API to get product variants as well as options. I also have access to the SOAP API V2 with WS-I turned on. I can't figure out how to find out if a product has ...
0
votes
0answers
17 views

How to convert API xml data to array in php

We use API for get data. In API has multi product data. But we get it in XML. How to convert it in array; so we save it it particular product.
0
votes
1answer
167 views

Magento2 How to get parent product(configurable) by child product using REST API

How to get parent product(Configurable) by child product(Simple) sku or id using REST API? I can't find in this list: https://devdocs.magento.com/swagger/index_22.html plz help me..
0
votes
0answers
18 views

When creating products with POST, images Roles are not enabled (base/small/thumb/swatch), even after a following PUT

When I add a product via the Magento 2 API and then add an image, the image is added and shows up under the "Images and Videos" tab, associated with the correct product. However, none of the Image ...
0
votes
1answer
63 views

Magento 2.3 disable or secure API access

In the developer docs I've found the option to unrestrict API access. Is there an option to restrict access to the API for everything i.e. nothing is anonymous? Or is there a way to disable the ...
1
vote
1answer
31 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", ...
1
vote
1answer
27 views

Magento 2 How to include custom library in controller

I have created custom extension with some library classes. I have placed the libraries in lib/internal/SSOSdk folder. I need to include one of the library class in my controller. I have used the below ...
0
votes
0answers
18 views

how to implement Device id in magento1.9.3 api?

How we can implemented device id with customer id in magento1.9.3(admin and api) please let me know step by step.
0
votes
1answer
66 views

Is it better to use Vue.js storefront as a frontend for magento 2?

We have to lunch a new store and planning to use Vue.js storefront on frontend. -> Will it be feasible easily - data will be interchanged using APIs -> Would there be any security issues ? -> Any ...
0
votes
2answers
64 views

how to use curl for external api call in magento 2

How do I make a post request with curl without using a button, but instead calling the external API when a field is filled out
0
votes
0answers
20 views

Additional field In customer Registration API

I am using magento 2.1.5, and i am using default API for customer registration. now i added one more field "business" in registration page and want to add in API response also. How to add this filed ...
2
votes
1answer
111 views

Magento 2 - Get multi-store addresses REST API

I need to fetch the stores addresses using REST API. We already have storeConfigs but this doesn't return the addresses. GET /V1/store/storeConfigs How can we get the address mentioned in the ...
3
votes
0answers
120 views

Magento2.3 checkout page getting error

I used magento2.3 - when i go to checkout page this error comes below.please if anyone know regarding this reply me Error occurred during "shipping_address" processing. Error occurred during "...
0
votes
1answer
17 views

As capture the token that came through the head and send it to a function that I created myself?

I'm trying to customize the Magento API Engine 2. I would like to know if there is any time of the request, before arriving at webapi.xml to capture the token that came through the head and send it to ...
1
vote
0answers
59 views

Magento 2 API Integration Issue [closed]

I'm running a Magento 2.X.X instance on a dedicated CentOS 7 server. I'm trying to integrate the Linnworks API but it would seem it's a lot more complicated than I thought it would be. In Linnworks ...
0
votes
0answers
15 views

Paypal Api sandbox disable

I'm Trying to Disable sandbpx, i get this error : GetRecurringPaymentsProfileDetails failed: Could not resolve host: api-3t.0.paypal.com; Name or service not known(6)
1
vote
1answer
44 views

Magento 2 API add item to Cart ignore price

if i add a item to cart via api it set Magento 2 default price of the item instead price set via API 1st i create a cart for a customer: index.php/rest/default/V1/customers/631/carts via POST ...
3
votes
1answer
49 views

Retrive Configuration data via API

Is Magento giving any default REST API for retrieving configuration (system.xml) data ?. If yes then share URL. Else share the best approach for retrieving configuration data via REST API.
0
votes
0answers
87 views

how to create Mobile Number Verification (OTP)SMS on customer registration API webservices in magento1.9.x? [closed]

how to create Mobile Number Verification (OTP)SMS on customer registration API webservices in magento1.9.x? If you have any api code then please share me...
0
votes
0answers
94 views

Magento 2 REST API copy image from another SKU

I am trying to use an existing image from one SKU and add it to another SKU. For example: SKU0 -> Image uploaded via Admin SKU1 -> Copy image details from SKU0 to SKU1 via API I've tried using ...
0
votes
0answers
15 views

Magento2 How do I see the raw files, I'm just on the admin

I'm very new to this, I'm doing this for a client. I see there is a content section where I can edit the blocks. I suppose I can edit the custom js to add a javascript file to call my API. I'm try to ...
1
vote
1answer
21 views

How we can remove cart item in webservice in magento1.9.3

please check my code because this code removes all cart item. I want to remove 1 by 1.. please check the code and let me know what is the issue. <?php ini_set("default_socket_timeout", 200); ...
0
votes
0answers
16 views

What is the best tutorial blog for learning Magento 2 API? [duplicate]

I'm learning Magento 2. I would like to be strong in API concepts. When I have checked about the tutorial for Magento API, I have seen there are a lot of blogs with different contents. Since I'm new ...
0
votes
0answers
15 views

Force use of Flat Tables in Rest API

I'm wondering how to force the use of FLAT Tables in Rest API. I have a product API which is using the Magento\Catalog\Model\ResourceModel\Product\CollectionFactory. I've enabled the Flat Tables in ...