Questions tagged [api]

An application programming interface (API) specifies how some software components should interact with each other.

8
votes
0answers
857 views

Magento2 : API Stock update

Using Magento 2.2.2, I was trying to add stock updates to a pre-existing setup using the official defined endpoint: rest/V1/products/testsku/stockItems/1 with { "stock_item": { "qty": 1234, ...
1
vote
0answers
18 views

How can I send invoice email via api?

I have an order id. On basis of that I need to send the already created invoice to the customer.
0
votes
1answer
782 views

Magento 2 API get product price

I'm building an iOS application for my store, and I'm looking for a way to get the correct price of an actual product. Looking at the API I only find requests to get raw product information. http://...
0
votes
0answers
20 views

Magento2 pass json data format in call to external service

Currently I'm referencing this article to post data to external services in a form data format. Some of the external services require in json format. How should I do it if I want to pass json format ...
3
votes
1answer
676 views

Getting all attributes of products does not work in Magento2

I want to create custom API module that will return the same thing as: /V1/products REST API endpoint. In order to do that I created the following custom endpoint: public function __construct( ...
1
vote
1answer
855 views

Magento 2 RESTful API update category

I am using Magento 2.0.11. I would like to use the RESTful API (HTTP:// magento2URL/index.php/rest/V1/categories/(category ID)) to change the "Is Active" attribute of one category from True to ...
0
votes
1answer
738 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:/...
0
votes
1answer
746 views

Get pending, completed, processing orders REST API problem

I have an API module to get orders with any status for a specific customer. I am calling the API as : https://{{magento-store}}/index.php/rest/V1/order/myorder?status=processing and authoriaztion : ...
-1
votes
2answers
29 views

We would like to call an event which is observed from admin as well as from API, which area I should use?

Please Help me on this point i'm new in thie area , I would like to call an event which is observed from admin side as well as from API, in which area I should put my events.xml an dmy observer file ,...
1
vote
1answer
758 views

REST API Access Token Issues

I am trying to use the Magento REST API for a client to get details of customers, and orders, etc. I have setup a REST Consumer and I am trying to obtain an oauth access token and having issues. I ...
0
votes
2answers
20 views

Magento 2.3 Custom Rest Api get size limit

I have made custom API which returns the categories with the products in them like this: array( key: Category name values:product1,product2,...productX ( where product is an array: array(id,price,...
9
votes
1answer
955 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 ...
0
votes
0answers
12 views

Product Variants Magento 1x

I am trying to use the magento 1.x REST API to get product variants as well as options. I also have access to the SOAP API V2 with WS-I turned on. I can't figure out how to find out if a product has ...
0
votes
0answers
14 views

How to convert API xml data to array in php

We use API for get data. In API has multi product data. But we get it in XML. How to convert it in array; so we save it it particular product.
0
votes
1answer
42 views

Magento2 How to get parent product(configurable) by child product using REST API

How to get parent product(Configurable) by child product(Simple) sku or id using REST API? I can't find in this list: https://devdocs.magento.com/swagger/index_22.html plz help me..
0
votes
1answer
45 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 ...
4
votes
4answers
769 views

best practice to connect Magento 2 to price/product service

I have my own price/product service that I need to connect to Magento. The service has a variable amount of products with very variable prices. The price can change with every request a customer makes....
0
votes
2answers
825 views

Magento SOAP V2 API Unknown error

this is the first time I use Magento, and I'm trying to make an API, but Im getting some errors. When I try to call a custom SOAP api method, I'm getting this error: Uncaught SoapFault exception: [...
17
votes
0answers
3k 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
2answers
69 views

Magento 2 how to add product dimensions using rest api

I can add simple products to Magento 2 just fine and adding the weight is no problem at all I do the following: $data = '{ "product": { "sku": "' . $row["item_number"] . '", "name": "' . ...
1
vote
1answer
54 views

Set Length, Width, Height OOTB Attributes Using API

Currently I can only change weight using api not Length, Width and Height. these are out of the box attributes in magento 2.3 as seen in the product panel below. Price and weight is updated by POST ...
0
votes
1answer
40 views

How to add/update product from magento 1 to magento 2 website [closed]

Website 1 - www.domain1.com (Magento 1) Website 2 www.domain2.com(Magento 2) If any product is uploaded on Magento 2 I want to also upload on Magento 1 it's possible?
0
votes
1answer
46 views

Magento 2.3 disable or secure API access

In the developer docs I've found the option to unrestrict API access. Is there an option to restrict access to the API for everything i.e. nothing is anonymous? Or is there a way to disable the ...
1
vote
1answer
781 views

Add new customer address REST API : Magento 2

Is there is an API to add new customer address without admin token?
0
votes
0answers
15 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
1answer
172 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
1
vote
1answer
23 views

Payment information API returns 400 error

Link http://protectcovers.ga/rest/store_view_eu/V1/guest-carts/ddukH6HL2TlFsm9WkJmOkMDSqmkiUfbW/payment-information I tried to send the next json: { "cartId": "ddukH6HL2TlFsm9WkJmOkMDSqmkiUfbW", ...
0
votes
1answer
754 views

Adding value to the additional attribute of product via SOAP V1

I have created one additional attribute with dropdown field. When i add values via SOAP v1, i could not be able to add. following is my code $result = $client->call($session, 'catalog_product....
1
vote
4answers
2k views

Get order address VAT ID via soap api v2 webservice

How can I get VAT ID for my orders through SOAP API 2? The field name is vat_id and is visible in order addresses (Billing Address and Shipping Address) like below: John Doe Company Co. Street 1 ...
1
vote
2answers
865 views

Login into Magento 2 site from external site

I have a site outside Magento's domain and I should allow Magento customer to login into Magento Store from this external site. Being completely new to Magento , I don't know how to implement this ...
1
vote
1answer
24 views

Magento 2 How to include custom library in controller

I have created custom extension with some library classes. I have placed the libraries in lib/internal/SSOSdk folder. I need to include one of the library class in my controller. I have used the below ...
1
vote
2answers
1k views

How to get Custom HTTP header in Magento2 controller?

I'm accessing my controller via postman tool (Postman) I've passed custom header as shown in image and trying to access it in controller through this code: $this->_response->getHeader('APP_ID'...
2
votes
0answers
44 views

Magento2.3 checkout page getting error

I used magento2.3 - when i go to checkout page this error comes below.please if anyone know regarding this reply me Error occurred during "shipping_address" processing. Error occurred during "...
0
votes
0answers
14 views

how to implement Device id in magento1.9.3 api?

How we can implemented device id with customer id in magento1.9.3(admin and api) please let me know step by step.
0
votes
1answer
42 views

Is it better to use Vue.js storefront as a frontend for magento 2?

We have to lunch a new store and planning to use Vue.js storefront on frontend. -> Will it be feasible easily - data will be interchanged using APIs -> Would there be any security issues ? -> Any ...
1
vote
1answer
37 views

Problem with importing from Cludes ERP System to Magento backend

I am importing products from Cludes ERP System, but Product base image is not set in Magento backend:
3
votes
1answer
918 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 ...
1
vote
1answer
948 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/...
0
votes
0answers
18 views

Additional field In customer Registration API

I am using magento 2.1.5, and i am using default API for customer registration. now i added one more field "business" in registration page and want to add in API response also. How to add this filed ...
0
votes
2answers
38 views

how to use curl for external api call in magento 2

How do I make a post request with curl without using a button, but instead calling the external API when a field is filled out
2
votes
4answers
10k 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?
2
votes
1answer
40 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 ...
1
vote
1answer
59 views

Magento 2 how to use RepositoryInterface getList and why

I keep reading about the use of [interface]::getList within Magento 2 and how it's the preferred method for fetching records. For example: namespace Magento\Customer\Api; interface ...
0
votes
1answer
1k views

Rest Api service for shipping information Post -

V1/carts/mine/shipping-information for this service which parameter are required.. I had given below parameters { "addressInformation": { "shippingAddress": { "id": 0, "region": "...
4
votes
1answer
975 views

Add multiple products to cart using Magento2 REST API using custom method

Add multiple products to cart using Magento2 REST API using custom method Their is no default magento api this is single product add to cart json code in rest api body section. { "cartItem": { ...
1
vote
2answers
1k views

MG2 Integration give error Unable to post data to consumer due to an unexpected error

I'm follow the http://devdocs.magento.com/guides/v2.0/howdoi/webapi/integration.html and i have an error when i try do activates the integrator. [2017-06-20 05:22:08] main.CRITICAL: Exception: Notice:...
0
votes
0answers
13 views

Paypal Api sandbox disable

I'm Trying to Disable sandbpx, i get this error : GetRecurringPaymentsProfileDetails failed: Could not resolve host: api-3t.0.paypal.com; Name or service not known(6)
0
votes
2answers
859 views

How to add / change group prices with Magento API 1.9.1

I can't find a way to add or change the group prices with the API. Its only possible to change the tier prices. Have anyone a idea, how to solve this?
0
votes
1answer
17 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 ...
1
vote
0answers
37 views

Magento 2 API Integration Issue [closed]

I'm running a Magento 2.X.X instance on a dedicated CentOS 7 server. I'm trying to integrate the Linnworks API but it would seem it's a lot more complicated than I thought it would be. In Linnworks ...