Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [rest-api]

Magento REST API defines a set of functions that a developer can use to perform requests and receive responses. These interactions are performed using the HTTP protocol.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

How to change/update payment information for order using REST API?

I've created an order (id=10) in Magento, I can verify that it exists by: GET /rest/V1/orders/10 which will respond with something like: { "entity_id": 10, "global_currency_code": "SEK", "...
0
votes
0answers
18 views

How to show Optional parameters in Swagger for Magento 2 custom REST API

I have created custom API with required parameters as: <route url="/V1/lorimcode/request/:reference/:amount" method="POST"> <service class="Vendor\Module\Api\...
0
votes
1answer
23 views

Unable to get Stock Item via REST API

I have a product with a very weird SKU (which is valid in Magento 2.3.2): Although, REST API requires using SKU as a part of URL to get the stock item info. How is it possible to use that SKU as a ...
0
votes
1answer
12 views

Issue with API bulk action using RabbitMQ

I'm using RabbitMQ with Magento Community 2.3.1 version to handle Bulk REST API actions to update products. That works fine. But sometimes, with same messages, one item of the bulk action is not ...
0
votes
0answers
11 views

Product thumbnail and color attributes in sales order rest api

I am using sales order rest api /V1/orders/ I am getting a response in postman but I want the product item image and color attributes also in response. How can i do this. any help?
0
votes
0answers
9 views

Create Gift Card Accounts using REST API without a cartID

Looking over the REST API reference in Magento2 here https://devdocs.magento.com/guides/v2.3/rest/list.html I see that cartID is required to create Gift Cards. GET /V1/carts/:quoteId/giftCards ...
0
votes
0answers
16 views

Magento Tax issue on checkout using Rest API

I am facing issue with tax on the checkout using magento 2 rest API. API always return tax amount 0 for all cart items. On web everything is working fine but getting issue with API. My magento ...
0
votes
1answer
12 views

Rest API error “ ”resources“: ”Magento_CatalogInventory::cataloginventory“”

I am trying to fetch the quantity with https:mydomain.com/index.php/rest/V1/stockItems/24-MB01 I got the following error : "message": "The consumer isn't authorized to access %resources.", "...
0
votes
0answers
9 views

Default Swagger is not loading on 'Server', Failed to load API definition | Magento 2

I have custom rest APIs in custom modules and all are working well in local server as well as staging server. But I can access default swagger ui tool only for local server and not for staging server....
-1
votes
0answers
25 views

Magento 2 How to connect with another delivery module api [closed]

who to use other libraries in module this for create custom module delivery .(magento2.2) how to connect and use this doc Thanks
0
votes
0answers
16 views

Magento 2 - Custom Variables API

I was wondering if there is an API for the Custom Variables in Magento under System > Other Settings > Custom Variables. Going through the System > Integrations > API lists it as ...
0
votes
0answers
35 views

Magento2 : Not able to apply coupon code from checkout page

When I apply coupon code from the checkout page then I will get invalid routes error and when I have checked in the console request then I will get the 404 error from the API request. Coupon code is ...
2
votes
0answers
17 views

how to create custom api to get customer collection magento 2?

I am beginner to create API in magento 2. Can anyone help me step by step process to create custom api to get customer collection. Which is better REST & SOAP? Also, How can I test this custom ...
2
votes
1answer
26 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.
0
votes
0answers
6 views

How can I get the product list in descending order by the quantity of the product using REST API in Magento2?

I want to sort the product list by quantity using the REST API in magento2. I tried below endpoints : rest/V1/products&searchCritseria[sortOrders][0][field]=quantity_and_stock_status&...
0
votes
0answers
21 views

Update order status via API

I need to build module that should update the order status via API with tracking number , qty shipped etc.. I have the basic API module but I am stuck with how to update the data Any help is ...
0
votes
1answer
22 views

How to Get All Product with pagination using REST API in magento 2?

Using REST API Get all product with pagination. In first page 20 product and second page 20 products ect...
0
votes
0answers
12 views

Having issue to add two attribute in product via Magento rest API

Dear Community Member, My question is how I can add more than two attributes in Magento configurable product. I am using Magento 2.2.1 rest API to add product everything going good except one issue. ...
0
votes
0answers
17 views

Magento 2 : Get custom comment in checkout page via API

