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

API call issue in magento 2.2.0

we are working on api call module in magento 2.2.0 where main functionality is using API fetch data from other site and show data in grid. we created module for upper version (magento 2.3 and higher) ...
0
votes
1answer
18 views

Magento 2 : API Get Customer Cart Data using customer ID

I am building custom magento 2 API. I want to get customer CART DATA using CUSTOMER_ID. I have tried following code but its not working. $params = $this->request->getPostValue(); $customerId = $...
0
votes
1answer
35 views

Integrating Microsoft Calirty Tracking Code Into Magentos2.3.5 CMS?

Hi does anyone know where I can put the Clarity Tracking Code in Magentos website? Here are the steps listed below. We have the first step completed setting up the Clarity account. But not sure about ...
0
votes
0answers
21 views

Magento 2 How to get Custom Attribute Value Of Order Using Rest API

I have created one attribute for order named "custom_fee" and it is showing okay in magento orders frontend as well as backend but when I tries to access order data with rest API , I am not ...
0
votes
0answers
13 views

Magento with 3rd Party API for DATA

I'm new to Magento. I would like to integrate a 3'rd. Party(Booking.com) data using API and then connect it to FAC payment gateway API. Can anyone offer guidance?
0
votes
1answer
31 views

Magento 1.9 How to call any api on event “sales_order_invoice_register”?

I want to call my custom API on sales_order_invoice_register event. Menas, when the invoice will generate, will call my custom API and I want to store the response in Database. Will this kind of ...
0
votes
0answers
65 views

Magento 2: Instagram Basic Display API Invalid redirect_uri Error

I'm using Magento 2.4.1, installed Social Login Extension and getting below error while login to Instagram, I'm using Hybrid auth libraries to login. "error_type": "OAuthException"...
0
votes
1answer
14 views

Exception #0 (Exception): Notice: Undefined variable on third party API url

I am using third party API URL from NAV and it has predefined variable to be passsed in the API. URL is something like this MAINAPIHOSTURL/PostedSalesHeaderAPI?$filter=No%20eq%20%27FZPSI-00010%27&$...
0
votes
0answers
10 views

Wrong Search Result for the API rest/default/V1/products in Magento 2.3.6

I have 3 websites and each has a store and store-view, the website one has the store_code: default, when I search for products while passing the store_code: default, the search result shows products ...
0
votes
0answers
16 views

Magento 2.3.5-p1 Special Price still displayed after expiration

We are facing a problem with Special Price End date on Magento 2.3.5-p1. We are updating the prices using the Rest API on a multi store English & Greek. When we add the special price with the ...
0
votes
0answers
8 views

MAGENTO 2.3 API: Consumer is not authorized to access %resources Magento_Sales::actions_view

I have moved a website to another server with the same features and the same version of php but the api calls no longer work. The calls do not work for me neither in Postman nor in curl. And postman ...
0
votes
1answer
18 views

Post tracking in bulk REST API

