Questions tagged [api]

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

589 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
90 views

Magento 2 API add item to Cart ignore price

if i add a item to cart via api it set Magento 2 default price of the item instead price set via API 1st i create a cart for a customer: index.php/rest/default/V1/customers/631/carts via POST ...
1
vote
0answers
19 views

Create customer with default addresses via API

Is it possible to create customer via API and set default billing and shipping address at once ? I know that in customerCustomerRepositoryV1 and customerAccountManagementV1 are fields like ...
1
vote
0answers
102 views

Magento 2 : How to create custom API

I'm trying to create a POST call to a custom API for magento 2 , but I do not know how to do this. What is the correct way to do this request? Code: webapi.xml <?xml version="1.0"?> <...
1
vote
0answers
90 views

Any examples on how to use requisition_lists API Endpoint?

ORIGINAL POST Trying to use the save requisition list REST API endpoint. The API docs are not very clear on what the values should be and currently don't have access to the B2B module code to see ...
1
vote
1answer
17 views

Integrate to Magento to offer shipping

I've just started working at a logistics company and some of our new clients uses the Magento platform. I've been looking through the API documentation in search of instructions on how to offer ...
1
vote
0answers
37 views

How to create Layered Navigation in API?

I want to fetch Category wise products and products attributes with values just like values of layered navigation in web using REST API. Any help/advice would be appreciated.
1
vote
0answers
55 views

Magneto 2: How to configure a rest api only server for best performance?

I know magento have some recommendations for the best performance. And I found several articles related. But nothing specific for servers that provide access only by the Rest API. Because everyone ...
1
vote
0answers
29 views

Use different domaine for Admin and Front

How can we use different domaine for the Front and the admin section. If I'm changing the domaine on the base URL of the store config, I'm getting a 404 because there's no admin on this domaine. I've ...
1
vote
0answers
25 views

How to get the order details of a customer using the access token of other customer?

In my project there the two types of users: manager and captain. The manager should be able to view the orders placed by captain so i need to use the access token of manager to get the order list of ...
1
vote
0answers
57 views

Magento 2 Payment method Instruction in API

Fetch Instructions for Payment method in Magento 2's existing API /rest/V1/carts/mine/selected-payment-method Magento APIs doesn't provide any Instructions for Payment method, Even after selection of ...
1
vote
0answers
11 views

Magento API from magento1 or 2 to magento2.1

I want to have an api to transfer data from magento1 and magento2 to magento2.1 real time I mean that want to change my magento2.1 price field if it changed from magento 1 or 2 websites could you ...
1
vote
0answers
49 views

API error when adding an extension attribute

I'm trying to follow Magento's tutorial for adding an extension attribute. I want to add an extension attribute called "exportedFlag" to the Invoice class, and have it returned through the V1/...
1
vote
0answers
316 views

How to assign a guest cart to a customer with rest API

How to assign a guest cart to a customer with rest API. I've try PUT /carts/{cartId} when I’m log as a customer to assign a guest cart to the customer https://devdocs.magento.com/redoc/2.3/customer-...
1
vote
1answer
105 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 ...
1
vote
0answers
19 views

How to speed up a registration of various products using API Magento SOAP 1?

I am registering more than 20 thousand products via API soap Magento 1. But it is taking 5 seconds to register 1 product! Is there a way to streamline this procedure?
1
vote
2answers
221 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
0answers
107 views

Magento 2 calling External API

How do I call an External API in Magento 2? And what file/folder do I do it in?
1
vote
0answers
28 views

API V1/orders add product_options

I want add product_options to API V1/orders in items, how to do this? please help me! Im a freshman use magento2. have any easy way to do this?
1
vote
0answers
45 views

How to make checkout a static block / have identifier like static blocks or pages?

Can I make magento checkout to have an identifier/ID like static blocks and pages? What's the best practice or solution to do this? I'm currently calling out magento pages / static blocks through ...
1
vote
0answers
85 views

How to create REST API for customer profile update?

Since, I have worked with magento get method api calls but yet didn't work on post or put method. I am trying to update customers to update their profile in mobile app. public function update($id){ ...
1
vote
0answers
127 views

Magento 2 V1/carts/mine/totals API getting Old data

In magento 2, after add to cart or merge cart when i am call V1/carts/mine/totals API first time it send me old data. After i am calling same API it give me right data that available in Quote table. ...
1
vote
0answers
18 views

How to save lines of my custom object via API?

