Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

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

2
votes
1answer
1k views

SOAP API for Java filter and sort Orders by order id

I am using Magja, java soap api for magento. I want to filter orders by order id or any other property, also want to sort orders by ASC or DESC. But my current code is not working for that, I need ...
0
votes
1answer
146 views

What is the basic architecture of Magento API?

Even though there are number of articles about magento API, no one clearly provides information about how it works in magento system. Most of them have provided source codes to explain pieces of ...
1
vote
1answer
837 views

Magento SOAP v1 API adds a 2nd broken image after successfully adding a real image

I am adding a new Product using the API, I am then running the function below to add an Image to the newly created product. The problem is, when I view the newly created product, it has 1 valid image ...
0
votes
1answer
1k views

Custom module is not appearing in magento admin roles page for webservices

Actually I creaed custom module helloworld. I created all specified files as specified in documentation of magento.But where the problem is encounter, Actullly my code is as follows. Plz I am new to ...
1
vote
1answer
922 views

Procedure 'login' not present - Magja

Hi I am using magja which is Java Connector for magento api. https://github.com/magja/magja I am not getting any response of the issue I posted on their issues list. And I am not expert in java and I ...
2
votes
2answers
85 views

How does one extend magento. Not build an extesion, but acutally fix magento

I've found a smidge of a hole in some of the core magento api. There doesn't seem to be a way to create configurable products. Now I know there's a way to extend magento on my system, or install ...
4
votes
1answer
2k views

Unable to add configurable product to shopping cart using soap api [duplicate]

I'm having some troubles adding configurable products to the shopping cart via shoppingCartProductAdd. Lets say that I have: a Configurable product with the sku configurable-shirt that has options ...
0
votes
1answer
1k views

Magento API v2 regarding inserting shipment numbers and tracking numbers

I am new to magento and its web services, Can any body help me to insert multiple records at single request by consuming magento web services through other applications(Eg: Dynamics Nav ERP system). ...
1
vote
1answer
3k views

How to insert Categories into Magento programmatically?

