All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
0answers
17 views

Difference between StockStateInterface and StockRegistryInterface

I was using StockStateInterface to get stock qty, it was working fine in development and staging server but was not working in production server. Then I used StockRegistryInterface to get the result ...
2
votes
0answers
30 views

How to get the ordered items images in the order detail API in magento 2?

I need to get the product image in the order details API of the customer. Please help me to guide how can I achieve this. Thanks in ad
-1
votes
2answers
47 views

How to set the key for object array?

I have create a custom Api and I am getting the response as follws: [ [ { "entity_id": "154", "state": "new", "status": "pending", "...
1
vote
1answer
40 views

How to create a custom API in magento 2 which can be accessed by all the customers only?

I need to create a custom API which can be accessed by all the customers only in magento 2 . Please help.
5
votes
2answers
380 views

How do I post JSON to a web API method?

I want to send a JSON string via API, and then parse the JSON in code. I don't want Magento to try to convert my JSON parameter to a PHP object. I'm trying to add this to the stock registry API. ...
1
vote
0answers
23 views

API V1/orders add product_options

I want add product_options to API V1/orders in items, how to do this? please help me! Im a freshman use magento2. have any easy way to do this?
1
vote
1answer
100 views

Property “FilterGroups” does not have accessor method “getFilterGroups”

I'm sending the request http://10.232.32.64/rest/V1/orders? searchCriteria[filter_g‌​roups][0][filters][0‌​][field]=status& searchCriteria[filter_groups][0][filters][0][value]=pending& ...
0
votes
1answer
49 views

Magento Open Source 2.3 / 2.2 - How many orders / inventary and SKU it can handle?

I'm about to start a project, But my concerned is on the data, the magento 2.2/2.3 can handle. The traffic figures are in 1 Million to 5 million and we are not interested in Enterprise model as of ...
1
vote
2answers
391 views

Magento 2 - Update multiple products programmatically

I'm trying to update products programmatically but I got only first product from array updated. All of products in array have status "2" (disabled) in DB. I'm using $this->...
3
votes
1answer
258 views

How to return search API response from controller in magento 2?

I have an API(ukvehicledata) for search using registration id. I want to integrate with magento 2.2 I am getting response in controller as JSON format. I have converted it into an array. Now I ...
1
vote
1answer
445 views

Magento 2.2: (API) set UserContext user type to customer during token creation

I've been struggling with the following scenario: i have a custom API endpoint to process the guest to customer login. This endpoint basically does the same thing as /integration/customer/token with ...
1
vote
0answers
19 views

Magento 2, how to get all product options with their price of configuration for view reorder by API?

Using Magento 2.2, API, Reorder. I need to get all cart item information from Product Detail page by programmatically. Step 1: Click Reorder from My Dashboard -> Recent Orders I need belove ...
1
vote
0answers
23 views

Magento 2, How to respond array in API without sort

Using Magento 2.2, API. I need to return array sort by value but although I try to sort by value the result still return array sort by key. CODE $listStore = array(); // Store locator collection $...
1
vote
2answers
234 views

Magento 2, How to create API for customer forget password?

Using Magento, API. I need to create an API for customer send forget password. I found the page that allows to customer send e-mail for request change password but I don't how to use this page for web ...
1
vote
0answers
19 views

Magento2, how to get Cart_ID from Quote_ID?

Using Magento 2.2, API. I want to get cart_id from qoute_id for get selected option of configurable product to create order again or reorder.
1
vote
2answers
581 views

Magento 2, When qoute calculate subtotal?

Using magento 2.2, API. I created a web service for add multi-product in to cart, but not calculate subtotal. Help please! CODE /** * * {@inheritdoc} */ public function addMultiItemToCart($email, ...
3
votes
0answers
252 views

How to create API Endpoint in Magento2?

I want to create API route which can list/return products data in JSON or XML format. By creating this endpoint I will be able to fetch the all the products from Magento. Then I will access it on my ...
2
votes
0answers
64 views

REST API: One Magento refuses to accept tokens

I have a weird problem- I am trying to use the REST API in Magento 2. I am using exactly the same method with two other Magento installations successfully, and I was looking for some help debugging ...
1
vote
0answers
40 views

How to create Rest API for Store Wise Site Map in Magento 2?

I want to create Rest API for sitemap according to the store-wise. Which include active, salable and visible products on front-end. Can anyone suggest? How to do that task?
1
vote
2answers
694 views

Magento2 Push notification for IOS and Android

I am creating a native app for my magento2 store, Want to create facility of Mobile notification for different module (default and custom), I have certificate for IOS that will be use regarding this. ...
0
votes
4answers
2k views

Magento 2 token integration error

I can able to get token from http://example.com/magento2/rest/V1/integration/admin/token with Username & Password. Using this token, I can request product details on http://example.com/magento2/...
0
votes
1answer
46 views

Magento 2.2.3 API retuning HTML code while integration between Magento 2.2.3 & Linnworks

Request send POST http://exhaustkings.co.uk/backup/rest/V1/integration/admin/token HTTP/1.1 Accept: application/json User-Agent: Linnworks client Content-Type: application/json Content-Length: 48 ...
1
vote
1answer
450 views

Magento 2 Oauth request token - oauth_problem=Invalid+signature

Magento 2 Oauth error invalid signature while try to get request token from postman
1
vote
0answers
47 views

Getting Error in SwaggerUI in Magento V.2.2

The SwaggerUI has been working perfectly fine but now after installing some Modules, I think the Swagger is not at all working. It's custom module and custom admin theme. I checked the logs and ...
1
vote
2answers
1k views

Magento 2: How To Include 3rd Party Library in Custom Module

As an example, I'm looking to use Zendesk's API to create tickets and other things within my custom modules. They have a Packagist that can be installed via composer: composer require zendesk/...
0
votes
1answer
590 views

Magento 2.2 - Cannot update attribute values

I've created some custom product attributes with REST API, correctly populated them and assigned values to products. Everything works fine in dev environment whereas I got difficulties in staging ...
1
vote
1answer
95 views

Adding extention_attributes to Oder not working

There's an extension in my project and I want to include one of its attributes in the Order object so that Zapier can see that field. I don't have to save that field, it's saved somewhere else, so I ...
1
vote
1answer
331 views

Create order with REST API, without cart

I'm using REST API with token authentication to export data from a M1 to a fresh installation of M2.2.0 installation. Everything works fine with customers and products, but I cannot manage to ...
3
votes
1answer
42 views

Magento APIs mapping to Mobile Per Screen API Request

I'm leading an API team on Magento 2.2 in supporting a mobile development team. The mobile team is asking for APIs to be developed that support an "API per Page" type of architecture where they are ...
2
votes
1answer
233 views

Is there any API for creating and editing catalog price rules in Magento 2.2.x

I needed to perform this task for a customer where I have to create, edit and delete catalog price rules in his magento site based on some backend functionality in another system he runs internally in ...
1
vote
0answers
114 views

Magento 2.2 Rest API not working for Sales Orders and Customers

We are trying to get Customers and Sales Orders from Magento 2.2 Store using token.After creating API Username and Roles, with the same request we can retrieve products but not sales orders and ...
1
vote
0answers
1k views

PHP Fatal error: Uncaught Error: Cannot instantiate interface

I have a preference in di.xml: <?xml version="1.0"?> <config> <preference for="Magento\CatalogRule\Api\Data\RuleInterface" type="Module\Vendor\Model\RuleInterface" />...
2
votes
1answer
752 views

Magento 2 OAuth API - Consumer key has expired

I've created an integration in System->Extensions->Integrations and allowed all access. I'm using Postman to test the API, but I'm getting error: Consumer key has expired. I've tried cache:...