Questions tagged [api]

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

589 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Coupon Code API Params

We just want to know what would be the json params to create coupon code from magento2 rest API. The API we are using to generate the coupon code is /rest/V1/coupons
2
votes
0answers
44 views

Failed to communicate with Braintree with taxamo checkout in magento 2.x

In Magento 2.1.2 configure taxamo site - set merchant and braintree configuration in taxamo site & set test mode. In cart.phtml page add script as below: Taxamo.initialize('...
2
votes
0answers
47 views

Magento Session

I want to create a custom dashboard in a subdoamin and want to use the session of magento which is installed in main root. Can you please tell me how i can manage session on both area is the any api ...
2
votes
0answers
113 views

Error while Integrating 3rd Party API in my Magento Store

Notice: Trying to get property of non-object on line 58 of below code Below is the code. public function collectRates(Mage_Shipping_Model_Rate_Request $request) { if (!Mage::getStoreConfig('...
2
votes
0answers
152 views

Can't create soap header

we're trying to send a soap request to the purolator shipping API. We are stuck at the header portion. This is what we are sending the shipping API: // Probleme ICI try { //Define the ...
2
votes
0answers
97 views

How do I determine the class name of a model?

This may sound like a completely dumb question, however I have been scavenging the web for answers with no success. If need to access a particular kind of model in Magento 2, such as a product model, ...
2
votes
0answers
2k views

Magento 2 Rest api POST JSON TypeProcessor error

Have a problem with Magento2 rest APIs. I try to import some data to DB table im my module. I wrote rest api, that gets a JSON array and insert it in database table, but when i try to send this array ...
2
votes
0answers
1k views

Magento 2 api rest update product per store id. Ot working

I did all the changes that user Emizen-tech https://stackoverflow.com/users/6333615/emizen-tech recomend: https://stackoverflow.com/questions/37744874/magento2-rest-api-save-product-detail-per-store-...
2
votes
0answers
256 views

Magento 2.1 REST API configurableProductLinkManagementV1 only adds first simple product to configurable product

I'm making a call to REST API configurableProductLinkManagementV1. The first simple product is associated correctly. Any simple product after that is not. The error I receive states "option values are ...
2
votes
0answers
1k views

Magento 2.1.1 Failed to load resource: the server responded with a status of 400 (Bad Request)

Magento 2.1.1. I couldnot place order and continue receiving message "An error occurred on the server. Please try to place the order again." upon placing order. I got this error on console "Failed to ...
2
votes
0answers
76 views

Is there an API to work with CartaSì, in order to make a Magento module to work with CartaSi?

I need to somehow develop and install CartaSi module for payment, integrated with Magento, so a module that collaborates with CartaSi. Any suggestions on how to do this? I have found only couple of ...
2
votes
2answers
841 views

Magento 2 - Set Tracking Info for Order via REST API without specifying items?

Is it possible to add in shipping and tracking information for an order using the Magento 2 REST API without putting in the item information. We always ship the entire order and based on our warehouse ...
2
votes
0answers
184 views

How to extend Quote Api in magento 2

I want to create cart & quote item in one Api only wright now magento ne api is creating cart then 2nd Api is creating Quote Items. I want in one api. Can anyone help on this ?
2
votes
0answers
466 views

Magento 2 REST Api with Authorize.net

I'm using Magento:2 REST Api in my website, and currently working on the payment system (Authorize.net). Is it possible to create a transaction ? and place an order with Authorize.net through the ...
2
votes
1answer
627 views

Magento 2.1 : How can I save a shipping address using the REST V1 API

I'm trying to save just the shipping address using the REST V1 API of Magento 2. I know there is an endpoint to save the billing-address, but there seems to be lack of a way to save the shipping ...
2
votes
0answers
378 views

Magento 2 Customer Attribute in REST Order API

I have added a new custom attribute for order in sales_order table. It contains a value for the order. I have added extension_attributes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
1answer
1k views

Magento 2 - Web API Create Account

I use curl to call the web api to create a customer account according to the example here. curl -X POST "http://local.magento/index.php/rest/V1/customers" \ -H "Content-Type:application/json" \ ...
2
votes
0answers
179 views

Change Magento WSDL element output

I need to update some elements/variables of my wsdl output. For example I want to change "shipping_amount" so it gives me the amount incl. tax and not (as it is now) without tax: <complexType name=...
2
votes
0answers
176 views

Magento SOAP requests using Powershell

What I'm trying to do is use Magento's SOAP API v2 in Powershell to update products, create products, manage categories, etc. So the simplest way I've found so far is from this page. Here's a bit of ...
2
votes
0answers
2k views

how to get the product details by rest API in Magento1.9?

I am using the magento rest api client(postman & restclient) to get the products details but always returning the 404 error. Please see the attached screen shot.I have set all the values in the ...
2
votes
1answer
149 views

How to ship to multiple addresses using the Magento API (cart)

I would like to be able to ship to multiple addresses on the same order using the Magento API. Is this functionality using the Magento API available? Or it is only available using the web interface?
2
votes
1answer
732 views

Magento 2 - Between “Rest” and “Soap”, Which is better then one?

Between "Rest" and "Soap" API, Which is better then one ? I have some cases below: 1) Apply for mobile app call web-service. 2) Apply for desktop app call web-service. 3) Apply for web app call web-...
2
votes
0answers
355 views

Magento API error

One of my developers trying to access API of Magento engine in order to integrate the Magento site with a POS system . He is using SOAP version 2 Error is as follows : Kindly help SoapFault ...
2
votes
3answers
2k views

How to use WSDL SOAP functions and objects in Magento 2?

I just had a brief look at the Magento 2 WSDL file. Until 1.9 I used the WSDL file as part of my development (Delphi win 32) to have access to the functions, arrays, objects etc... This was very ...
2
votes
3answers
3k views

Instagram API call on Magento frontend

I would like to add the last pics from my instagram in my Magento Frontend. I've seen the IG API and there is an Endpoint for this requeriment. Searching the web I've found examples of the call with ...
2
votes
0answers
394 views

Magento CE 1.9 Rest Api - Redirecting to Customer Account after submitting Customer Login form to generate access token?

I am getting issue while creating Magento Rest Api for Mobile Application. I have a php file containing logic to access Magento Rest Api. Whenever I am hitting the file it is redirecting to me ...
2
votes
0answers
424 views

Delphi integration

Delphi integration. Hi, does anyone already have a working Delphi to magento API integration - preferably using SOAP, and downloading into Delphi ClientDataset? If so, is it possible for me to ...
2
votes
0answers
58 views

3rd party access to Magento CE downloadable products

Having migrated from a legacy system to Magento, I would like to allow access data on my magento store from an: iOS app Android app Web app for the following: Product details inc image (straight-...
2
votes
0answers
2k views

Call to undefined method Mage_Catalog_Model_Resource_Product_Flat::loadAllAttributes()

I have trouble with some API calls, which results in this error in the log. Call to undefined method Mage_Catalog_Model_Resource_Product_Flat::loadAllAttributes() As far as I can see the mentioned ...
2
votes
0answers
2k views

How to call localhost/magento/oauth/initiate?

I am trying to call the above url to initiate the oauth tokens. I am following the below link http://www.magentocommerce.com/api/rest/authentication/oauth_authentication.html Can u tell me what s the ...
2
votes
1answer
340 views

How can i remove configurable product from cart in magento using SOAP API v1

I am using this code but it gives error "Call to a member function getId() on a non-object" $c = array( '272' => 25, '502' => 46 ); $...
2
votes
2answers
495 views

Rewrite Credit Memo API in Magento CE 1.9

I am trying to rewrite the model sales_order_credit_memo_api with my own "info" function. I have created all the files yet when I access the API call "order_creditmemo.info" it uses the base Mage ...
2
votes
0answers
181 views

Delete/Update Configurable Product from php

I am trying to delete a configurable product in my cart wiht shoppingCartProductRemove with Api SOAP v2, but the api return Please specify the product's option (s) There is a way to add/remove/...
2
votes
0answers
671 views

API to automatically import Woocommerce orders to Magento

I'm looking for the best way to automatically import orders from a Woocommerce shop to Magento. Do you guys have any ideas how to do that ? CSV auto export/import ?
2
votes
1answer
2k views

Magento 2 - How to return custom json response from API

I'm working with Magento 2 API and I'm really struggled with response of it How can I return some kind of response like this: { "status": 200, "error": false, "message": "Request ...
1
vote
1answer
19 views

Magento 2 credit memo API observer/plugin

I'm interested to know if an observer or plugin will be trigger if a credit memo is created via API rest example: POST /V1/creditmemo/refund OR POST /V1/invoice/{invoiceId}/refund ref:https://devdocs....
1
vote
0answers
11 views

Turn API Return to Object PHP

My API returns a JSON that I would like to transform into a PHP object so that I can find a specific field in return. how can I do this? My get public function teste() { $requestUrl='http://...
1
vote
0answers
55 views

How to get all product data from oracle netsuite through php api

I have been created the connection between PHP and Netsuite but now I want to load all product data from NetSuite to my PHP API so how can I do this? is there any solution for that...
1
vote
0answers
24 views

In Magento 2.3, How to add custom error code with response

In Magento 2.3, How to add custom error code along with response. For example, If I add the code as below, I am getting this below response: throw new InvalidEmailOrPasswordException(__('Invalid ...
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
0answers
34 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
0answers
40 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 ...
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]...
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
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 ...
1
vote
0answers
30 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
0answers
29 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
33 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
27 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.