Questions tagged [api]

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

590 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
106 views

Where does the data node inside the API method catalogProductLinkAssign get extracted?

I am trying to find out where the "data" array, specifically the "position" value inside the "data" array gets extracted from a catalogProductLinkAssign Magento SOAP API V2 web service call and ...
0
votes
1answer
133 views

Magento Rest Api from Consumer key not found

I am requesting magento Rest api from my test file by appending consumer key and secret but after user login and authorization it shows consumer key not exist/found. I am passing consumer key as $_GET ...
0
votes
1answer
388 views

Magento 2 Service Contract API Example For Creating A Shipment and Adding Items

What would be the correct way to within my Magento 2 module create a shipment, add items to it, and save it? I think the general idea would be to inject: \Magento\Sales\Api\...
0
votes
1answer
930 views

Magento 2 API get product price

I'm building an iOS application for my store, and I'm looking for a way to get the correct price of an actual product. Looking at the API I only find requests to get raw product information. http://...
0
votes
1answer
64 views

create an action anytime an order is canceled

For instance, i'm trying to send an API call when an order is cancelled. Shouldn't this work? /** * Cancel order */ public function cancelAction() { if ($order = $this->...
0
votes
0answers
24 views

Sales OrderController.php moved to my app > local folder and added some custom code

THE ORIGINAL IS STILL IN PLACE. I'm writing a custom module stored in (local folder) and API (restful api) and i need to know in admin when an ordered is cancelled manually through Sales > Orders. ...
0
votes
2answers
644 views

Get order ids with status = “canceled/declined”

currently i'm getting all orders id's from some code on my success.phtml page. What about if orders get canceled. How to i only pass information along on canceled or declined and would they still hit ...
0
votes
2answers
864 views

Magento SOAP V2 API Unknown error

this is the first time I use Magento, and I'm trying to make an API, but Im getting some errors. When I try to call a custom SOAP api method, I'm getting this error: Uncaught SoapFault exception: [...
0
votes
1answer
422 views

How to add third party API's to Magento 2?

I would like to add a third party API, that performs a http request when the user adds their car reg and the resulting returned ID can be matched to products on our DB. I'm looking for any ...
0
votes
0answers
134 views

product link type_not_exists when trying to update associated products with api

I am trying to programmatically update the position value for simple products within a grouped product. I am trying to use the product_link_api with Mag 1.9.01 $api = Mage::getModel('catalog/...
0
votes
1answer
37 views

Tool to verify magento missing patchs

I want to scan magento missing patches in my laravel 5.2 application. How can I do that?
0
votes
1answer
402 views

magento 2 rest api variable type

I created web api and trying to validate entered data ":postcode". Here is code in etc/webapi.xml <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
1k views

Rest Api service for shipping information Post -

V1/carts/mine/shipping-information for this service which parameter are required.. I had given below parameters { "addressInformation": { "shippingAddress": { "id": 0, "region": "...
0
votes
0answers
320 views

Magento API 20x Slower On Local Dev Environment. Why?

I'm trying to test the speed of Magento API methods and finding it very difficult due to inconsistent results. Right now my test consists of three API calls: login, core_magento.info, and endSession....
0
votes
1answer
84 views

Magento 2: Custom module to show the available downloads

I am working on a requirement to develop a module which will have a REST api to get the number of remaining downloads for a given Order id 'increment_id' and Item id 'item_id'. As a first step, I ...
0
votes
1answer
1k views

Shipping email ignored when API sends tracking number only if custom php present

I have played with this even further and found the issue to be even more simple that what was previously presented. Please read all to get the gist of the issue. I wish to mention here that only the ...
0
votes
1answer
428 views

Overwrite WSDL magento API v2

I've got a question. I am changing the following function from the Magento API V2: catalogProductAttributeSetAttributeAdd(). In the WSDL I defined I want the ID back, and not a boolean. My problem ...
0
votes
0answers
47 views

Are product attribute names accessible from Magento API?

My goal is to pull this information as a guest but I have tried as both an admin and a guest. My results look like this: URL: {magento_base_url}/m/api/rest/products/category/12 <magento_api> ...
0
votes
1answer
746 views

Magento create order via API works - but we can i send a confirmation email to the Customer

I am using API V2 for creating order - It's works fine but Magento not sending confirmation emails to the customer for new orders create via API! I am using Magento 1.9.1.1. is there any flag to ...
0
votes
1answer
108 views

Magento2 multicreate customer API

Using \Magento\Customer\Api\Data\CustomerRepository Save method we can create single customer with the attributes in \Magento\Customer\Api\Data\CustomerInterfacewith single API request. But how can ...
0
votes
1answer
179 views

Magento Restful Api, Creating a virtual product

Finally gotten our Restful API working with our third-party app, and of course bumped into what may become a very stressful headache. How do I go about allowing API Virtual Product Creation? When I ...
0
votes
1answer
92 views

Access Magento API through localhost to avoid network latency

I have a Magento site and an external app that communicates with it via the Magento API. For the moment, the second app is hosted in the same server as the Magento installation. The Magento API can be ...
0
votes
0answers
266 views

Unable to add product to cart through api in customer's cart. How to do that?

$appEmulation = Mage::getSingleton("core/app_emulation"); $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId); $customer = Mage::getModel("customer/customer")->load($...
0
votes
1answer
172 views

How to login in Magento website using REST API

I am writing a REST API in Magento to login into the website with REST API. I have called the API to login the user through the web browser its logged In. After that, In the next tab on the browser ...
0
votes
2answers
917 views

How to add / change group prices with Magento API 1.9.1

I can't find a way to add or change the group prices with the API. Its only possible to change the tier prices. Have anyone a idea, how to solve this?
0
votes
1answer
773 views

Adding value to the additional attribute of product via SOAP V1

I have created one additional attribute with dropdown field. When i add values via SOAP v1, i could not be able to add. following is my code $result = $client->call($session, 'catalog_product....
0
votes
1answer
33 views

PayPalPro - Advanced

I'm using Magento 1.8.1 with PayPal Advanced. Orders taken when the user chooses their Paypal account are processed correctly. When a customer chooses to enter credit card information, a request is ...
0
votes
0answers
55 views

Magento Shipping APi's

How to get ordered items associated with tracking numbers?Magento by default does not save mapping between order items and their tracking number. In case there are multiple packages, single shipment ...
0
votes
1answer
173 views

Using an API Feed with Magento

I am new to stackexchange. Apologies if I am not providing enough information but just wondered if anyone can help. I am looking at moving my website over to the magento platform as I have been ...
0
votes
1answer
357 views

Magento API - add new custom option value

I'm integrating Adempiere with Magento Synchronizing Products , i want to create a custom options but im getting error XML-RPC Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column '...
0
votes
1answer
49 views

best way to integrate customer with login and pass from another website?

My customer have already a big website whose have 200.000,00 customer registered. Now, we make an store with products related with the site. He wants to integrate the 200000 followers registered (with ...
0
votes
1answer
588 views

Magento API customer.create -> cart_product.moveToCustomerQuote

I created a User using the Magento API. I then created a shopping cart and want to move this cart to the created costumer, but this errors as Customer's quote does not exist. Moving the cart to an ...
0
votes
1answer
89 views

Custom first shipment in recurring order

I have task to create a custom shipment for recurring order. We sell strips that customer will use every month so we set a recurring product for this. For the first month we want to deliver strips ...
0
votes
2answers
691 views

Can't finish checkout, Failed to load resource: the server responded with a status of 400 (Bad Request)

I don't know what i do wrong, but when i tried to do checkout, there's an error and i can't finish the checkout. See the picture below for the detail. After click Place Order : Error on inspect ...
0
votes
1answer
455 views

Can anyone explain step by how to add product to CART using REST API?

I tried this link http://devdocs.magento.com/swagger/index.html#/ - But not able to understand what exactly to do? Please help me.
0
votes
2answers
454 views

Magento2: Unable to post 2D Array from REST Api

I am unable to post multi dimensional array from REST API (POST Method). posting the data in below format. RAW DATA {"customerData":{"name":"Mujassam", "no":"7760"}, "services":[{"product":"mobile", ...
0
votes
1answer
2k views

Pagination for catalog product list using SOAP V2 API

I'm developing an Android app for e-commerce by accessing Magento's SOAP V2 API. I want to show all the products with image and info of all the products in Android. I'm using catalogProductList SOAP ...
-1
votes
1answer
66 views

How to set the key for object array?

I have create a custom Api and I am getting the response as follws: [ [ { "entity_id": "154", "state": "new", "status": "pending", "...
-1
votes
1answer
354 views

SOAP-ERROR: Parsing WSDL: Couldn't load from 'myurl/api/soap/index/?wsdl=1' : Extra content at the end of the document

request code ............. zzz zsw12wd .............. response ....... ...
-1
votes
2answers
311 views

How to use Magento 2 SOAP API outside Magento2

I am trying to develop an application in which I want to fetch magento orders and customers details. I have written the following code to use SOAP API: <?php error_reporting(E_ALL); ini_set('...