Questions tagged [rest]

Denotes questions related to the REST API on Magento

3
votes
1answer
880 views

Getting current customer in custom REST API module

I'm trying to build a series of custom requests for an Android app. Specifically I need to make use of the current customer Id in several of my requests. I've only been using magento for a few weeks, ...
1
vote
0answers
192 views

Best practices to use rest & soap together for client android app

I am working on Magento based m-commerce android app. In which I have to use both REST & SOAP web api. Because REST api didn't provide all functionality as SOAP. And to use only SOAP api for whole ...
1
vote
1answer
2k views

Get All customers from Magento using rest API

I am trying to get all customers from Magento, but it giving me only first 10 records, i have searched a lot but did not see any post of comment which can solve my problem. API user has admin rights ...
3
votes
1answer
2k views

Why do I get unauthorized for REST API

I setup the admin to access resources through REST API. Here is my current setup: Then I assigned a Role user for the admin: When I login as an admin and try to access the REST API, I still get ...
2
votes
1answer
407 views

Is Layered navigation available in SOAP / REST API

I'm building web services for an Android application, in that i need to provide an filter something similar to Layered navigation. I've checked in Official Docs of REST and SOAP Web services, Layered ...
1
vote
1answer
223 views

Magento REST API Questions

I am trying to figure out how to achieve the following via the Magento REST API: Create a shipment (to fulfill an order's line items) Void a shipment Add or update the order notes Can you confirm if ...
4
votes
3answers
3k views

No response from POST to custom REST Api route

I set up a working custom route for Magento's REST Api. It works fine for GET requests, as the _retrieve() function of the corresponding V1.php class is being called as expected and returns the data. ...
1
vote
1answer
886 views

REST Api returns empty items

I've been working on a new Magento implementation for a client, and I seem to be hitting a snag with the Magento REST API. I had no issues getting past Oauth. I've run into that before, but my ...
8
votes
1answer
2k views

High-loaded service. Soap vs Rest

I have a task to make an api for Magento using it's SOAP or REST implementation. I've read a lot about both services, also have experience with them. But not in high-loaded projects. The task of ...
2
votes
1answer
5k views

Magento CE 1.9.1.0 - REST API - Log in as a Customer?

I've recently had some success on setting up a REST client via PHP to OAuth authenticate on a Magento 1.8.x backend. I've run the same process over on my Magento CE 1.9.1.0. Expected authorisation ...
1
vote
0answers
92 views

Using Magento API(REST) via IXMLHTTPRequest COM Object

We have downloaded Magento Community Edition ver 1.9.1.0 and installed it in XAMPP ( PHP Version 5.5.15 ). Also we have included "php_oauth.dll" in php.ini and copied file(dll) to PHP/ext directory. ...
4
votes
2answers
3k views

Rest API - Post method to magento/api/rest/products returns 404

Posting product data via magento/api/rest/products returns a 404 but saves the data. Any ideas why this is occurring? If I do a get request I get a 200, this is only occuring on a post method. So I ...
0
votes
3answers
2k views

Create customer with REST API - password does not work

i'm creating customers with the REST-API and trying to give each customer an initial password. Problem is, that when the customers try to log on to the shop with their mail-address, loggin in is ...
0
votes
1answer
760 views

REST API enabled products not displaying on front-end

When loading products via REST API(Oauth) they don't display on the front-end. The status is enabled(1) en inventory(stock_data) is set correct. We have to manually change status per product and save ...
1
vote
2answers
2k views

Magento REST API / Apache and “Content-Type header is empty”

Has anyone noticed this error message "Content-Type header is empty" when POST-ing to Magento REST API? I'm using Postman for testing and very-very surely I'm sending the Content-Type header along ...
1
vote
1answer
2k views

Rest API - how to get custom attributes [closed]

I use the magento (1.7.0.2) rest API to receive sales orders and product information. This works fine. The problem is that we have added custom attributes to our products. A customer can choose those ...
1
vote
1answer
5k views

Access Pre-Authorized Rest API

I'm trying to call Magento REST API with pre authorized access token, I thought it would be easy but for some reason i cant get it to work, i mean i have the four components required, the consumerKey, ...
2
votes
1answer
6k views

The SOAP or REST way

I'm implementing a mobile app that would communicate with Magento, there is a lot of functions/endpoints not implemented in SOAP or REST api, so im definitely going to extend whichever im going to ...
1
vote
1answer
3k views

Extending Magento REST Api with a custom module fails on route

Running Magento V1.9 with Rest API I can extract data using the REST api, but I need to exctract a list of categories and might even have the ability to add a new category through the API. I have ...
3
votes
0answers
3k views

How do I get an access token with OAuth? [closed]

I'm trying to access my Magento store's REST API, but I can' seem to acquire the access token. I keep getting a 400 Bad Request (OAuth::Unauthorized) error. Here's the code I'm using: require 'oauth'...
0
votes
4answers
458 views

Required return class of _retrieveCollection() in extending Magento API

I am creating my own resources by extending the Magento REST API, and I'm stuck on what object class should be returned on _retrieveCollection() for my API to render properly on both XML and JSON ...
1
vote
0answers
1k views

Help using the REST api and Java [closed]

I'm having a bit of issues with the REST api, I can't find any documentation that shows me all the fields that I can use and the official documentation at http://www.magentocommerce.com/api/rest/...
16
votes
0answers
13k views

REST API returns 404 [closed]

I am using magento community edition 1.9.0.1. I try the REST Client Example explained here: http://www.magentocommerce.com/api/rest/testing_rest_resources.html But every time I send a request I got a ...
1
vote
1answer
3k views

Rest api, tokens?

Is there anyone that can give me a really detailed guide how to get the access token and Access token secret? i've found my Consumer key in my magento but after that i'm lost :( Where can i find a ...
0
votes
1answer
602 views

Using filters in REST API doesn't show results

I'm trying to use REST API with filters but apparently it doesn't work. With http://192.168.10.99/api/rest/products/2 I get the following result: <magento_api> <entity_id>2</...
5
votes
3answers
5k views

is it possible to create mobile app using the rest api / or soap?

I'm evaluating is it possible to create a mobile app by using the rest api / soap. i've checked the rest api, seems there are some feature are missing in rest api, for example: adding the product into ...
2
votes
1answer
1k views

OAuth for REST API using PHP

I'm looking for a working example of a PHP script for authentication using OAuth. I have followed the testing instructions here (http://www.magentocommerce.com/api/rest/testing_rest_resources.html) ...
8
votes
1answer
2k views

Getting started with Magento REST API

So the official documentation is very terse (bad!), particularly for someone who hasn't worked with REST/Oauth in the past. I'm using Magento 1.8.1 CE. Can somebody provide a simple PHP example of ...
0
votes
2answers
854 views

How to obtain a JSON order rendered by the REST API in the sales_order_place_after event observer

I have an observer for the event "sales_order_place_after" that needs to take the order and transform it into a JSON object to be sent to an external system (over REST). However the JSON ...
0
votes
1answer
359 views

Retrieve via javascript/jquery/ajax/ReST the category tree

I was looking for a way to get the category tree via ReST API. I looked here but it doesn't seem to show how to fetch the category tree (it has an entry point which lists a product's assigned ...
1
vote
1answer
2k views

Extending Magento REST API V2 breaks existing API

I am trying to extend the Magento CE (version 1.8.1.0) REST API V2 for orders. I want to customize the original order query so that the response includes an additional attribute "multifees". ...
1
vote
1answer
194 views

How to return a response from _create api rest method

By default this method returns an empty JSON , i want to how to return some response such as "correct" or "fail" , for example
5
votes
1answer
3k views

Invalid Signature - add a product using Magento REST API

i have created AccessToken and AccessTokenSecret as mentioned in the Oauth Rest API Documentation and I am able to retrieve the products using GET Request. But when i try to Create a new product (POST ...
4
votes
2answers
655 views

Getting http code 400 on Magento REST API call where token has 'admin' & 'all' privileges

I'm trying to create a customer using the Magento REST API. I can use my token to retrieve/update data just fine, but for whatever reason I am unable to create an account, regardless of the ...
1
vote
1answer
743 views

use magento rest api to manage attribute sets

i want to manage attribute sets of magento using rest api like i use to manage products (insert, update and delete). The resources in the rest api documentation http://www.magentocommerce.com/api/rest/...
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 ...
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 ...
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 ...
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
253 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:/...
4
votes
1answer
2k 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 ...
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 ...