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
9 views

Magento 2 WebAPI json encode

Im returning json via an endpoint in Magento 2 this bit of json looks like the following: $new_json = [ 'component_1' => '[{....}]', 'component_2' => '[{...}]' ]; ...
0
votes
0answers
12 views

Validate email using MAGENTO 1.9 (not way)

I've been trying several times to validate an email from my website against MAGENTO without success. I know it is possible to use MAGENTO REST API through JAVASCRIPT or maybe a PHP script but THIS IS ...
0
votes
1answer
27 views

Magento 2 set order extension attributes via API

Is it possible to set an order's extension attribute value when creating the order via the API or is there an appropriate API endpoint to update an existing order with this information? For example ...
0
votes
0answers
11 views

Magento - PUT request Rest API - Header issue

I am using PUT request to change name of product entity id 1 in Magento 1.8. I am using below details while using PUT request: A. Oauth1.0 key credentials like secret key, etc B. Headers: Content-...
1
vote
0answers
37 views

Add comments to an order

So when I look online, it looks super simple... Even the swagger docs show it to be simple, but I've tried 2 different Magento sites now (different versions) and the API simply doesn't work... Order ...
0
votes
0answers
9 views

Will using async or bulk endpoints actually improve performance of import processes?

We have a multi-store setup with 16 stores and every store has it's own language, we have a lot of store-specific information. Most of our products are configurable products with lots of variants, so ...
0
votes
0answers
32 views

Magento 2 Add extension attributes in Quote Item

I want to add custom attribute in quote items Magento\Quote\Api\Data\CartItemExtensionInterface <extension_attributes for="Magento\Quote\Api\Data\CartItemExtensionInterface"> <attribute ...
0
votes
2answers
96 views

Magento 2 Unable to set custom Price in cart item by API

I'm trying to add an item by API.every thing are working except item price It's Magento Bug that not take price from API https://devdocs.magento.com/redoc/2.3/admin-rest-api.html#operation/...
0
votes
1answer
36 views

Magento 2.2.6 : Shipment creation using REST API

Unable to create shipment in Magento 2.2.6 I am using the following source code like this in postman https://test.com/rest/V1/shipment { "entity" : { "order_id" : 70, "items" : [{ "order_item_id" ...
0
votes
1answer
36 views

MAGENTO 2 REST API: PUT through POSTMAN [Resolved]

I'm trying a PUT on Magento 2 REST API through POSTMAN like this: https://domain/rest/V1/products/IP_X With only a price change on the json content. getting the following error message: { "...
1
vote
0answers
15 views

Search using REST endpoints on two different columns with OR condition in Magento 2

I'm using Magento v2.3 and using API to search products. Following is the search criteria code. 'searchCriteria[filterGroups][0][filters][0][field]': 'name', 'searchCriteria[filterGroups][0][filters]...
0
votes
0answers
17 views

How to Receive XML Post Data in Magento2?

I want to receive and validate xml object from third party application in Magento2. How I can write custom endpoint and response for this. Xml payload: <myitems> <item> <info1>&...
0
votes
1answer
27 views

Magento 2.3 call api rest extern

I created a Magento 2.0 module and it calls an external web service with the command \Zend_XmlRpc_Client. /* REST */ $client = new \Zend_XmlRpc_Client($this->_scopeConfig->getValue('akria_store/...
0
votes
0answers
11 views

Error in Uploading Image using REST API in Magento 2

I am getting below error while hit REST API from postman: "message": "The product can't be saved.", I have used below details for API: URL: magento.localhost/rest/V1/products/p1/media ...
0
votes
1answer
16 views

How to Run Magento 1.9 Api from Javascript

I want to run Magento Apis using JavaScript and person certain functions such: get all orders, get specific order, create shipment etc, Now I have seen other tutorials and i can run Magento Apis ...
0
votes
0answers
13 views

Cannot throw critical exception on retrieve REST in Magento 1

I've created a custom module that returns the content from a XML file from media folder. The XML file contains some product data. The problem is that when the call is made the client has to send the ...
3
votes
1answer
21 views

install Magento 2 API Client

I want to install this dial but I do not understand or obtain GIT_USER_ID and GIT_REPO_ID.git https://github.com/netz98/magento2-swagger-api-client-demo { "repositories": [ { "type": "...
0
votes
0answers
14 views

Are these the correct fields to update for a stock update API method?

I have several thousand products in Magento, and the /V1/products/{productSku}/stockItems/{itemId}/ takes too long to update inventory for all the products, so I'm making my own API method to update ...
0
votes
1answer
62 views

custom “sales_order_item” attribute to API response

I followed this guide to add a custom product attribute to quote and sales order item throughout the order process and this works fine. My custom attribute is added to the sales_order_item table ...
0
votes
0answers
21 views

How to upload image by REST api (without base64) magento 1.9

I try to upload an image by rest API in Magento 1.9 version but getting "invalid content-type' error. Can any one help me for the same?
1
vote
0answers
23 views

Create a custom API to get all details of a product magento2

I want to create a custom API to get all of the information of a product including stock details and order details. I checked the existing product APIs but to get all of the information, need to run ...
1
vote
1answer
27 views

How to verify us zip code with region in checkout and my account address magento 2.3

I want to verify customer enter zip code is correctly match with the region. For example: zip code:10001 Region: New york If the customer enters the wrong zip code for the region, it throws an ...
0
votes
0answers
23 views

Plugin with custom API call in Magento 2.3

I have a question that whether we can make functionality in which we want to update the product stock when the product detail page is loaded. For that, I am using Plugin feature and I want to fetch ...
0
votes
0answers
13 views

How to make Real time inventory synchronization with Amazon Seller Account & Magento site?

My version 1.9.2.3. I need to sync inventory from amazon seller account, like if order placed from amazon seller account inventory should be decreased in my website and vice versa? How can i do it ...
2
votes
1answer
61 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
18 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
9 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
7 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 ...
0
votes
0answers
23 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
12 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
16 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
15 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
51 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
33 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
11 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
20 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
31 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
17 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
25 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
13 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
21 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
19 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
30 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
20 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
26 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
38 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
27 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,...