I have the next JSON example and I need to save this with a model via POST. The problem is how to save the field lines of this JSON... { "sizeCurves": { "external_key": "...
1
vote
0answers
45 views

API issue returning object

We have this API where we save different fields, but the object $lines we have created doesn't save properly. The code below are the getters and setters for the object $lines. Save method API: ...
1
vote
1answer
603 views

Magento 2 REST API ship order tracks error

I can create a shipment for an order via REST API. But when i try to add tracks i get the error: Carrier Code can not be empty. This is my code: Array ( [items] => Array ( ) [...
1
vote
0answers
592 views

Magento 2 Rest API get all products with certain attribute_set_id

I need to elaborate de URL that will bring all products with certain attribute_set_id through Magento 2 Rest api, and then change though the api the attribute_set_id of all those items. My problem ...
1
vote
1answer
1k views

Magento 2 How to add custom attribute to Quote Item Rest API

I want to add custom attribute to >http://{{magento2}}/rest/V1/carts/mine/totals API response. I have done follwing way but it not working. >extension_attributes.xml <config xmlns:xsi="http:/...
1
vote
0answers
77 views

Magento2.2 How to get userContext into ScopeConfig

It's more a core logic issue than a technical issue! I created one new table for admin_user: admin_user_config_data |config_id|user_id|path|value And, like in core_config_data, in this new table ...
1
vote
1answer
33 views

How to download Invoice without login Magento Admin?

I need to get invoice without login Magento admin, is it possible using any CRM or API Services?
1
vote
0answers
127 views

Customize the API error response

I need to customize the JSON response of the Magento REST services when an exception is thrown. Examples: { "message": "Request does not match any route.", "trace": null } { "messages": ...
1
vote
0answers
82 views

Magento get product link using V1 API

$storeUrl."/index.php/rest/V1/products?searchCriteria[page_size]=200&searchCriteria[currentPage]=1" It returns products list but I want to get each product link. How it is possible?
1
vote
0answers
133 views

Magento 2 - How to add custom order item field on order export API

I added a new field on table sales_order_item. I need to display it on REST API order export, in the "items" node. Is it possible to do that ?
1
vote
0answers
106 views

Magento 2 API - crud for all tables

Is it possible to create a new REST API to update or create data in all magento tables from a xml added in POST : <data> <row table="Nom_Table_1" key="Nom_Champ_Key_1"> <...
1
vote
1answer
38 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:
1
vote
0answers
33 views

Can we implement Alexa Skill to use with our Amazon pay Account in magento 1

In Magento 1 websites, we want to implement Alexa Skills to use our amazon payment account. Can anybody please share knowledge/steps/guide, how we can implement alexa skill to use our amazon pay ...
1
vote
0answers
36 views

What is the M1.9 UPS Shipping Default Rate Table (out of the box, not XML)

We are doing some comparisons with our different options using M1.9 UPS shipping. We noticed that the rate for the default UPS setting for UPS Type (United Parcel Service) is returning values that are ...
1
vote
0answers
38 views

Product images in multiple stores using JSON API

I have four stores created, and I'm trying to upload a single image for the same product in each of the stores. My issue is that to get an image to show in the category front end view, I need to ...
1
vote
1answer
155 views

How to get List Layer Filters in magento 1?

I trying to get list layer filters option in Magento 1 in custom file name is list_layer_options.php. This is my source: $appliedFilters = Mage::getSingleton('catalog/layer')->getState()->...
1
vote
0answers
68 views

MAGENTO - want to get delievery date from UPS

How can I get the delivery date from the UPS? Does anyone have any idea about this?
1
vote
0answers
115 views

How to debug dropped Authorize.net transactions in M2

We are seeing seemingly random drops in responses from Auth.net using Magento 2. With the debug log on, we saw a customer place 2 orders, the first has no response, and the 2nd, placed half an hour ...
1
vote
0answers
91 views

How to fetch eligible Payment and Shipping method in REST API magento 2?

Fetch eligible shipping methods and Payment methods in Magento 2 Rest API. In case of if i have a customer id. In case of if it is a guest user.
1
vote
0answers
27 views

How to read Customer from Magento to .Net app

I have installed magento 2 in my local system, my requirement is to read customer from Magento to one .NET application. Please suggest me how do I proceed to achieve the same. Thanks Gautam
1
vote
0answers
27 views

Get Canceled Orders with specified range using magento soap api

Can anyone help me how to get the Canceled orders of specified range in magento1.9 soap api. Iam getting the orders but time exausting so i wants to get the orders between range. Find the below code ...
1
vote
1answer
106 views

Magento2 : Getting error while updating the data using API

I am getting the following error while updating the record using the Magento 2 REST API. Error: ( [message] => Request does not match any route. [trace] => ) I am ...
1
vote
0answers
256 views

WebAPI gives error: Class “array” does not exist

I want to send a list of statuses to my API. I send an array because it may be a lot of statuses. So my JSON looks like: { "statuses":[ "status_ok", "status_failed", "...
1
vote
0answers
20 views

Magento 2.2.5 shows webserver ip in sales

When I see at a sale - customer IP, it shows my web server IP in all the costumers ip. How to change so I see the costumers IP in the sales and not server's IP? Thanks
1
vote
0answers
68 views

Magento 1.9.3.9 PayFlow API - Multiple Issues

I can't find a solution to this anywhere so I'm posting the very strange issues I'm having, in hopes that someone has an answer. I've been going back and forth with PayPal support because I keep ...
1
vote
0answers
20 views

Magento 2, how to get all product options with their price of configuration for view reorder by API?

Using Magento 2.2, API, Reorder. I need to get all cart item information from Product Detail page by programmatically. Step 1: Click Reorder from My Dashboard -> Recent Orders I need belove ...
1
vote
0answers
33 views

Change label and position of media in store views via API

I encountered a problem today while saving images via the API: catalogProductAttributeMediaGalleryManagementV1. The label and position of the image for all the store views except the default one are ...
1
vote
0answers
28 views

Magento 2, How to respond array in API without sort

Using Magento 2.2, API. I need to return array sort by value but although I try to sort by value the result still return array sort by key. CODE $listStore = array(); // Store locator collection $...
1
vote
0answers
145 views

GET products for my cart with customer token

I want to insert items in a cart using a customer token. I already found how to insert the products but it needs the SKU of the products. The problem is I can't find a way to get the product's SKU ...