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
1answer
8k views

soap api : Start tag expected, '<' not found'

I am getting some soap fault error with the message as below : <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><...
0
votes
1answer
695 views

Bundle multiple API calls in a single transaction

Is there any way that I can bundle multiple SOAP API calls into a single transaction, such that if one or more fails the entire transaction is rolled back? In my particular case, I am attempting to ...
0
votes
1answer
89 views

is there any difference in authorization between Magento.RestAPI 1.8 and 1.6

I'm using magento.restAPI and i'm very new to magento and i havent used any previous version of magento. Currently i'm having a magento rest Api i want to know whether its the same authentication ...
0
votes
1answer
110 views

Soap API and email templates

I'm cancelling order via Magento Soap API, for some reason emails sent are using default/default templates/skin etc. Is it possible to select which template/skin is used for emails?
0
votes
1answer
2k views

Change product position programmatically [duplicate]

I'm using a magento api script to change the product status. i want to add to the script an update that will change all the positions of the product in all of the related categories to 0. what would ...
2
votes
2answers
4k views

Rest Api - call custom rest api function

i am beginner in creating Rest api, i dont know from where to start. till now am able to pull products list using http://my_host.com/api/rest/products. but am confused what will my url for calling ...
0
votes
1answer
280 views

can not use store.list soap api method in magento 1.5

i am not able to list stores using soap method 'store.list'. i am using magento 1.5. Any help would be highly appreciated. Below is my code to retrieve list of stores. Thanks. $client = new ...
2
votes
1answer
3k views

magento : get list of category with api

i want to get list of category and subcategory (name of category) in magento , i use this API : catalogCategoryInfo (SOAP V2) . i try to get Names of direct child categories but it return id of direct ...
4
votes
2answers
528 views

When posting a shipment, will the payment be captured?

When posting a shipment for an order using the Magento API, will the payment be captured? Assume the following is true in this scenario: Authorize.net is being used to process payments Authorize.net ...
5
votes
2answers
3k views

Magento REST API: What populates the api2_acl_attribute Table?

I'm trying to run through the oAuth/REST examples on the Magento website and I'm hitting a snag. I've successfully created a consumer key and a consumer secret, and used these to fetch an ...
0
votes
2answers
737 views

How to Whitelist API for Maintenance flag

I have our site whitelisted via the index.php file and it works however the whitelist does not work for the SOAP API access. Is there an easy fix to add the whitelist for API access?
2
votes
0answers
1k views

Magento API V2 Methods not found but are in WSDL (works on LIVE server but not DEV) [closed]

I'm trying to get the API system up and running for a third party but I have a problem whereby the API calls work fine on my local machine and the LIVE server but are refusing to work properly on the ...
7
votes
1answer
3k views

How do you use the API to add products to a bundle?

I'm developing a system that integrates an existing Django application with a Magento store. I've managed, using this library, to create bundle-type products, along with attributes and categories as ...
0
votes
1answer
67 views

how to retrive a qty of product from a specific cart in soap client2?

please help me out. I am adding a product to a cart using cart_product.add (SOAP V1) with a qty-2. But when a retrieve a cart_product.list at that time I am not getting a qty. So how can i get the qty ...
0
votes
1answer
566 views

Get lifetime sales of a website using soap API

How to get lifetime sales value and orders of a website via soap API v2?
1
vote
1answer
1k views

Custom API adapter handler and wsdl files

