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
7 views

Magento 2 : Change option_value of custom option via api

I took the order via API My problem is how to edit the option value of the custom option via API. hope you helps. Thank in advance.
0
votes
0answers
20 views

Order API Pre-set parameters

I have a custom module with it's own api requests, but I wish to create an alias to an Magento api request. My api path: GET /V1/orders/get-new which is a simple alias to Magento owns GET /V1/...
2
votes
1answer
27 views

Update Cart Item quantity by customer quote id in custom API

I want to Update Cart Item quantity by customer quote_id in custom API. I have tried below code but it's not work with Magento 2.3 $quote = $this->quoteRepository->getActive($quoteId); ...
1
vote
1answer
21 views

Magento 2 change product description using API on every 5 seconds

I am working on Magento2, and I've to change my product description on every five minutes using the third-party API. Then I've 1laksh product in my Magento, so which approach is better to change the ...
2
votes
5answers
12k 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?
0
votes
0answers
8 views

Magento2 - Empty cart by customer email in API

I am struggling to empty the cart by email in the API. The store is multi-website and my API endpoint works in that it takes an email and returns a message. The customer ID is retrieved but the ...
9
votes
2answers
1k 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
10 views

The owl carousel is initialized before the module instagram and does not see the items

I have a block that displays pictures from instagram, he gets them using the library. https://www.mageplaza.com/magento-2-instagram-feed I have 6 elements in a row, I want to use them in a carousel ...
4
votes
1answer
481 views

Magento 2 Add to cart api Item price set zero in Quote Item table

I am trying to add product to cart with Magento 2 default API. POST : http://{{magento2}}/rest/V1/carts/mine/items Request : { "cartItem": { "sku": "p2", "qty": 1, "price"...
0
votes
2answers
892 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
2answers
39 views

How to programmatically reindex product after update ex. price/stock quantity

how to programmatically reindex product after update ex. price/stock quantity using Magento ver. 2.3.2 API via Swagger? I do application in C# which sync my system with Magento. I have a lot of ...
0
votes
2answers
28 views

How to Get API Paramter?

I use a custom API with Delete Method. I would get this paramter. { "id":"1" } How can i get it in my api response? etc/webapi.xml <?xml version="1.0"?> <routes xmlns:xsi="http://www....
0
votes
1answer
23 views

Custom Module API get CDATA Error

i got this error at localhost/rest/V1/hello/name/Jim. This XML file does not appear to have any style information associated with it. The document tree is shown below. <error> <messages> &...
3
votes
1answer
32 views

Magento 2: Authorize.Net: Transaction has been declined. Please try again later

I'm on Magento 2.3.2, Using Authorize.Net [sandbox] as my payment method, I'm unable to place order because I'm getting an error Transaction has been declined. Please try again later., I see my ...
2
votes
0answers
25 views

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. I have ...
1
vote
1answer
41 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.
5
votes
0answers
105 views

HELP - How to convert Default SOAP-v2 API Magento Objects into XML Values?