I added a custom comment in the checkout page like this $installer->getConnection()->addColumn( $installer->getTable('quote'), 'delivery_comment', [ ...
0
votes
1answer
21 views

2.2 REST API change order STATE

Is it possible to change the order state via the REST API? My issue at the moment is that I have orders stuck in the Payment Review state and I can not Invoice/Cancel/Ship them via the back end or ...
0
votes
0answers
13 views

How to add multiple product with same product name using rest api

Any options to add multiple product with same name using rest api. I want to add multiple product with same name using api.
0
votes
0answers
24 views

How to place order using REST API and stripe payment method in Magento 2

I have used ReactJS for frontend and Magento2 for the backend. I have installed the "Stripe Payments" extension. https://marketplace.magento.com/stripe-stripe-payments.html How can I place the order ...
0
votes
0answers
17 views

Authentication type for API to be used by third party partners | Magento 2

We are creating an API in M2 enterprise edition to sell our giftcodes to a partner. The partner will have functionalities like: To have Store Credit Can buy giftcodes View buy history We cannot ...
0
votes
0answers
19 views

Create Product at Magento 2 Using REST in C#

I'm trying to create a simple Product by Rest API. Response.Status = Unauthorization I wonder if the installation or configuration of something is missing Here is my code public void CreateProduct()...
0
votes
0answers
28 views

How to get Custom Attributes in Carts Item REST API?

End Point: /rest/V1/carts/mine/ Added Custom Attribute Name: Unit Type: Dropdown Response: { "id": 10, "created_at": "2019-10-19 10:23:20", "updated_at": "2019-11-01 09:27:51", "is_active":...
0
votes
0answers
37 views

Magento 2.3.3 import images by API

I'm trying to send images by API but received an error "Fatal Error: 'Allowed memory size of 4294967296 bytes exhausted (tried to allocate 20480 bytes)' in '/var/www/virtual/example.com/hydro/...
0
votes
0answers
14 views

Other paths work, but inventory/ paths don't - Request does not match any route

I have many rest calls working to 2 different Magento 2.3 sites. However this one is giving the dreaded Request does not match any route error on just one of the sites (works fine on the other). http:...
0
votes
0answers
20 views

REST aPI SearchCriterea for Quantity

I try to get all active products with a quantity less then 5. I getall active products via V1/products/?searchCriteria[filter_groups][0][filters][0][field]=status&searchCriteria[filter_groups][0][...
0
votes
0answers
33 views

Magento 2 Rest API return multiple interface class

On the Magento 2, I want to custom return object on my custom rest API, I have code like this on the Hz\Clients\Api\TransactionInterface.php <?php namespace Hz\Clients\Api; interface ...
0
votes
1answer
16 views

Rest API for getting attribute option information

I want to get a list of all attributes. I know that domain.com/rest/V1/products/attributes/{{ATTRIBUTE_ID}}/options will grab an the attribute options, but how do i get a list of all attributes so ...
1
vote
2answers
201 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/...
0
votes
2answers
38 views

How to access all the rest api's in magento

I'm trying to build a flutter app from an existing magento store. How can I access the current REST API of the store? (I'm new to magento...)
0
votes
0answers
87 views

Magento 2: How to add extenstion attributes for the ProductCustomOptionValuesInterface

I need to add product custom added Customizable Options to the product Rest API. I have set that custom options to the below core Interface Magento\Catalog\Api\Data\ProductCustomOptionValuesInterface ...
0
votes
1answer
102 views

CLI command to change env.php 'downloadable_domains'

Is there a CLI or rest interface that can modify the downloadable_domains section in env.php, or do I have to just manually run a sed or awk on the file during my deployment process Thanks (BTW, ...
0
votes
0answers
67 views

How to make Credit card payment in Magento 2 using Rest API?

I am working on Magento 2.3 REST API for a Roku application. Our client wants to give payment option on Roku device for his customers. I have followed these APIs step by step: http://10.1.1.5/demo/...
0
votes
2answers
89 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
1answer
43 views

Magento 2 : Change default REST API response

I have an order collection get out via API How can I change some value in API response via custom module
0
votes
1answer
30 views

Magento 2 REST API Products - limit which custom_attributes returned

There can be a lot of custom attributes for a product and some have very long values. Is there a way to filter the responses to include just one specific attribute_code value? Note: this is not ...
0
votes
0answers
20 views

Magento 2 REST API object Reference?

For example, for the Product object on the POST it gives you a list of the Product properties and their data types, but does not provide any commentary on their use or valid values. Take the Status ...
0
votes
2answers
21 views

Magento 1.9 - How to add multiple products to cart at a time through add to cart Rest Api

I need to forcefully add product Y to cart if product X is add to cart. Both X and Y are individual simple products. The following is what i have done to achieve this: try{ $quote->...
2
votes
0answers
55 views

Magento2 Mobile SSO - OAuth-based authentication

I have been asked by a mobile dev to provide Magento 2 API to create a single sign-on application for my store. I have provided this info: • curl -X POST "https://example.com/rest/V1/integration/...
0
votes
1answer
41 views

Magento 2 Create order from admin user using rest API

I want to create orders from admin on behalf of a customer by using REST API. I have created cart and added items by using the below code. $userData = array("username" => "admin", "password" =>...
0
votes
0answers
13 views

Remove Status Histories Get All Order API Magento 2

How can I remove status histories from Order Fetch Rest API? Any help would be appreciated. Thanks
0
votes
0answers
29 views

Magento 2 GuzzleHttp\Client and CuRl in Controller Not Working

I am working on the integration of Point Of Sale System with Magento 2 shop whenever the user click add to cart button API will hit that API will check the stock in POS if requested product quantity ...
0
votes
2answers
49 views

Magento 2.3 - REST API - Fetch first n order

I need to fetch the first n order with status processing or any other. Does anyone know the API string?
0
votes
1answer
50 views

API url for instant purchase in magento 2.2.6

I am new for Magento and want to create REST API of instant purchase functionality for mobile application using Magento version 2.2.6. I have configured instant purchase option for site and it's ...
1
vote
0answers
28 views

Async REST-Api calls without RabbitMq possible?

I tried to use the "Bulk endpoints" from this example: https://devdocs.magento.com/guides/v2.3/rest/bulk-endpoints.html The answer from Test-Shop was a 500 Error. A normal single Rest-Api call works. ...
2
votes
1answer
71 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.
0
votes
1answer
23 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:...
0
votes
0answers
29 views

Where can I find documentation on Magento error messages?

I'm trying to find documentation containing a list of Magento2 error messages that can be returned from REST API calls, like this for example... {"message": "Invalid product data: %1","parameters": ["...