I read Alan Storm article (http://alanstorm.com/debugging_magento_api_method_calls) about magento core API. And now I just a bit confused, when I creating my custom API in magento, do I have to ...
2
votes
1answer
4k views

Custom API v2 not working

I'm creating my first custom API and I'm struggling a lot with it. I am not able to call it with v2 API (or use it as a service reference in .NET). <?php $host = "127.0.0.1/magento/index.php"; $...
1
vote
1answer
169 views

Look up order with API with Phone number

I am trying to look up all orders for a user based on there Phone Number using the API. I have built an application that uses Web Sockets inside of SugarCRM to do a Popup when a phone call is coming ...
3
votes
0answers
432 views

Magento single sign on from different servers [closed]

I have Magento running on one server and I would like to check from a different server, same domain, different subdomain, whether a customer is logged in. Basically customers log in to Magento and ...
0
votes
1answer
2k views

v2_Soap API on an elastic beanstalk setup with a separate admin server stopped working after 1.81 upgrade

Currently, I have my app servers deployed through Amazon Web Services Elastic Beanstalk. I have a separate EC2 instance set up as a backend admin server that is only accessible from our office. The ...
3
votes
2answers
2k views

Custom API specify multidimensional parameter

I already created custom api where I am able to pass array item (for example $data = array('date'=>'2013-12-22','operation'=>'import','successful'=>'1', 'requeue'=>'0');) but I would ...
2
votes
0answers
167 views

get result of order in magento via API [closed]

it try to create order from shopping cart in magento via API , first i set customer, customer address, shipping and payment methods and it`s return me true then i use this code to create order $...
8
votes
2answers
11k views

Custom api Invalid api path

So I followed this example for creating custom api. But I am not sure if I am calling it wrong or my code is not correct. Here is what I have. Folder structure: Mycompany Syncreports etc ...
1
vote
1answer
692 views

magento : add product to shopping cart via API

i want to add product to shopping cart via API , i use this code //return "Add Product To Cart ... "; $proxy = new SoapClient('http://mymagent.com/api/v2_soap/?wsdl'); $sessionId = $...
0
votes
1answer
674 views

Call an third-party API on Magento basic operations like Update Customer

I need to do calls to an Third-Party API when customer updates his account for example. I'll need another actions too, but I think if I understand that one I can try to do the other ones, like update ...
1
vote
1answer
78 views

magento 1.7 - API - determine if detail is simple, bundle, or component of bundle (Part II)

follow up to magento order API determine if product belongs to a bundle I am extracting new orders in Magento using API. I would like to know how I can tell if this is a simple product, bundle or ...
0
votes
1answer
261 views

magento order API determine if product belongs to a bundle

I am extracting new orders in Magento using API. I would like to know how I can tell if this is a simple product, bundle or component of a bundle. To get details I use soapObject method for ...
1
vote
2answers
554 views

Magento XML RPC API - Coupons

I am trying to pull a sales order coupon code using the XML-RPC API: http://www.magentocommerce.com/api/soap/sales/salesOrder/sales_order.info.html I don't see this field available. Can I pull order ...
1
vote
2answers
2k views

Bulk add products in Magento using SOAP API V2

Is there an way such that i can add 100 items in a go through a single API call.Am a .Net developer new to Magento API.Am using Magento SOAP V2. i am able to create single items.I check the method "...
0
votes
2answers
861 views

Filter product with less than two categories

My SOAP api script should list products that are in one or none categories. I don't know how filter works with category_ids: $filters = array( 'category_ids' => array('like'=>'???') ); $...
0
votes
1answer
765 views

SQL error with API call

I have a module which extends Magento API (SOAP). I make the call using an external file and everything is fine. When the same call comes from another system (the extension for API is for a mobile app)...
0
votes
2answers
787 views

Updating product price overrides every single property of default store view

I have a schema with multiple websites, one store for each website, and multiple storeviews for each store / website. I want to update a price in the Default Values with the following code: $product ...
2
votes
3answers
7k views

Set product price with multiple websites

I have setup my Magento with 2 websites, with ID 1 and 4, and one store for each website. Default website is 1. My product has a Default price. How can I set programmatically a price for website 4 ...
4
votes
1answer
5k views

Get product prices with multiple websites

I have setup my Magento with 2 websites, with ID 1 and 4, and one store for each website. My product has 3 prices: a Default price, and a price for each website. How can I get these 3 prices ...
1
vote
2answers
211 views

How to clone a product to a different website

I need to write some PHP code in order to enable my collection of products to a new website (same Magento installation). Here is the small code snippet I have written so far: $_productCollection= ...
9
votes
2answers
20k views

How to integrate magento REST API with third party?

I was just trying to finding information about REST API. There are some examples at magento resource and some private blogs. All are same!! As basic info I found if I want to update products through ...
2
votes
1answer
2k views

Extending Magento API with customer login

I followed a lot of tutorials about how to extend Magento API but I didn't figure it out why I always get "Invalid api path." My goal is to extend Mage_Customer_Model_Customer_Api in order to add a ...
2
votes
2answers
2k views

Magento API Documentation

Where can I found a Magento API documentation that list all Magento technical functions? I found this link http://docs.magentocommerce.com, however this documentation is not complete and not very ...
0
votes
1answer
85 views

Generate SOAP request from UI transactions

Is there a way to generate SOAP API requests from actions taken in the Magento UI? For example, adding a shipment to an order. This would be helpful for testing the API for a particular site.
2
votes
1answer
254 views

Magento 1.7 doesn't return token key

I installed magento 1.7 and test for rest api according to this link. http://www.aschroder.com/2012/04/introduction-to-the-magento-rest-apis-with-oauth-in-version-1-7/ When I request to this http:/...
2
votes
2answers
1k views

How can I properly trigger shipment emails via the SOAP API?

The shipment functions seem to be flawed such that shipment.create can trigger an email, but the shipment template includes values that cannot be filled in because tracking numbers cannot be added ...
3
votes
5answers
5k views

create customer in magento via SOAP API

i was trying to create customer in magento via SOAP API (customerCustomerCreate (SOAP V2)) in android app , but i get this error : SoapFault - faultcode: '100' faultstring: 'Customer email is ...
3
votes
1answer
102 views

Can a custom price be provided for an item when added through the API?

We use the SOAP API to process orders and carts, and would like to able to override the default price in some cases. I have played around with the options and bundle_options variables as outlined in ...
4
votes
1answer
3k views

API working but doesn't return any data?

For testing purposes I've setup a REST Guest role with "All" access across the Catalog in my store, so I can throw some queries at the API whilst I find my feet. Using Simple REST client in Chrome ...
2
votes
3answers
2k views

How do I perform keyword searches via REST?

Does Magento support keyword searches via REST or must it be extended to do so? I'm very new to Magento, and have been tasked with developing an extension that needs to perform product searches via ...
1
vote
1answer
751 views

How to filter by color using XML-RPC and Python

I'm using "python-magento 0.3.3" to fetch products from Magento Enterprise 1.13.0.2 via XML-RPC. Getting an unfiltered list works. Filtering by 'sku' or 'description' works. However I cannot filter by ...
2
votes
2answers
2k views

Get correct product URL from SOAP API

Using the SOAP API, how can I get URL for the product (when requesting from catalog_product.info) that will always work? Using url_key and appending ".html" is not good enough because in many stores ...
2
votes
0answers
226 views

Order Import or order creation via api [closed]

I have shifted my store from Magento Enterprise to Magento Go, now I need to require to import orders from enterprise to go but there is no functionality in magento for this and also I didn't find any ...
1
vote
1answer
2k views

Change minimum password length for customers in SOAP API

TL;DR: how do I change the minimum password length requirement for customers created via the SOAP v2 API? I need to change the minimum password length requirement for customers created via the SOAP ...
2
votes
2answers
474 views

Magento and Microsoft RMS integration [closed]

Does anyone have a recommendation for integrating with Microsoft RMS? I'm looking to sync products (and inventory count) between the two systems, as well as pass sales orders from Magento to RMS. I've ...