In Magento1.9 - product collection by default return values as Magento Objects using soap v2, how can i change into XML, <?php ini_set('display_errors','On'); $proxy = new SoapClient('abc.com/api/...
0
votes
1answer
10 views

Magento2 : Set Customer Custom Attribute Value Using Rest API

Property "Mobilenumber" does not have accessor method "getMobilenumber" in class "Magento\Customer\Api\Data\CustomerInterface". Whenever i am trying to set customer custom attribute value i am ...
0
votes
1answer
276 views

How to implement MSI (multi-source inventory) in Magento2.2.3 project?

Problem: I need to implement Global inventory management in magento 2.2.3. so that inventory can be synchronize from various sales channel like source(ecommerce marketplace example: amazon,flipkart.. ...
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": "...
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 ...
0
votes
1answer
22 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:...
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 ...
1
vote
1answer
1k 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
1answer
26 views

Mageto 2: get custom attribute via rest api

I have a module "extra fee", I did get order info via rest api, but I don't see "extra fee", how can I get it? anyone help me. Thank in advance.
0
votes
0answers
15 views

External application - Magento 2 login

Do you know if it's possible to use the customer login that I have in my Magento 2 store in an external application? I would like to have one login database for all my applications. Thanks
1
vote
1answer
18 views

magento2 rest api ship to name not adding after creating shipment

Ship to name is not adding while creating shipment using Rest Api with below api url: http://127.0.0.1/magento225/rest/V1/shipment/ Body: { "entity":{ "orderId":9, "store_id":1, "items":[...
0
votes
1answer
25 views

Magento 2: Get order via API

I need to get out of order information via api, but i didn't know what to do, anyone help me, thank in advance.
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 ...
1
vote
0answers
29 views

How to get all product data from oracle netsuite through php api

I have been created the connection between PHP and Netsuite but now I want to load all product data from NetSuite to my PHP API so how can I do this? is there any solution for that...
0
votes
1answer
13 views

Magento 2: how to create api to send the Hashkey value to Mobile Apps?

I want to create PAYU API for Checksum generation at the Magento backend and send the Hash key value to Mobile Apps.
4
votes
2answers
4k 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@...
2
votes
0answers
30 views

Create Module For Send Order Notification on WhatsApp in Magento 2.3.2

I Want To Create Module For Sending Place Order Message On WhatsApp.. Or Also Any Free Extension Available For This I Tried WhatsApp Order Notification But Its Paid I Want To Free Extension Or ...
0
votes
1answer
33 views

Magento 2: Call Controller method from Model

How to call the controller method from model? Or How to programmatically reindexing using API? Here is my code.Below code gives me error like below. { "messages": { "error": [ ...
2
votes
4answers
129 views

Magento2 Copy data from one to another magento installation

I want to copy all data from one to another magento installation. Wants to copy products,product-attributes,category,category-attributes,customers,cms-block,pages,rules everything except orders. I ...
2
votes
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:...
2
votes
1answer
523 views

Magento 2 regsitered user add to cart API

In postman , I tried to add the product to the cart for registered user using this API : /rest/V1/carts/mine but I am facing an error like { "message": "Consumer is not authorized to access %...
0
votes
0answers
22 views

Did Magento change the language of API error messages with 2.3.2?

Starting with the upgrade to 2.3.2 it seems like error messages of the REST API are localized now. For example the error message "Database deadlock found when trying to get lock" is now "Database ...
0
votes
0answers
14 views

Magento 2 : Run command from API

How to run below command programmatically in API code. 1) php bin/magento setup:upgrade; 2) php bin/magento setup:static-content:deploy; Help me to solve this issue.
0
votes
0answers
40 views

Errror: Invalid API key or password - Eway Payment gateway - Magento

I have integrated the eWAY Payment Gateway in the default Luma theme for Magento 2. When I try to place an order, it shows an error like Invalid API key or password. I am sure the API details are ...
6
votes
1answer
201 views

What are the use of ExtensionAttribute JoinProcessorInterface and CollectionProcessorInterface at magento 2.2.3

I built Magento 2 Module which has a model and Service contracts/API. During this implementation, I have followed vinai Kopp article and also magento2 module Magento_Quote. On this Magento\Quote\...
1
vote
1answer
32 views

Error in Uploading Image using REST API in Magento 2

I am getting below error while hit REST API from postman: "message": "The product can't be saved.", I have used below details for API: URL: magento.localhost/rest/V1/products/p1/media ...
1
vote
0answers
23 views

In Magento 2.3, How to add custom error code with response

In Magento 2.3, How to add custom error code along with response. For example, If I add the code as below, I am getting this below response: throw new InvalidEmailOrPasswordException(__('Invalid ...
2
votes
1answer
1k views

Coupon Code API Params

We just want to know what would be the json params to create coupon code from magento2 rest API. The API we are using to generate the coupon code is /rest/V1/coupons
0
votes
0answers
10 views

Magento as an API Framework

What do you think about using Magento as an API/webservice framework? I don't mean using the Magento API to consume Magento services (products, orders, customers, etc.), I mean using Magento to ...
2
votes
1answer
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" \ ...
4
votes
1answer
3k views

Add product to cart with custom price, using the API

How can I add a product with a custom price to the cart, using the Magento API? I found a solution where a special price is configured for one second, but this leaves the special price visible in the ...
2
votes
1answer
73 views

Learn zend, magento modules and magento API

I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?
1
vote
2answers
49 views

You did not sign in correctly or your account is temporarily disabled:customer login

When I try to load /rest/v1/integration/customer/token, passing username and password in the body, it shows below error: { "message": "You did not sign in correctly or your account is ...
5
votes
1answer
1k 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 ...