Questions tagged [rest]

Denotes questions related to the REST API on Magento

Filter by
Sorted by
Tagged with
1
vote
1answer
131 views

How to add new product in Magento 2.1 by Rest API?

I read this page http://devdocs.magento.com/swagger/index.html, but I couldn't find any API for adding new product to website.
1
vote
1answer
402 views

How to request for token in REST Api in magento 2?

I have consumer key and secret key for Rest API in magento2 How Can I get token from magento side?
2
votes
3answers
4k views

How to use Magento 2 API?

Trying to integrate magento 2.0 with a desktop application (i.e the desktop application should be able to create products & download orders) using the REST API. I am trying to make a 'POST' call ...
3
votes
1answer
3k views

When i request for token(REST API).It returns the following error…

When I am using content type="application/json",I cant passing any parameters and also returns "message": "Decoding error." When I am using content type="application/x-www-form-...
0
votes
1answer
311 views

Can't create category with id with REST WEBAPI (categoryrepositoryV1/POST)

when i try to call the REST API categoryrepositoryV1 with SOAPUI to create a category (With POST) it says my id doesn't exist. { "category": { "id" : "16", "parentId": 13, "name": "...
1
vote
0answers
93 views

API not allowing attribute codes > 30 characters

I have tried updating the ATTRIBUTE_CODE_MAX_LENGTH value in ../magento/module-eav/Model/Entity/attribute.php. I've cleared the cache, reindexed and rebooted the server but, the changes don't seem to ...
0
votes
0answers
3k views

Magento REST Api error “Request does not match any route.”

create new rest api using magento 2 app/code/AlanKent/CalculatorWebService/etc/module.xml app/code/AlanKent/CalculatorWebService/etc/di.xml app/code/AlanKent/CalculatorWebService/etc/webapi.xml ...
1
vote
0answers
727 views

magento2, using REST api media upload

I am Trying to upload image using rest api but it gives string(116) "{"message":"Consumer is not authorized to access %resources","parameters":{"resources":"Magento_Catalog::products"}}" My code is ...
2
votes
2answers
2k views

The requested Payment Method is not available When creating an order

We get The requested Payment Method is not available error when we try to create order using REST api.payment method works fine with all online orders and i am using given api. Request- (Put) http:...
2
votes
0answers
508 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 ...
0
votes
2answers
387 views

Magento 2 REST API returns JSON in Chrome, but XML in Firefox

Today I've discovered a strange thing. When I create an XHR request in Chrome to the REST API, it returns JSON data. However, the same request in Firefox returns XML data. If I open the URL directly ...
0
votes
3answers
4k views

Magento 2 Rest api created category not displaying backend

I created Product category using rest Api. It doesn't give any error and it give category id and others its sign to it created successfully but I checked in backend it does't appear .I try to re ...
5
votes
1answer
4k views

Adding new order field to API response: /V1/orders/:id without using extension_attributes

So basically I want to extend the existing web-service /V1/orders/:id for adding new order field (say: erp_id). It's a field in sales_order table and it's available when you load the $order object. ...
2
votes
1answer
94 views

Magento 2.1 Navigation is not displaying categories correctly

Has anyone experienced this issue? There is only one category that will show up in the menu and there are no subcategories that will show up. I've tried: *both developer mode and production *cleared ...
5
votes
0answers
6k views

Confirm email after Customer signup magento 2

I am developing a e-commerce mobile application using magento 2 REST apis. The sign up api is working perfectly. Signup Api-> http://{{domain_name}}/index.php/rest/V1/customers Also I changed ...
0
votes
1answer
431 views

Fetch scaled product thumbnails through REST API

In Magento 2 I see that the REST API only provides the path to the originally uploaded images. I would like to be able to use Magento's scaled thumbnails directly in my headless store front. Ideally ...
0
votes
1answer
841 views

retrieve the oauth access code in magento 1.9

$callbackUrl ="http://host/mgstore/customApi/test.php"; $temporaryCredentialsRequestUrl = "http://host/mgstore/oauth /initiate?oauth_callback=".urlencode($callbackUrl); $adminAuthorizationUrl = 'http:/...
1
vote
1answer
2k views

Magento 2 - Add image to category programmatically

I'm trying to create a web service rest to add an image to category, but I can't find the Model method that allow to do this. I'm looking for something like addImage of Magento\Catalog\Model\...
2
votes
1answer
705 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 ...
26
votes
4answers
21k views

Magento 2 - Create order using REST API

I need to use the Magento REST API to create an order from a mobile client. In my case, mobile side will implement the payment directly using PayPal SDK. What I need to do is to create an order by ...
0
votes
1answer
530 views

Which authentication to use for a REST client with Magento 2.1?

