Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [api]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
55 views

You did not sign in correctly or your account is temporarily disabled:customer login

When I try to load /rest/v1/integration/customer/token, passing username and password in the body, it shows below error: { "message": "You did not sign in correctly or your account is ...
0
votes
0answers
24 views

Magento 1.9 : How to Send Mag::Log error using Whatsapp?

How can i send my EventObserver log message by whatsapp message?
1
vote
0answers
9 views

Examples of magento 1 modules that works with 3-rd party API

Recently I started to work with Magento 1, so want to learn how to do things right. Now I have some task - search through 3-rd party API (I am interesting how Magento works with another API, not own ...
1
vote
1answer
38 views

How do I add a api created guest cart to active guest user or how to get quote ID from active guest user

I have a Magento store and a Wordpress website on the same domain, I want to view edit add and delete products from both sites. So far I've been able to get the products from the local storage and ...
0
votes
2answers
167 views

How to enable CORs to access Magento rest APIs : Magento2

I'm getting an error while call API from Angular APP test website and app is hosted in different domain. Website Url abc.test.com Angular App : xyz.test.com When I call API for Listing Of product in ...
0
votes
0answers
32 views

Magento2 - Create custom shipping method using 3rd party api

Magento 2: I have 3rd party API and key, on the checkout page using zip code on-change check with details like country, state, zip-code verify via 3rd party API than get a list of related shipping ...
1
vote
1answer
166 views

Get product attribute value in GraphQL api

I'm having a problem with the GraphQL API for Magento 2. I cannot retrieve the attribute value of multiselect or dropdown attributes when I retrieve my products. In this example my attribute "...
0
votes
0answers
36 views

Magento 1.9 SOAP v2: Specify a store view on category update

I would like to update categories in a specific store view via the SOAP API. Below is the code I'm using: $catu = '628'; $store = '9'; $cat = "name2"; $proxy = new SoapClient('http://example.com/api/...
1
vote
0answers
33 views

Magento 2: How to change price formatting for the API interface?

I need for the (soap) sales order API all prices with 4 decimal places. Example: 9.45 => 9.4500 But only for the API not for other prices! I know the prices are already stored with 4 decimal ...
1
vote
0answers
18 views

REST API: Setting Item Quantity / Need to Get Current Reserved Quantity of an item

Working on using the Magento 2.3 Rest API to set the Quantity of an item available based on a separate datastore. I realize that the formula for getting the Total Salable quantity is based on the ...
1
vote
1answer
36 views

Magento 2.3 : In API Cart Items are clear when payment failed

Cart items clear before payment success if the payment is failed then cart products are cleared in API. Actually I need if payment is failed the product no need to remove from carts this case ...
0
votes
0answers
27 views

Is it possible to use MAGENTO 2 API on MAGENTO 1.9?

There already exist an API called customers/isEmailAvailable in Magento 2. I want to migrate that API to Magento 1.9. I do not have an idea how can I achieve this functionality? I've searched a lot ...
0
votes
0answers
17 views

magento1: REST API POSTMAN get Token and Token Secret. for customer login

I have $consumerKey and $consumerSecret key .but while try to get Token and Token Secret using POSTMAN. it gives me different code instead of a token key. I followed here https://i.stack.imgur.com/...
0
votes
0answers
127 views

Magento 2.3.2 Category API returns null attributes for the entire tree

When I am trying to call the REST API for generating the Category tree, it shows null values for the entire attribute except id and parent_id URL: rest/all/V1/categories Version: Magento Commerce 2.3....
0
votes
1answer
47 views

How to create customer without firstname and lastname in Magento 2 Api

I am using magento 2.3.2 version. I need to remove the Firstname and Lastname fields in the new customer creation/ registration API. I referred this link
0
votes
0answers
35 views

How to add Multiple filter of same attribute in Magento 1.9 soap v2 api?

I'm trying to run magento 1.9 saopV2 api. i'm getting salesOrderList from api by applying filter, i have to get orders with multiple status i.e. pending, processing and complete. when i apply filter ...
0
votes
0answers
18 views

Calling MAGENTO API 1.9 using HTML and JAVASCRIPT (experts question - problem) HELP

I need someone who knows MAGENTO and everything related to APIs and REST APIS very well I have a website and I want to validate (check if you want) if the email for a certain customer exist or not ...
0
votes
2answers
145 views

Magento 2 WebAPI json encode

I'm 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
17 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
46 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
21 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
39 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
27 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
42 views

Errror: Invalid API key or password - Eway Payment gateway - Magento

I have integrated the eWAY Payment Gateway in the default Luma theme for Magento 2. When I try to place an order, it shows an error like Invalid API key or password. I am sure the API details are ...
0
votes
0answers
101 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
142 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/...
1
vote
1answer
44 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
143 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
23 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
25 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
44 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/...
1
vote
1answer
47 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 ...
1
vote
1answer
34 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
14 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
30 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
26 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
79 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
36 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
24 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
35 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
25 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
14 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
118 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
20 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 ...
1
vote
0answers
19 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
11 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 ...
2
votes
0answers
41 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
19 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
39 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
23 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" ...