All Questions
192 questions
4
votes
2
answers
3k
views
Magento 2: Override for product custom option value Interface and model file
I have added custom product option value to below interface ProductCustomOptionValuesInterface.php and Value.php model file.
File path: magento2/vendor/magento/module-catalog/Api/Data/...
30
votes
5
answers
39k
views
How to create order using REST API?
I need to use the Magento REST API to create an order from a mobile client. In my case, the mobile side will implement the payment directly using PayPal SDK. What I need to do is to create an order by ...
2
votes
2
answers
3k
views
How to fetch post method xml data in Magento2 controller
We have to implement the punchout concept in magento2.
There is a 3rd party system they will send data using the cXML format to Magento 2 endpoint. We need to fetch that data in the Magento2 & ...
39
votes
8
answers
6k
views
What is Progressive Web Apps, or PWAs in Magento 2?
What does it mean that Magento is becoming a Progressive Web Application
platform?
What will be the code structure of PWAs in Magento?
What is the deal with REST APIs and PWAs?
4
votes
1
answer
2k
views
Sign Up With Avatar REST API Validation Error : Magento 2
I have this code for image attribute (avatar).
app/code/Ibnab/CustomerPut/Setup/InstallData.php :
<?php
namespace Ibnab\CustomerPut\Setup;
use Magento\Framework\Module\Setup\Migration;
use ...
3
votes
2
answers
1k
views
Rest API - magento 1.9 - Return 403 Access denied - Magento\Framework\Webapi\Exception::HTTP_FORBIDDEN - format - https://abc.in/api/rest/customers
Error : Rest API for customer return 403 access denied error.
Format : website/rest/api/customer -> 403 access denied error
Magento\Framework\Webapi\Exception::HTTP_FORBIDDEN
10
votes
3
answers
11k
views
Magento 2 api - How to get layer navigation filters available in rest api?
I have someone issue in api magento 2. I need get layer navigation data available in product collection ( current category , search product ) but I don't know magento 2 api available it or not . I ...
8
votes
5
answers
61k
views
Magento 2: How to get order information using REST API?
I want to get order,customer information by using REST API.
Anyone have idea about this?
7
votes
3
answers
12k
views
Get Token Authentication For Customer Logged With Facebook & Twitter : Magento 2
Dears, I created a custom REST API, So customer can login Via facebook and twitter through mobile app. The API consists of one service which take some parameters and email parameter and check if this ...
6
votes
3
answers
13k
views
Develop a mobile app with Magento 2 REST API.?
I couldn't find some needed API functions in Magento 2 REST API Document . I am very doubted. Is it possible to develop a mobile application with current Magento REST API.?
I couldn't find methods to ...
3
votes
2
answers
6k
views
Magento 2: Rest API products "custom_attributes" add selected attribute value "label"
Magento 2 product rest API provided custom_attributes and details provided attribute_code and value in /V1/products/:sku API. But V1/products rest API not included custom_attributes details attributes ...
2
votes
1
answer
7k
views
Create product attribute with options in magento2 through rest API
I have created a custom module to create product attribute with option thruogh rest Api.
Here is my code samples.
etc/webapi.xml
<route url="/V1/attribute/attributeCreate" method="POST">
&...
15
votes
3
answers
33k
views
Magento 2 REST API usage with examples
need to call Magento2 rest api in code level how to call default magento REST APIS
4
votes
3
answers
21k
views
Magento 2 : how to create customer using REST API?
I want to create customer using REST API in magento2. I am following this swagger link , but only method is given in this. How to pass parameters of customer in REST API?
Help me in this.
0
votes
1
answer
449
views
get the value of sales_order_address table custom column value in rest/V1/orders/
I'm unable to get the value of sales_order_address table custom column value in
rest/V1/orders/?searchCriteria[filter_groups][0][filters][0][field]=status&searchCriteria[filter_groups][0][...
8
votes
1
answer
3k
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 ...
8
votes
4
answers
7k
views
How to update customer address using custom Api in magento2?
I have created custom API to update customer address using customer id or address id.
Below code I used to implement it.
[Vendor]/[Module]/etc/webapi.xml
<route url="/V1/address/createUpdate" ...
4
votes
5
answers
6k
views
How to get Magento2 product with REST if sku has slash?
Does anyone have an idea about how to get a product with slash through the rest api ?
I have a product with sku 100/1.
The closest I have gotten is to call:
get /rest/V1/products/100%252f1
But it ...
4
votes
3
answers
4k
views
Get all orders of customer using customer's token in Magento 2 API
I want all orders of customer using customer's Token in Magento API.
Which gives the list of all previous orders of the customer.
This API provides me the cart products of specific customer using ...
1
vote
2
answers
9k
views
access to XMLHttpRequest has been blocked
access to XMLHttpRequest 'api link' from origin 'http://localhost:8100' has
been blocked by cors policy: response to perflight doesn't pass access to
contrsol check: it doesn't have http ok status
...
0
votes
2
answers
4k
views
Magento 2: Add product option custom value in product Rest API
I added custom field Image and Qty in Product Customizable Options. I add those filed to Product Option Value in Product Rest API. So how can it possible.
Method: GET
API Request URL:
http://...
0
votes
2
answers
5k
views
Magento 2 Get Value of Custom Attribute on Magento 2 Rest API V1/orders/items
I am trying to get the Custom Attribute I have in the sales_order_item to display on the rest/V1/orders/items API call. I was able to get the Attribute to display on the rest/V1/orders API call. Using ...
14
votes
5
answers
53k
views
Receive Post Parameters In Magento 2 Controller
I am calling HTTP request for controller, I am getting get parameters, but I am not able to receive post parameters in Controller.
Basically I want to call Magento 2 APIs and send customized response ...
13
votes
3
answers
13k
views
Magento 2 Rest Api get Thumbnail Image url
How do we get the url to thumbnail image of of a product through rest API.
/V1/products/{sku}/media
would get us the relative url such as "/m/b/mb01-blue-0.jpg"
and the image url would be baseurl/...
10
votes
1
answer
9k
views
How do I create a configurable product using the REST API v2?
I am trying to create a configurable product called "Kudos Configurable" with options for the user to select from small green, large green, small orange and large orange.
I have got to the stage ...
9
votes
2
answers
22k
views
How to integrate magento REST API with third party?
I was just trying to find information about REST API. There are some examples at Magento resource and some private blogs. All are the same!!
As basic info, I found if I want to update products through ...
7
votes
5
answers
17k
views
Magento 2: How to generate Product URL Key when creating Product from Rest API?
I am creating Product in magento usign Rest API. Using the below format:
{
"product": {
"name": "Product Name",
"sku": "product_name_1498227094",
"attribute_set_id": "18",
"status": 1,
"visibility": ...
7
votes
2
answers
10k
views
Magento 2 REST API checkout payment gateway redirect
I am creating a Magento 2 store that sells virtual products, this site have its checkout directly at the product page. The customers will never buy more than 1 product at a time.
This checkout uses ...
7
votes
5
answers
7k
views
error oauth_problem=signature_invalid for POST
i am using magento rest api for get data and it work very well but when i wanna send data return this error
"messages": {
"error": [
{
"code": 401,
...
7
votes
3
answers
13k
views
Magento2 How to set expiration time for token
I Have generated a token for API calls by using following code :
curl -X POST "http://magento2.ce/rest/V1/integration/customer/token"\
-H "Content-Type:application/json"\
-d '{"username":"john@...
7
votes
2
answers
9k
views
Using searchCriteria while searching attributes in magento 2.0
Fetching attribute info, if I apply multiple filters in a single search criteria, it does not work. But in case of single filter it works perfectly.
Multiple filters HTTP request:
http://192.168.1....
6
votes
1
answer
2k
views
Magento 2 REST - SKU to items on cart totals API response is not available, How to get SKU in response API
Magento 2 Rest API of cart totals doesn't provide SKU, Which is necessary for any operation like extension_attributes
/rest/V1/carts/mine/totals
The return array of Items is
array (size=21)
...
6
votes
4
answers
18k
views
How to add product in Magento using REST API?
I want to add a product using the REST API in Magento 2.
How can I achieve this?
6
votes
2
answers
10k
views
Create Custom Rest Api in Magento2 and solution for "InvalidArgumentException" error
I started on Magento2 Custom rest API module creation
for that i follow the below post
API Module for Magneto2
url:- http://localhost/magento2a/rest/V1/calculator/add/1/2
app/code/AlanKent/...
6
votes
3
answers
23k
views
Magento 2: Update order status using rest API
Guys I want to update order status using API. I am using this api to change the order status but it's not working:
http://dev-jawed.com/index.php/rest/V1/orders
{
"status" : "Out-for-delivery",
"...
5
votes
3
answers
14k
views
How do I create a shipment via REST API?
I'm trying to create a shipment via the REST API. I'm able to edit existing shipments via /rest/V1/shipment, but I can't seem to figure out how to add one. I consistently get a "Could not save ...
4
votes
2
answers
9k
views
Extension attribute in quote item
Hello everyone i would like to add an extension_attribute to quote item in magento 2. I create extension attribute:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
3
votes
3
answers
9k
views
How to expose a custom field from sales_order table to rest api?
I have a custom field delivery_type in sales_order table. I am accessing order using rest api but this field is not present in response.
Requested api: http://localhost/default/rest/default/V1/orders/...
3
votes
2
answers
2k
views
How to use token base Rest API?
I have created custom module and also implemented API in that but I want to
know other two ways Auth base and Token base access.
My webapi.xml file:-
<?xml version="1.0"?>
<routes xmlns:xsi=...
3
votes
2
answers
7k
views
Getting 403 Forbidden response with REST API on CE 1.9.1.0
I'm using this link as my model for testing the REST API, and I get all the way through the authorize prompt to a "403 Forbidden" response (this is for both the customer and admin examples).
Invalid ...
2
votes
1
answer
1k
views
Magento 2 how to stop decreasing stock qty while placing an order in magento 2 via REST API
how to stop decreasing stock qty while placing an order in Magento 2 via REST API
Which plugin or which observer we have to use to stop decreasing stock qty?
I am using event "...
1
vote
1
answer
2k
views
Geting the available quantity for all products via REST API
How can I get the available quantity for all products via REST API?. Do I have to create a new module for this? What is the most efficient way to achieve this?
1
vote
1
answer
13k
views
How to create / update customer information using REST API?
How to create/update customer using REST API in magento2?
I searched a lot on google but not getting any solution for this.
Please help me in this.
1
vote
2
answers
3k
views
Magento 2: Calling Restful Web service GET and POST
Any one knows how to call restful web service from Magento 2?
Please guide me with a format how it can be done.
Any links to guide me with examples of POST or GET etc.
I want to Call below URL in ...
1
vote
1
answer
2k
views
How to add a product to a specific website in Magento 2 codebase via api
My Magento 2.2.4 codebase runs multiple websites, and I am trying to add a product via API to a website with id of "4".
here's the payload of my POST request I tried:
{
"product": {
"sku": "...
1
vote
1
answer
14k
views
Magento 2: Get Product Stock status details in Rest API
Need to get Product Stock Status in products details using Rest API.
Method: GET
Using API URL: http://testwebsite/rest/en/V1/products/sku
Above api returns products details but need also ...
0
votes
1
answer
678
views
Configurable Product Price is 0 in API Response
Dears, Why Configurable products price is always displayed as 0 in rest API response like (sku related to magento 2 sample data):
http://domain.com/index.php/rest/V1/products/MH01
Although it is ...
0
votes
1
answer
1k
views
Sign Up with Customer Image attribute REST API : Magento 2
I added image attribute in customer create account, edit account in Setup/InstallData.php as following:
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{...
0
votes
2
answers
32
views
Magento order notification
I want to retrieve order details whenever an order is placed or updated in Magento. Currently, I am working on integrating orders with CRM. Therefore, whenever an order is created or updated in ...
0
votes
0
answers
516
views
Magento 2.3 Multi website Store /rest/australia/V1/carts/mine/payment-information 404 error
I am using the Multi website store, main website USA, second website Australia. Here my issue in Second Website store (Australia) If i try to pay i am getting 404 error, how to solve this error?
How ...