This is the scenario: I am making a SOAP call from Magento to a CMS The CMS will produce and return a json encoded object of new Category names and some category properties ( Title, URL, Parent/...
2
votes
5answers
11k views

Fatal error: Uncaught SoapFault exception: [2] Access denied

I am trying to login via soap from an external server $api_url_v2 = "http://www.example.com/api/v2_soap/?wsdl=1"; $username = 'username'; $password = 'password'; $cli = new SoapClient($api_url_v2); $...
1
vote
1answer
416 views

Update magento cart with “Mage_Checkout_Model_Cart_Product_Api”?

I am trying to update cart with checkout/cart_product_api model. The function I use is, public function updateCartAction() { $result = array(); $apiModel = Mage::getModel('checkout/...
2
votes
1answer
3k views

Cannot get configurable product to show after adding via PHP without running full index

Been stuck on this for hours spinning my wheels. I have script that builds some products based off a CSV. First it builds a few simple products, then a configurable product with those simple products ...
2
votes
1answer
697 views

What version supports REST API/OAuth

What is the minimum version of Magento that exposes/supports a REST API and OAuth support? Is there any support for REST API and OAuth in Magento 1.5.1?
1
vote
1answer
589 views

Add product translations throught API (SOAP or REST)

is it possible to add product translations using the SOAP or REST API?
1
vote
2answers
2k views

CSV import and auto create manufacturers

I have created a script which generates CSV file. I have one problem. The Manufacturers are coming from the data are not in Magento and practically cannot be created in advance. Is there any way to ...
2
votes
3answers
862 views

How to translate in API v2?

I have extended the Magento v2 API and want to return some translated strings. The only thing that is returned, are the original strings. To test the translation, I also added the strings to the ...
1
vote
1answer
1k views

v1.6.0 - CreateShipment SOAP v2 call ships all items

We want to update orders with shipment details from an external system. We have successfully done the basics, but need to be able to partially ship orders. The API description appears to allow for ...
5
votes
1answer
2k views

Added product via REST API OAuth not retrieved and not able to update via REST API

After adding product to Magento run http://mymagentohost/api/rest/products/40 it will return Resource not found but if just open product from Magento and click on save (without changing anything) than ...
2
votes
2answers
1k views

What can be a general approach to connect Magento to an ERP?

A common problem I am facing is to connect a Magento shop to an Enterprise Resource Planning system (ERP). For almost every ERP I encounter there is no ready to use extension. So I would have to write ...
8
votes
1answer
2k views

Logger for SOAP Requests

we want to connect an external fulfillment partner to Magento and want to log their API requests. Is there any free and open source API logger available?
1
vote
1answer
1k views

Fetch catalogCategoryTree through Soap API fails with custom attribute

For a Magento 1.7.0.2 instance, I'm trying to integrate a custom attribute legacy_id in the category listing. This will be used to match categories from a backend system with the Magento categories. ...
1
vote
1answer
3k views

Oauth Error while extending Magento Rest API

I am working with Magento Rest API for the first time, i went through the tutorials of Rest API on http://www.magentocommerce.com/api/rest and tried one example to fetch product through API: $...
3
votes
2answers
6k views

Get the number of orders with status 'processing'

I am trying to get the number of orders with status 'processing' and below is the code. $countProcessingOrders = 0; $processingOrders = Mage::getModel('sales/order')->getCollection() ->...
1
vote
1answer
6k views

OAuth: How to add magento product using oauth rest api from external php script

I'm new in Magento, I want to add Magento product from my CodeIgniter (external php script). I have created Web_Services->OAuth_Consumers and get key and Secret. what is the next step? (also set ...
3
votes
4answers
7k views

Magento store API for mobile apps

I am new to Magento and learing it. I am working on a Magento store and I have been successful in creating store with required features. But now i was asked to create an REST API for mobile ...
1
vote
1answer
945 views

How do I get custom variable, billing address, shipping address in Invoice using SOAP API of magento1.7?

I am using SOAP API in Magento 1.7 Its easy pretty to fetch Invoice details using invoice id. But it provide billing_address_id and shipping_address_id only How I can fetch corresponding addresses ...
1
vote
1answer
1k views

Howto read/update newly created custom category attribute via SOAP API V2 - ASP.NET/C#

I managed to create a custom attribute for a category using custom module and following 'sqlscript': $installer = $this; $installer->startSetup(); $attribute = array( 'type' => 'varchar', ...
3
votes
1answer
1k views

How to get a Product ID after a product post via REST api to update product category

I want to insert products from a csv-file into the Magento DB via the REST API. First I try to update one single product. The product is inserted into the db but this product needs to be assigned to ...
3
votes
1answer
7k views

Securing add to cart http request

I have a Magento site which integrates with a Javascript based product configurator using reverse proxy on a specific CMS page. The user configures their product and then hits 'Add to Cart' at which ...
2
votes
2answers
864 views

Send a Magento order to third-party API when placed

I'm looking on an example of where I should place for Magento orders to be sent to a third-party API. I have all documentation and all proper code that I've tested. I just don't know where these API ...
1
vote
1answer
194 views

Make tier_price behave/replace normal price Magento 1.7

I'm looking for a way to display my Tier_pricing as a normal price. Because I use SOAP to import prices for different groups. I've managed to let magento show the tier_prices on list page; <?php ...
0
votes
1answer
4k views

Help connecting Magento to a third-party REST API

I need to update Magento products using a third party API. What is the best method of doing so. Should I trigger an API call when an event/observer hits on product detail page? There is no OAuth yet, ...
6
votes
2answers
8k views

Programmatically Update Image Labels

I'm trying to update my product images' labels. I want them to be the same as the name of the product. What I've tried $mediaModel = Mage::getModel("catalog/product_attribute_backend_media"); $...
2
votes
1answer
1k views

Creating filterable selectbox attribute using SOAP API v2

I am creating attributes using the Magento SOAP API V2, and need a few filterable attributes. I am using the following array: $array = array( "attribute_code" => "testattribute", "...
1
vote
1answer
910 views

How to override the graph in dashboard

I have a table included some data about warehouse operation (order_id, phase, duration, datetime, order_canceled), so I need to draw a graph to present these data for performance management. I tried ...
3
votes
1answer
467 views

Meaning of EnvironmentEmulation

Can anyone tell me the exact meaning of EnvironmentEmulation? One usecase can be found in Mage_ProductAlert_Model_Email $initialEnvironmentInfo = $appEmulation->startEnvironmentEmulation($storeId)...
7
votes
2answers
5k views

Programatically created order not adding bundle products correctly

I have an order flow outside of Magento that uses both Magento's direct methods and API SOAP methods to create an order. (The API was used completely at first until we found out it wouldn't pass the ...
3
votes
1answer
889 views

Programmatically create api user does not persist apikey

For an extension I need to create an api user programmatically using php. I use the following code: $apiKey = '12345678'; $user = Mage::getModel('api/user'); $user->setData(array( '...
0
votes
1answer
1k views

Multi site API, localized endpoint

Here's one for the gurus here. By default, Magento's WSDL provides a single endpoint (mainstore.com). The issue is, for multisite installs, there's no way to provide localized info (different prices, ...
0
votes
1answer
263 views

Setting data on Session not working ( different behavior on 2 server)

I need to store some data on Session during a call to Magento API, so I have overwritten Mage_Checkout_Model_Cart_Customer_Api and added this: Mage::getSingleton('core/session')->setCustomVar('...
1
vote
2answers
9k views

Magento soap api login failed using PHP

I am working with magento soap api and it's works fine in my local machine and development server but when i moved my code to production server i found the following error: Fatal error: Uncaught ...
2
votes
1answer
136 views

Logging in using the API

I've been poking around the web looking for a solution to this, but I can't seem to find anything concrete. I have a site that has a non-Magento frontend. We're using the cart, checkout, and users ...
1
vote
2answers
2k views

Magento API gives Access Denied when trying to add a coupon

I am using the SOAP API for Magento (v1.5.1.0) and have managed to get the entire process of creating a cart, adding user, adding billing/shipping addresses, payment methods, etc. working, however I ...
2
votes
2answers
4k views

Magento API speed [duplicate]

Does anyone know any techniques for speeding up Magento's API? We have recently been working on an integration that is heavily dependant on a variety of API calls running at a reasonable speed, ...
1
vote
2answers
733 views

Magento API V2 catalogProductAttributeAddOption (with compliance mode) - add attribute

I am trying to call catalogProductAttributeAddOption with V2 of Magento's API with compliance mode enabled but am getting: call to undefined method stdClass::catalogProductAttributeAddOption() My ...
15
votes
1answer
9k views

Why are my SOAP v2 WS-I calls so slow (7-10 sec. per product update)?

We're using the Magento SOAP v2 API with WS-I. The problem is, that the SOAP calls are extremly slow (7-10 seconds per product!). We're calling catalogProductUpdate without images. The shop itself ...
10
votes
1answer
7k views

Where do you put modified WSDL files for the API to override the core definitions?

We've updated the standard WSDL definitions to support bundled product attributes for sku_type and price_type. I've tried putting the updated WSDL and WSI files in app/code/local/Mage/Catalog/etc/, ...
4
votes
1answer
2k views

Multidimensional Arrays in Magento WSDL file (WSI compliant)

Have been working to get an API call working to edit an order via API, and remove items or quantity from a current order and save as a new order. My issue is with passed an array of items & qty's ...
0
votes
2answers
1k views

How do I list all adresses changed after a certain date in a multi call?

I'm using the magento soap v1 api, and I wish to get all the adresses changed after a certain datetime. I’m using php to setup the connection and fetch the data. I have the following users to play ...
4
votes
2answers
1k views

Magento Credit memo before invoice captured

The client I am working with has a requirement that they are able to give credit memos before either full or partial capture of an invoice (i.e. money is authorized but not paid). The idea being that ...