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

JSON response does not return as an array from external API for AyMakan carrier (shipping method module), but still data posted & saved to AyMakan web

I want to get an array as JSON response from POST request to external API for AyMakan carrier (shipping method module), but still OK data posted & saved to AyMakan web server. Therefore, The ...
1
vote
0answers
15 views

No such entity with orderId =

I am using Webkul's extension for multiple vendors and I want to make an REST API endpoint where a vendor will be able to confirm the payment on a specific order. Everything works well until I try to ...
2
votes
1answer
20 views

Add a comment to an order [API REST]

I want to add a comment to a magento order. When i try to do this with postman it works properly: But when i do this with my php code, the request return an error: //GET TOKEN $url = '***/rest/V1/...
0
votes
0answers
16 views

How to add exist image to simple product by REST API

My case is: I'm creating a configurable product by API <-- in this proces I'm adding a new image by: var newImage = new CatalogProductAttributeMediaGalleryManagementV1CreatePostBody(...
1
vote
1answer
30 views

Unable to list out my site's soap services with error (XML declaration allowed only at the start of the document)

I am trying to list my Magento 2.3.2 site's soap API by running to below URL, https://mysiteurl/index.php/soap/default?wsdl_list=1 However, it only shows the error message below This page contains the ...
1
vote
0answers
7 views

How to make connection between SAP and magento

How can I achieve the connection between SAP and Magento using API
1
vote
0answers
13 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 ...
2
votes
1answer
30 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 ...
0
votes
2answers
37 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/...
1
vote
1answer
34 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
0answers
51 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
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
12 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 ...
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 ...
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
21 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
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, ...
0
votes
0answers
18 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
2answers
24 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
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
26 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
1
vote
1answer
39 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? ...
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. ...
0
votes
1answer
76 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 ...
1
vote
1answer
66 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
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 ...
1
vote
1answer
34 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
20 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
19 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 ...
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 ...
0
votes
1answer
20 views

How to return products in stock via API REST using SearchCriteria?

I have an integration that must get my products in stock via the Magento 2 API using SearchCriteria. How could I filter it, since it's inside my custom_attributes?
0
votes
0answers
8 views

Multiple carts using Admin API?

I'm a NodeJS dev and I've never worked with Magento (nor know PHP) and it may be a dumb question. I've used the Admin REST API to process orders by following this tutorial: https://devdocs.magento....
0
votes
1answer
19 views

Magento 2 Advanced Reports 404 page

How to fix 404 page in Magento 2.2 - 2.3.4 versions Advanced reports? If you see the status pending in the configurations, and the user for advanced reports is absent.
1
vote
1answer
127 views

Magento 2 : How to update qty and stock status using API for multiple products?

How to update qty and stock status using API for multiple product in Magento 2 ? We are doing ERP integration with magento 2 and we need to update qty and stock status. in magento 1 we had ...
0
votes
0answers
10 views

Magento2: Can we get all products from Magento1 by rest/soap api and show/create product in magento2?

I want get all products, categories in magento2 site by rest or soap api from magento1. Products/categories will show in grid. How can do that?
1
vote
2answers
61 views

How to add new custom fields in existing GraphQL API (Query and Mutuation)?

I have basic knowledge about GraphQL. Now, I would like to convert my knowledge into action. For that, I want to know about few things like how can I add my custom field to any GraphQL Query and ...
0
votes
1answer
30 views

Magento2.2.2 SOAP API Create Partial Invoice

Partial invoice doesn't seem to be working correctly for SOAP requests when multiple item has been ordered. POST URL: http://dev.test.com/soap/all?services=salesInvoiceOrderV1 SOAP BODY: <?...
0
votes
1answer
30 views

Error on Update inventory REST API? when SKU has a “#” in it

I'm trying to update the inventory of our products from our ERP using the rest api. I have run into an issue when the SKU has a pound "#" in it. A URL like: https://magento.xyx.com/rest/V1/...
0
votes
0answers
13 views

I am trying to get the wishlist data and created a module but it's showing me “Request does not match any route”

Code for a wishlist from here I have tried code a wishlist code from the above link and also created a module but don't know why I am getting a response "Request does not match any route" in postman, ...
0
votes
0answers
15 views

Is possible to Invoice, Ship, Cancel sales_order_item in other words Sub-Orders via REST or GraphQL APIs?

Wanted to know whether to was possible to update/change the sub-order wise status of sales_order_item via Restful or GraphQL APIs ? I could not find this in the swagger link posted here: https://...
0
votes
0answers
26 views

Fetch products from category using elasticsearch

<?php namespace Magento\FetchProductsFromCategory\Model; use \Magento\FetchProductsFromCategory\Api\ProductInterface; use \Magento\Framework\Exception\NoSuchEntityException; class Product ...
2
votes
1answer
33 views

How to create a custom api for mobile app in magento 2.3

I want to create custom APIs for a mobile app tp cop up with my Magento 2.3 .x project. Like APIs for plugins installed like cc avenue, store locator plugin.
0
votes
0answers
12 views

How to obtain attribute_set_id from product attributes API response

I've been trying to retrieve attribute_set_id and attribute_group id from the below endpoint. rest/V1/products/attributes?searchCriteria=0 However, the response only contains the below keys which do ...
0
votes
0answers
37 views

Connection of magento 2 site with akeneo pim installed in localhost using akeneo connector

Environment: Magento: 2.3.4. Akeneo PIM: Vr 4 (community ) Hi! I have downloaded akeneo community pim using docker. It's installed in my mac and can be accessed at localhost:8080. I have also ...
0
votes
0answers
39 views

Laravel API integration with Magento 1.9

How can I integrate laravel api to get products from laravel site and show with magento's product list page.
0
votes
1answer
9 views

API Orders Search not accepting value

Doing an order search via API as follows: {{magentoEndpoint}}/rest/default/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=status&searchCriteria[filterGroups][0][filters][0][value]=...
0
votes
1answer
45 views

How do you accept terms and conditions via API?

I attempted to place an order via /rest/default/V1/carts/mine/payment-information and got the following response: "message": "The order wasn't placed. First, agree to the terms and conditions, ...
0
votes
0answers
9 views

How to compare products metadata in database [Magento 2]

I'm creating configurable product by API. All is working fine and the simple/configurable products appears in the backend. However when I look at the frontend, only simple product are shown, not ...

1
2 3 4 5
32