Questions tagged [api]

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

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

Magento 2 - Create order using REST API - Third Party Payment Gateway such as Paypal or other 3rd party payment gateway

I need to use the Magento REST API to create an order from an API. In my case, I am trying to implement the payment directly using API to Magento. What I need to do is to create an order by setting ...
0
votes
2answers
735 views

First steps of creating API integration with Magento2.3

background: I'm new to Magento as I haven't used it before, but I've read through most of the API documentation now. I have an online dashboard application with various widgets that are different API ...
1
vote
1answer
927 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 ...
1
vote
1answer
24 views

Magento 2 conect api external (Magento as client in API)

I am new to Magento 2, I am trying to make a web service, for the communication of an e-commerce in an ERP system, I already have the ERP communication in Magento (example: I insert a product from the ...
5
votes
4answers
6k views

How to add a new address (shipping or billing or another) via Magento 2 REST API?

There are API's available to fetch and delete address of a customer but not create a new one. GET /V1/customers/addresses/:addressId GET /V1/customers/me/billingAddress GET /V1/customers/:...
3
votes
1answer
743 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
1k 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
2answers
35 views

Magento2.3.3 :Get Value of Custom Product Attribute on Magento2 Rest API V1/orders/

I am trying to get the Custom Product Attribute (uom). I want to get the Attribute value to display on the rest/V1/orders API call. m using this https://magento.stackexchange.com/a/303780/68018 app/...
0
votes
1answer
841 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:/...
2
votes
3answers
727 views

How can we get customer orders history with rest API

How can we get the customer order history over the rest API with the customer token. If I'm trying the url /V1/orders?searchCriteria[filter_groups][0][filters][0][field]=customer_email&...
1
vote
1answer
32 views

Magento 2 API: Extension Attribute with null value not showing

I'm retrieving from the Magento API an order by its increment_id attribute like this: http://mystore.com/rest/V1/orders?searchCriteria[filter_groups][0][filters][0][field]=increment_id&...
0
votes
1answer
32 views

How to send data to Third party graphql endpoint in magento2

I need to send some order information to monday.com using graphql when order place I want to pass the data to monday.com graphql API how can i send API request using graphql to monday.com UPDATE ...
0
votes
0answers
39 views

In magento 2.3.5 Swagger is not working (Failed to load API definition.)

I had upgraded the magento version to 2.3.5 after that swagger is not working in my setup Image Reference : To debug the i click invalid button it shows {"schemaValidationMessages":[{"...
0
votes
1answer
895 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 : ...
0
votes
0answers
11 views

Getting error for ezyparcels API for Malaysia country

In my Magento 1.9 project, we are using Ezy2shipApi for creating shipments and returns. We have admin configurations for Ezy2shipApi with WSDL Link, customer Id, username, password, AES encryption ...
1
vote
1answer
696 views

Magento 2 API - Update Product Custom Attribute to Blank/Null

I am trying to update a product via the Magento 2 Rest API. If an attribute already has a value I can update that value with another value with no problems. However if I want to delete the value and ...
0
votes
0answers
14 views

Call 3rd party rest api with basic auth username and password

I am calling 3rd party API in my postman I have choose Authorization as basic auth and passing username and password. I am using Zend Client in magento 2 to send request now bt I set headers like this ...
1
vote
1answer
19 views

Magento 2 SOAP API getList not returning correct content-type

getList method for SOAP API XML response has data but returning incorrect content type: Content-Type: application/json; charset=UTF-8 I can see all the data fine if I print $searchResults on return ...
0
votes
2answers
23 views

Magento 2.3 API for get child category of specific category

I have tried with API: /rest/V1/categories/3 get that give the only id of child category not name etc. get response like : [children] => 4,5 not come: children_data
1
vote
0answers
10 views

Remove routing element in rest api ( Magento )

when i call this api http://localhost/magento2/rest/V1/wishlist/1/3 it works and wishlist item gets added but when i call http://localhost/magento2/rest/all/V1/wishlist/1/3 it does'nt work Seems like ...
0
votes
0answers
17 views

Magento 2 Custom REST API Update

If Only part of the data is to be updated then is sent the following way: { "entity": { "entity_id": 1, "is_enable": 1, "name": "Hello", ...
0
votes
1answer
17 views

You cannot define a correlation name 'link_attribute_qty_decimal' more than once

Have this problem for an API feed: You cannot define a correlation name 'link_attribute_qty_decimal' more than once at public_html/vendor/magento/framework/Webapi/ErrorProcessor.php:208, ...
2
votes
1answer
1k views

Magento2 REST API products list and out of stock

In the api call V1/products i get also out of stock products, even though I've set in Stores->configuration->catalog->inventory "Display out of stock products" to No. there's a way to get rid of this ...
2
votes
2answers
1k views

Magento 2 - Web API Create Account

I use curl to call the web api to create a customer account according to the example here. curl -X POST "http://local.magento/index.php/rest/V1/customers" \ -H "Content-Type:application/json" \ ...
0
votes
0answers
20 views

Magento 2 REST API filter products in stock

I am looking for an API filter to get in stock products but I could not find any option on the internet. Any ideas ? Maybe some plugin code ? Thanks !
0
votes
2answers
908 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: [...
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": "...
1
vote
0answers
16 views

Magento 2: Where are the Token-based authentication access token stored?

I have been following along with this guide: https://devdocs.magento.com/guides/v2.3/get-started/authentication/gs-authentication-token.html This guide shows how a token can be requested and shows ...
2
votes
0answers
24 views

Magento 2 API for product add to compare and compare list

There is any way to get API for product add to compare and get compare list for customer. Thanks
3
votes
1answer
65 views

Add Custom Field to Billing Address Form on Admin and API - Magento 2

I tried few things but it didn't fully worked. I need to create a custom field to Billing Address on "Create Order" page on Admin Panel. And the result of this field should appears on "orders" API. ...
1
vote
1answer
38 views

Magento 2: how endpoints (REST) to get data from database

How endpoints <host>/rest/<store_code>/V1/carts/mine/estimate-shipping-method to get data from a database or mention function or class that helps this API to get data from the database? ...
0
votes
4answers
2k views

How to enable CORs to access Magento rest APIs : Magento2

I'm getting an error while call API from Angular APP test website and app is hosted in different domain. Website Url abc.test.com Angular App : xyz.test.com When I call API for Listing Of product in ...
2
votes
2answers
3k views

401 Unauthorized for accessing customer api

I was able to get the admin token using the below url against the created admin user http://username:password@localhost.com/index.php/rest/V1/integration/admin/token The username and password is for ...
1
vote
1answer
63 views

How to cancel or close an order that has been invoiced through the API

I know in previous older versions (still 2.0) that I could cancel an order in processing with an invoice but recently that seems to have stopped working for a few of my clients. ie: /V1/orders/{id}/...
0
votes
1answer
75 views

Sales order address custom attribute value in Order Rest Api

I have added door number custom attribute to sales order address table. But I'm not able to get the vale in Order REST API. Please help me on this
0
votes
1answer
16 views

Magento 2.3.4: Facebook error: the parameter app_id is required

clicking on the facebook symbol right below the ADD TO CART button returns the error the parameter app_id is required as seen in the screenshot below. Is there anything that should have been done ...
0
votes
2answers
985 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
0answers
15 views

Magento 2 : How to update customers data?

I'm trying to update customers data but I don't know exactly what endpoint I must use, I want to change for example names and addresses with an external library to create random data and get that data ...
1
vote
2answers
1k 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 ...
3
votes
1answer
1k 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 ...
5
votes
3answers
4k views

Magento 2 - Construct a HTTP Post REST API

I construct a REST api using POST as follow etc/webapi.xml <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../...
5
votes
1answer
2k views

Magento2 search like searching using REST API

When using magento search REST API you can search with logical AND search http://devdocs.magento.com/guides/v2.0/howdoi/webapi/search-criteria.html#logical-and-search For example I want to search ...
0
votes
0answers
13 views

Apply filters or mass actions on grids with fake collection (or wirhout ui components)

I a admin grid with a change on _prepareCollection() function to get the collection from a response of api call, its working fine. But I do not have the filters or mass functions, how can I do that ...
2
votes
2answers
2k 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:...
1
vote
1answer
33 views

Version 2.3 API Image Import with a path and not base64

I am using the catalogProductRepositoryV1 (/V1/products) for importing a bunch of products (about 9.000). We have a very high fluctuation of products per day/import. So I would like to import images ...
0
votes
1answer
19 views

productAttributeOptionManagementInterface api not loading attributes

I use \Magento\Catalog\Api\ProductAttributeOptionManagementInterface in my constructor and since Magento 2.3.5 it doesn't load any attributes.
0
votes
1answer
18 views

Magento 2.x.x extension attributes API add object array

Have added custom attribute to order API with following info here: https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ It adds the "customer_feedback": "this is my ...
2
votes
3answers
6k views

Passing Array in REST Api Magento2 (Post Method)

I have created many rest Api in magento2 which working perfectly... I have only problem to pass the array in custom rest api... for example I am passing the data in below format from postman. {"...
2
votes
3answers
3k views

Instagram API call on Magento frontend

I would like to add the last pics from my instagram in my Magento Frontend. I've seen the IG API and there is an Endpoint for this requeriment. Searching the web I've found examples of the call with ...
0
votes
1answer
1k views

How to clean up magento2 database programatically?

How can I delete all test data from Magento 2 database programatically by running an API?

1
2 3 4 5
32