We are currently create tracking one by one by using POST rest/V1/order/:orderId/ship: { "notify": true, "tracks": [ { "track_number": "1234567890",...
0
votes
0answers
13 views

Creating a shipment using the REST API changes the order status

I have created an extra order status of 'partial_shipment' with a state of 'processing' in Magento. Consider the following scenario: Customer has placed an order with three items that will be shipped ...
0
votes
0answers
47 views

Curl request doesn't login to my API, why?

I've been working on this code to log in to my API. But every time I try to login using CURL I get the following error {"message":"The request entity's media type 'multipart/form-data' ...
0
votes
1answer
11 views

How do I get simple product not associate with any configurable product?

How do I get all simple product not associate with any configurable , bundle , group product in Magento API 2 ?
0
votes
0answers
7 views

Magento 2.4.0 Send blank value of customer email ID. If email ID belongs to a specific domain

There are multiple APIs which will be sending customer email IDs. If I want to add some logic while sending a unique domain email ID in response. I would need to override multiple files and make the ...
0
votes
1answer
30 views

Magento 2.3 Wishlist API free extension needed

This is continuation for the following closed question: Magento 2.3 Wishlist API free extension As you can see I extremely sad about some god that closed a good question. Well let us go again... I ...
0
votes
1answer
24 views

API -> add image with external url instead of base64

Is there any extension that give us the possibility to add external url instead of a base64 string when I adding/update product via magento 2 api?
0
votes
1answer
50 views

How to reduce Magento 2 rest api performance time?

I have created some custom rest api's and using Magento's default rest api's. I want to reduce the loading time of the api, as I have custom api's too so the request time and response time is quite ...
0
votes
0answers
25 views

Magento 2 API Request Custom Extension

I have requirement for listing,adding,deleting data using api call in magento 2 front-end site. For above requirements i want to create custom extension, functionality of one Fronted Page and its ...
0
votes
0answers
13 views

How to place an order using vault payments via an API?

I made a custom API to create an order based on some parameters received as a JSON and using an existing saved vault payments(credit cards). From the vault_payment_token table ! So this is my script: ...
0
votes
0answers
8 views

How to place customer orders through Admin Token API Magento2

I have to place an order through API REST on behalf of a customer like the Magento admin panel. Sales >> Order >> Create New Order I can see on the Doc that an Admin Can create a CART but ...
0
votes
0answers
5 views

Change “Request Method” of a request (controller) Magento 1

Where the type of request "POST & GET" is defined in Magento 1 for controller requests ?
0
votes
0answers
7 views

Magento 1 Request Flow

I am using Magento 1.4, i can see many request's have "POST" HTTP verb in the request, Specifically "POST" should not be necessarily used for "logoutAction". Where the ...
0
votes
1answer
31 views

Magento 2 - Write plugin for API interface

In the documentation it says: "A plugin, or interceptor, is a class that modifies the behavior of public class functions by intercepting a function call and running code before, after, or around ...
0
votes
0answers
110 views

/rest/default/V1/guest-carts/{cartId}/totals-information 404 magento 2

when Visitor add a product to cart. Go to Cart Page. Click on Proceed to Checkout Login Pop-up will prompt to login. When try to login it shows alert box with error "No such entity with %...
0
votes
0answers
22 views

Magento 2 How to fix Error site has been blocked by CORS policy

I have Developed a custom API its working fine in Postman, but its not working in another platform. How to fix this issue. I tried by updating root .htaccess RewriteEngine on RewriteCond %{...
1
vote
0answers
14 views

Magento 2 API Drop ship permissions

As a vendor, I am preparing to potentially link my store to offer dropship to another website (they take orders, I do fulfilment and processing on Magento 2), and create an API for this via Magento 2 (...
0
votes
0answers
15 views

How to get simple product info only Magenot 2 API

So im using rest/V1/orders/{id} from which im extracting info via PHP. My problem is when extracting info from "items" array i get the info of a simple product and a configurable product. So ...
0
votes
0answers
11 views

Category Image with Category Id in Magento 2 Api

I want to show category id with category image in magento 2 rest api http://domainname/rest/all/V1/categories?rootCategory=2 this is my api response and here not show category image { "id": ...
0
votes
0answers
15 views

Is there a way to Create Product using Magento 2 Api and assign the product to a source with stock Quantity?

I am trying to create a product using the Api provided by Magento. So for that I would use this endpoint : POST <host>/rest/default/V1/products source : https://devdocs.magento.com/guides/v2.4/...
1
vote
0answers
8 views

Disable fronend in Magento 2 for a specific module for using only the Admin and the API routes

How to disable the fronend in Magento 2 for a specific module so I can use the Adminpanel and the API routes.
0
votes
0answers
10 views

Magento 2: How can i get invoice_id of a order with API REST?

I need the invoice_id of a order and I don´t find a api request to do this. Any idea?
0
votes
0answers
15 views

Magento 2 API - Read only access

Is it possible to create an account/integration with only the permissions of read-only to the catalog? The reason is that I want certain customers to be able to access the prices of products within ...
0
votes
0answers
27 views

Magento 2 Integration with API - route does not exist error

I'm working on integrating linnworks with magento 2 using the rest endpoint which from what I gather is usually /rest/default/v1. However, when visiting that url in the browser, the following error is ...
0
votes
0answers
14 views

How to create REST API to upload image into customer custom fields

I am using Magento Enterprise Solution. Where I have created a few custom fields (File Type) for a customer. I want to get help to create REST API to upload an image into these fields by using REST ...
0
votes
0answers
37 views

Simplify Magento Module API Error [Merchant processing is unavailable pending completion of registration]

I just installed the free extension from https://github.com/simplifycom/simplify-magento-module suggested by the Simplify Commerce at https://www.simplify.com/ to enable Credit Card payments. I ...
0
votes
0answers
29 views

Magento2 Add to compare Api using graphql?

Magento2 - PWA. I am developing PWA in Magento2. In products I am not able to see Add to compare link. How can I create add to compare Graphql API & use it in PWA?
0
votes
0answers
33 views

Getting Admin Auth Token

I'm new to Magento 2 software and trying to get some help to my scenario. One of our integration were failing to connect to our store API calls stating the expected response was json but getting HTML. ...
0
votes
0answers
19 views

how to magento2 forgot password api in graphql?

<?php require_once('baseurl.php'); error_reporting(E_ALL ^ E_NOTICE); $userData = array("username" => "", "password" => ""); $ch = curl_init($baseUrl ...
0
votes
1answer
30 views

How to deal with API integrations and deployment when developing locally for magento?

I'm trying to set up a nice development environment for magento. Naturally, I also try to take deployment into consideration. This is why I chose to implement docker containers. My project is very ...
0
votes
0answers
6 views

How to use Web Hook with send Cloud Magento1

I use sendCloud API to track shipement so i want to use web hook to change the state of order during deliver process so if you have any experince with that plezse provide me advices and thanks in ...
0
votes
0answers
37 views

API Magento2.4 get image's base64 code

API magento 2.4 get image of product Hello i am trying to get the base64 image's code from the api using this endpoints Enpoint 1 "/rest/default/V1/products/" + sku + "/media" ...
0
votes
0answers
34 views

On updating product using ASYNC REST API it doesn't create product in Magento 2

I have using postman to test API to create a product API URL : http://127.0.0.1/magento/rest/async/V1/products Data Passed to test same as documentation : { "product": { "sku": &...
0
votes
2answers
63 views

Magento 2: How to add a tracking number to an order using REST API

I use the following code to add a tracking number to an order: $url = 'https://xxxxx/rest/V1/order/514/ship'; $authorization = "Authorization: Bearer ".$json; //I get $json ...
0
votes
0answers
36 views

How to use Asynchronous Product Import in Magento 2?

How to use Asynchronous Product Import in Magento 2 ? I want to import product's using asynchronous API to import the products. Is there any idea how to use them to import the data using asynchronous. ...
1
vote
1answer
21 views

Problem with payment,

when paying with the card, sometimes it works well and returns a success message, but then sometimes on the second third try it returns an error message and money is cut off anyway...(mail is not sent ...
0
votes
0answers
15 views

Magento 2.3.0 SOAP URL Stops working

I am using magento version 2.3.0. Now the soap url stop working suddenly after deployment. I reverted the change but still geting issue while calling SOAP API. Anyone face issue like then or any ...
0
votes
0answers
31 views

Magento 2 REST API end points for multi website

I have created 3 multi websites for my store. Each website has one store and separate root category for each website. The Urls are like below hi.abc.com (default website) hello.abc.com hi-hello.abc....
0
votes
0answers
20 views

Magento 2 API invoice items showing as double

For some reason on a invoice more QTY is returned than what exists in the items array. It seems to only do this on configurable products however how should one handle this from the API? Full example: ...

1
2 3 4 5
33