I am due to develop a REST client (C#) which will be used for updating stock/customers/products etc. for a Magento 2.1 instance on a remote server. I think that I should use Token based ...
4
votes
3answers
3k views

Magento 2 REST API PayPal Payment method

I am using REST API to create orders. I would like to know which is the right API call and payload if paypal express checkout is the payment method to process payment and generate invoice.
5
votes
0answers
410 views

Paypal Payload for Payment Rest API 2

Can anyone help me for payload of paypal standard we are trying two api's nothing works for us. We tried multiple payloads already but no success in order placement. POST /V1/guest-carts/{cartId}/...
3
votes
0answers
528 views

Magento 2.1: Custom Option IDs regenerated during site edit - how to manage?

I am developing an interface between Magento and Epicor 9 and we access our customer's orders using the REST API. When the customer buys one of our custom products, they modify their order using ...
3
votes
1answer
3k views

Trying to add product with description via REST

Apologies if this is a silly question, I'm sure it must be but I just can't seem to figure out how you are supposed to add a product's description via REST. The REST API docs at http://devdocs....
13
votes
1answer
4k views

Magento2 Rest API Order Flow

I am making REST API calls to magento website for order placement. Below is the sequence of my calls. Create a cart rest/V1/guest-carts/ Get the cart rest/V1/guest-carts/...
0
votes
1answer
551 views

Magento REST API - Unable to Login using buyer username and password

We are trying to use the REST API for building a Mobile App. I'm able to retrieve the product list using following URL /api/rest/products as a guest. However if i try to retrieve the product list as ...
4
votes
2answers
980 views

Magento 2 Api Integration

Hello I'm trying to use magento 2 Rest and Soap integrations when I try to activate my integration I get the error Unable to post data to consumer due to an unexpected error these are my current ...
2
votes
1answer
5k views

Magento 2 Rest API - How to add custom option to Cart Item?

I am using Magento 2 default quoteCartItem restful APIs to add, delete and update items in cart. Things are working as expected. GET /V1/carts/{cartId}/items POST /V1/carts/{cartId}/items DELETE /V1/...
1
vote
0answers
32 views

Doubts regarding creating Magento Mobile App

We are planning to create a mobile app for our magento web application. However i'm bit confused on where to start from. We have decided to use the magento REST API Now my doubts are Are there ...
1
vote
1answer
639 views

Limit REST API access to specific store view

I am looking for a way to limit the access for specific REST users/roles to specific stores. I am aware that I can pass a /store/storeid parameter for a GET products call, but I can´t use that with ...
4
votes
1answer
634 views

Differences between Magento 1 and Magento 2 REST API?

What's the difference between endpoints and integrations? My main question is for basic things like products, orders and customers, but also like an overview.
2
votes
0answers
398 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-...
6
votes
1answer
1k views

Magento SOAP API call limit?

Is there a limit on API calls using Magento's SOAP API (V1)? The product page for a store I'm working on requires several calls to the "cataloginventory_stock_item.list" method, once for every "simple ...
1
vote
0answers
118 views

Magento 2 code to get Magento 1 product detail via rest api

I would like to use Magento 1 rest api to get the product details in Magento 2. Can anybody help me out on magento 2 code for getting the product details from magento 1. http://devdocs.magento.com/...
3
votes
0answers
96 views

How does a REST API URL look like without rewrites?

Magento ships a rewrite for from /api/rest to api.php?type=rest. In case I can not or don't want to use that rewrite, how would I have to change a rest URL such as /api/rest/orders ? api.php/orders?...
2
votes
1answer
252 views

Can Magento 2 handle REST updates from a Multi-threaded application?

I have a question regarding Magento 2's REST API. We've developed an integration between a CounterPoint Database and a Magento 2 website. One of the bottlenecks in performance is updating product ...
5
votes
3answers
4k views

Magento 2 - Construct a HTTP Post REST API

I construct a REST api using POST as follow etc/webapi.xml <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../...
3
votes
0answers
618 views

How to get images of products in cart using rest API

Doing a request to "V1/guest-carts/666ef786077b70c95016727cfaf21830/items" will give: [ { "item_id": 129, "sku": "24-UG05", "qty": 1, "name": "Go-Get'r Pushup Grips", "price": ...
1
vote
0answers
550 views

Checkout experience via REST API Magento2 - how to setup quote_currency

Here is the the situation: I created the entire checkout flow using APIs (created empty cart, add products to cart, set shipping/billing address, shipping info, payment info and converting quote to ...
1
vote
0answers
7k views

REST API is deprecated for versions v2.1 and higher (12)

In the last days i got this error on my magento. Problems are on my checkout/onepage that returning to cart instead of success. I saw that it can be a facebook problem with the upgrade (after 7th aug ...
4
votes
1answer
3k views

Swagger UI not working in Magento2: json schema not found

I'm trying to view the cool interactive Swagger UI on my own running Magento 2.1 instance. When I go to https://example.com/swagger it shows the swagger header, but under it is an error message: Can'...
0
votes
1answer
1k views

Magento Rest Api Error

I have created a shopping site in magento now I would like to set up its mobile app using REST API. To set up, In the backend, I created an admin REST Role named “programmer” with all api resource ...
1
vote
0answers
108 views

How to create REST API in magento after configuring REST Roles , OAuth Consumers and Users with that role?

I am not that much aware of API. I have created REST Roles and OAuth Consumers. After that i have created New user and assign that role to that user. I know that I need to create one php or xml file. ...
0
votes
1answer
139 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 ...
2
votes
1answer
325 views

What is the REST API call to create a product with the image already hosted on a CDN

Background: All of our product images are hosted on Amazon S3. Magento is going to be hosted in a load balance / multiple instance Docker setup. The hosting environment is only going to provide the ...
1
vote
1answer
836 views

Magento REST API Errors

I would like to create mobile app for my magento site for that I have created REST consumer and I got consumer key and consumer secrete.. Then I create rest.php file inside rootdirectory/api/rest. ...
2
votes
2answers
586 views

How to get response from api?

I want to get response from API. function curlExec($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); ...
4
votes
1answer
1k views

REST API PayPal does not call setExpressCheckout method

When making orders through REST API and selecting payment method paypal_express there is issue with invalid token. 1) Create guest cart through REST API: Send POST request to http://example.com/...
5
votes
1answer
1k views

Magento 2 REST api for guest cart - display product in Magento's checkout

I have an Ember app that handles adding to basket via the REST API. I then want to jump back into Magento's front end for the checkout process, however the cart is empty. Is there a way to pass a ...

1
9 10
11
12 13
16