All Questions
590 questions
4
votes
1
answer
8k
views
Magento 2.1.1 Rest API Update price only
Trying to Change only the price of the products with PUT method.
HERE http://devdocs.magento.com/guides/m1x/api/rest/Resources/Products/products.html#RESTAPI-Resource-Products-HTTPMethod-PUT-products-...
1
vote
1
answer
2k
views
magento 2 api. create product with multiple colours and sizes with different image and stock for each variant
I am a noob to the Magento ecosystem. I have read the documentation for the Magento 2 api and understand that I have to create a configurable product but I am not understanding the flow for creating a ...
4
votes
4
answers
9k
views
Magento2 REST api authentication returns 'Decoding error'
I am trying to authenticate via token based authentication. I am using 'Advanced REST client' extension in chrome to test the API.
this is my request
http://local.nomo/index.php/rest/V1/integration/...
0
votes
1
answer
270
views
Getting 404 error while configuring REST API using RestClient in Magento 1.9
When I try to initiate oauth for getting oauth tokens with callback in my localhost, it throws 404 page not found error. I configured consumer key and secret and with oAuth 1.0 and using GET method.
...
1
vote
0
answers
271
views
GET products for my cart with customer token
I want to insert items in a cart using a customer token. I already found how to insert the products but it needs the SKU of the products. The problem is I can't find a way to get the product's SKU ...
2
votes
1
answer
363
views
How to get the categories child category list per store in magento2 rest api
I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.
3
votes
2
answers
3k
views
How can I get the HEX code in Visual Swatch via Rest API
Could anyone help me to find the rest api to get hex or image of visual swatch attribute?
I need the api to return the following,
Label
Value
HEX or Image of the swatch.
Thanks
2
votes
1
answer
436
views
How to Merge guest quote items to customer quote(if customer log in) by magento 2 rest API
If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API.
if anyone found this solutions, please help me.
4
votes
1
answer
1k
views
Merge guest quote items to customer quote(if customer log in) by magento 2 rest API
If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.
I have ...
9
votes
2
answers
5k
views
merge guest quote with customer quote(if custommer log in) magento 2 rest api
if 2 items in cart if customer login both item should need to add cart , Both quote (before login & after login) merge and create final quote which contain all item of customer quote
Refference ...
1
vote
1
answer
2k
views
Magento2 : Set Customer Custom Attribute Value Using Rest API
Property "Mobilenumber" does not have accessor method "getMobilenumber" in class "Magento\Customer\Api\Data\CustomerInterface".
Whenever i am trying to set customer custom attribute value i am ...
0
votes
1
answer
767
views
How to implement MSI (multi-source inventory) in Magento2.2.3 project?
Problem: I need to implement Global inventory management in magento 2.2.3. so that inventory can be synchronize from various sales channel like source(ecommerce marketplace example: amazon,flipkart.. ...
0
votes
1
answer
449
views
Magento2 - rest API on custom module "items" object is not populated
I build a custom module with a stores repository that I query using the following webapi.xml:
<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1
answer
2k
views
Magento 2.1.5 : Reviews REST API
I looked for reviews REST API and I found this link:
http://www.ipragmatech.com/products/reviews-rest-api-magento/
I tried to add review via it using :
POST http://domain.com/index.php/rest/V1/...
1
vote
1
answer
69
views
magento2 rest api ship to name not adding after creating shipment
Ship to name is not adding while creating shipment using Rest Api with below api url:
http://127.0.0.1/magento225/rest/V1/shipment/
Body:
{
"entity":{
"orderId":9,
"store_id":1,
"items":[...
0
votes
1
answer
50
views
Magento 2: Get order via API
I need to get out of order information via api, but i didn't know what to do, anyone help me, thank in advance.
8
votes
1
answer
632
views
What are the use of ExtensionAttribute JoinProcessorInterface and CollectionProcessorInterface at magento 2.2.3
I built Magento 2 Module which has a model and Service contracts/API.
During this implementation, I have followed vinai Kopp article and also magento2 module Magento_Quote.
On this Magento\Quote\...
0
votes
2
answers
2k
views
Magento 2 WebAPI json encode
I'm returning JSON via an endpoint in Magento 2 this bit of JSON looks like the following:
$new_json = [
'component_1' => '[{....}]',
'component_2' => '[{...}]'
];
...
1
vote
0
answers
203
views
REST API: Setting Item Quantity / Need to Get Current Reserved Quantity of an item
Working on using the Magento 2.3 Rest API to set the Quantity of an item available based on a separate datastore. I realize that the formula for getting the Total Salable quantity is based on the ...
1
vote
0
answers
468
views
Magento 2.3.2 Category API returns null attributes for the entire tree
When I am trying to call the REST API for generating the Category tree, it shows null values for the entire attribute except id and parent_id
URL: rest/all/V1/categories
Version: Magento Commerce 2.3....
0
votes
2
answers
5k
views
Get categories and its sub categories REST APi
How to get subcategries for each category in REST API?
I tried to get category as:
https://domain.com/index.php/rest/V1/categories/:categoryID
1
vote
0
answers
346
views
Add comments to an order
So when I look online, it looks super simple... Even the swagger docs show it to be simple, but I've tried 2 different Magento sites now (different versions) and the API simply doesn't work...
Order ...
1
vote
1
answer
257
views
Magento 2.2.6 : Shipment creation using REST API
Unable to create shipment in Magento 2.2.6
I am using the following source code like this in postman
https://test.com/rest/V1/shipment
{ "entity" : { "order_id" : 70, "items" : [{ "order_item_id" ...
5
votes
5
answers
8k
views
magento 2 rest api : get cart items with images
In rest api, I am using "/rest/V1/guest-carts/e3e1fd447e0e315dd761942cf949ce5d/items" method to get the magento cart items. It works well and the result is
[
{
"item_id": 100,
"sku":...
4
votes
3
answers
6k
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.
1
vote
0
answers
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 ...
0
votes
1
answer
381
views
Magento 2.3 call api rest extern
I created a Magento 2.0 module and it calls an external web service with the command \Zend_XmlRpc_Client.
/* REST */
$client = new \Zend_XmlRpc_Client($this->_scopeConfig->getValue('akria_store/...
1
vote
1
answer
516
views
home page banner res api magento 2
I am trying to get an API for banners in home page to list in my mobile app. Is there is a module for that?
Ex:
https://{{magento-host}}/index.php/rest/V1/banners
17
votes
1
answer
4k
views
Not able to get OAuth token for Magento Rest API Client
I am using Magento version 1.9.1.0 and server running on my mac and trying to use Magento Rest APIs using OAuth Integration.
I have a consumer key and consumer secret.
Now, I want to get OAuth token ...
1
vote
1
answer
290
views
Magento API calling using HTML and javascript
I'm new to Magento and I'm developing a PhoneGap app using HTML5, CSS and Javascript. I searched many places and read Magento documentations, but couldn't get any example for authenticating, calling, ...
0
votes
0
answers
182
views
How to upload image by REST api (without base64) magento 1.9
I try to upload an image by rest API in Magento 1.9 version but getting "invalid content-type' error.
Can any one help me for the same?
0
votes
2
answers
4k
views
Return a 304 HTTP response from within a REST API method?
In a custom REST API endpoint method, returning the object promised in the service class interface will generate a 200 OK response. Additionally, I can return a specific HTTP error code by throwing an ...
6
votes
3
answers
5k
views
Magento rest API configurable product and category list
I am having a project using Magento rest API V1, I have read through the documentation and looking for the answer around the web but cannot find the solution.
** First: **
I want to show list of ...
0
votes
0
answers
40
views
Modual to acceess API required?
I am struggling with getting connected to a Magento site's API and getting permission denied. I have manually created an integration using the Admin GUI and activated it with all permissions, I then ...
5
votes
0
answers
603
views
Magento 1.x : Accessing Magento Rest Api as Admin
I am trying to access magento rest api with following script, but is uses default guest role to access, so I cannot access orders and other stuffs. How can I access Magento Rest api as admin.
<?...
1
vote
1
answer
2k
views
Add new customer address REST API : Magento 2
Is there is an API to add new customer address without admin token?
1
vote
0
answers
266
views
When creating products with POST, images Roles are not enabled (base/small/thumb/swatch), even after a following PUT
When I add a product via the Magento 2 API and then add an image, the image is added and shows up under the "Images and Videos" tab, associated with the correct product. However, none of the Image ...
2
votes
1
answer
2k
views
Magento 2 - Get multi-store addresses REST API
I need to fetch the stores addresses using REST API.
We already have storeConfigs but this doesn't return the addresses.
GET /V1/store/storeConfigs
How can we get the address mentioned in the ...
0
votes
1
answer
26
views
As capture the token that came through the head and send it to a function that I created myself?
I'm trying to customize the Magento API Engine 2.
I would like to know if there is any time of the request, before arriving at webapi.xml to capture the token that came through the head and send it to ...
3
votes
1
answer
2k
views
Retrive Configuration data via API
Is Magento giving any default REST API for retrieving configuration (system.xml) data ?.
If yes then share URL.
Else share the best approach for retrieving configuration data via REST API.
1
vote
0
answers
434
views
Restrict access to Customer API Magento 2
My website is getting 300+ spam users for a day, On checking it seems to be from Customer API which Magento provides.
How can I stop this users, Is there any way that I can restrict the customer ...
1
vote
0
answers
39
views
Create customer with default addresses via API
Is it possible to create customer via API and set default billing and shipping address at once ?
I know that in customerCustomerRepositoryV1 and
customerAccountManagementV1 are fields like ...
1
vote
1
answer
401
views
Disabling payment method for frontend, but not API
I'm trying to only allow the "checkmo" payment method to be used when an order is placed through the API, but not available for a customer on the frontend to choose.
Ive tried creating a plugin that ...
0
votes
0
answers
37
views
Magento 2 : Fresh magento 2 API not working?
I have installed fresh magento 2 and when I hit API of anything it doesn't work for me.
Check this url : visit here
It seems like an permission issue and I can't figure out what? If anyone having ...
1
vote
3
answers
6k
views
SOLVED - Api token request Curl returns NULL
I am trying to get a token from my Magento 2 API, my script returns NULL, the call is working fine in Postman and generating a token :
$adminUrl='https://www.xxxxxxx.com/rest/V1/integration/admin/...
2
votes
0
answers
231
views
Get and Add like(Favourite or Unfavourite) product in Magento 2 Rest API With URL?
Get Favourite product in Magento 2 REST API with URL?
And Add to Favourite in Magento 2 REST API with URL?
3
votes
1
answer
2k
views
Magento 2: Run reindexer using REST API
Is any one having tried to create REST API so using custom API one can trigger re-indexing?
which method do i have to mention in webapi.xml file as this is purely AREA::ADMIN activitiy. currently ...
0
votes
1
answer
421
views
How to establish connection between Magento 2 and some ERP Software?
I am working on ERP Magento 2 Connector. I have a query about it
How is it practical to make connection with some ERP through csv formate data. I mean we can create REST/SOAP APIs but how can we tell ...
2
votes
0
answers
350
views
Magneto 2: How to configure a rest api only server for best performance?
I know magento have some recommendations for the best performance.
And I found several articles related.
But nothing specific for servers that provide access only by the Rest API.
Because everyone ...
1
vote
0
answers
33
views
Use different domaine for Admin and Front
How can we use different domaine for the Front and the admin section. If I'm changing the domaine on the base URL of the store config, I'm getting a 404 because there's no admin on this domaine.
I've ...