Questions tagged [api]

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

1
vote
1answer
89 views

Property “FilterGroups” does not have accessor method “getFilterGroups”

I'm sending the request http://10.232.32.64/rest/V1/orders? searchCriteria[filter_g‌​roups][0][filters][0‌​][field]=status& searchCriteria[filter_groups][0][filters][0][value]=pending& ...
2
votes
2answers
199 views

Optional parameter in Magento 2 REST API

I have a API route like, <route url="/V1/product/:productId" method="GET"> <service class="Vendor\Sample\Api\SampleInterface" method="sample"/> <resources> <...
0
votes
2answers
124 views

How to connect Third party service like ERP system in Magento 2?

How to establish the connection of third party ERP system in magento 2 ? I have credential of Acumatica, How can I establish the connection in Magento 2 and set some data to that ERP system, and Also ...
0
votes
0answers
108 views

Magento 2 coupon generate api exceptions

I'm having a hard time understanding why the v1/coupons/generate is throwing a {"message":"One or more input exceptions have occurred."} (status_code 400) error I'm using this call to batch generate ...
0
votes
1answer
231 views

How to clean up magento2 database programatically?

How can I delete all test data from magento2 database programatically. Is there is any way to run an API and delete all test data?
0
votes
0answers
27 views

How to get admin details like first name, last name,email using Rest API in Magento 2

How to get admin details like first name, last name,email using Rest API in Magento 2. Any options to add custom attribute like GST No, company name, contact number, Bank details
0
votes
1answer
160 views

How to increase/decrease items quantity of product in cart using REST API in magento 2?

How to increase/decrease items quantity of product in cart using REST API in magento 2
0
votes
1answer
35 views

Magento2: How to redirect to payment gateway using api

I am new to Magento and want to implement payment gateway with 3rd party. I am using credcommerce module creater but it works with offline. Can someone guide me so that I can develope Payment gateway....
1
vote
0answers
53 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
1answer
35 views

API Product with multiple words

I dont know how can I add multiple words search using magento 2 product api. Example : https://www.store.com/index.php/rest/V1/products?searchCriteria[pageSize]=8&searchCriteria[filterGroups][0][...
1
vote
0answers
54 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. ...
0
votes
1answer
45 views

Magento Open Source 2.3 / 2.2 - How many orders / inventary and SKU it can handle?

I'm about to start a project, But my concerned is on the data, the magento 2.2/2.3 can handle. The traffic figures are in 1 Million to 5 million and we are not interested in Enterprise model as of ...
1
vote
1answer
49 views

Why Magento is not giving final price in rest api?

I have recently try to get product final price via rest api. You can check special_price is already active and it will 20 but of price are coming 45 it will be 20. API URL : http://magento.local/...
0
votes
1answer
77 views

rest api invoice capture does not save entry to transaction log

Magento faithfully logs the transaction detail when I manually capture an invoice within the Magento store interface. I assume that Magento would likewise generate the same transaction detail entry ...
0
votes
0answers
28 views

Soap api v1.9, get children product of a bundle

I've to get the children product of a bundle with the soap api. I've trying with the catalogProductCustomOptionList and with the catalogProductLinkList method but the api always return 0. Do you know ...
0
votes
0answers
24 views

how to customize magento 2 order iteminterfae soap api

Hi in magento2 default API order item interface i need to add custom fields those are not attributes just i need to add custom flags in soap API based on order id flags will come how to add that it is ...
0
votes
0answers
146 views

Magento2 Update customer attribute via API

I'm trying to update an attribute for a customer using the rest API Being that I have a customer id, it should be a simple API call to /V1/customers/{id} The description of that endpoint is Create or ...
0
votes
0answers
15 views

Magento 2 user field validation using an API

In a dedicated data table where we stored customer's privilege card number in order to validate them with users that they enter to a field called "privilege card no" On such an occasion I'll have to ...
0
votes
0answers
12 views

Preventing recursion in custom Magento API

I'm having some issues dealing with recursion in a custom API endpoint I have written for Magento 2. I have an endpoint that returns an entity which contains a number of fields, one of these fields ...
0
votes
0answers
5 views

Programatically change all product names to the short description

I would like to modify the way Magento loads the product names and change it to load the short_description instead. We use the API to synchronize between an ERP and the Magento itself, so once the ...
0
votes
1answer
19 views

How can i modify Magento 2 response to include additional info?

When I try to access API when i'm not authorized I want to customize response to return link where I can get token. What class should I override or change? I have no idea where to start with this and ...
1
vote
4answers
344 views

Magento 2 : How to pass json ecoded array in custom API

I have created custom API that excepting 'mixed' type parameter and returning the 'string' as I defined. In interface I define parameter type 'mixed'. As I am trying to pass array as json_encode, it ...
0
votes
0answers
19 views

How to add product with category name instead of category id in Magento using Rest API

I want to add product with category name instead of category id in Magento using Rest API.
0
votes
0answers
19 views

USPS: API Authorization failure. User [] is not authorized to use API SignatureConfirmationV3

I am having this error with my magento 1.9 during the printing label. I would like to know even after having this account approved by USPS why i am getting this. Or its even possible to print it now.
1
vote
1answer
402 views

Magento 2: Api getting product collection using category id

I am trying to get product collection using Rest Api Below is my code file: ProductsManagementInterface.php interface ProductsManagementInterface { /** * GET for Products api * @param string $...
0
votes
2answers
123 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 ...
0
votes
0answers
22 views

How to get Image data in Magento\Quote\Api\CartTotalRepositoryInterface using extension_attributes?

GET V1/carts/mine/totals This API Returns information for the cart totals a specified customer. How to get Item Images using extension_attributes on get function of Magento\Quote\Api\...
8
votes
1answer
129 views

Magento 2: get product through api using product name

I want to get product information using product name in Magento 2
0
votes
0answers
34 views

undefined rest api checkout cart

We've multiple websites in Magento (magento2.2.4) and we've got an issue at checkout cart and checkout page. We have also enable guest checkout. "/checkout/undefinedrest/buy/V1/guest-carts/.../buy/V1/...
1
vote
0answers
17 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
34 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: ...
0
votes
0answers
17 views

How to get Timezone details in magento1.9 through magento Soap or Rest api

How to fetch Magento 1.9 store timezone using API. I am able to get store_id, code, website_id, group_id but no timezone. In Magento 2.0 and above I am able to fetch timezone but Magento1.9 API is not ...
0
votes
1answer
59 views

How to get the Admin code of an option from an attribute? REST API

I have a problem, and I want you to give me a light at the end of the tunnel. I am doing an integration REST and need to get some information from the options of an attribute, in the admin panel I ...
0
votes
0answers
9 views

Dual CMS setup login to Magento from primary site

We have a dual setup for our website, most of the site is served up on another CMS but the commerce side is all Magento 2. The primary CMS doesn't have any frontend logins for users but we need to ...
0
votes
0answers
16 views

Using product api to upload video but deletes the product custom image roles

I am using api call = rest/all/V1/products/sku/media to upload video to a product but it deletes custom image roles. Can anyone please help me out.Thanks in advance.
1
vote
1answer
307 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 ( ) [...
0
votes
0answers
15 views

Magento 2 API authorisation error

I am trying to get API for product attributes. http://mysite/elec/rest/V1/products/attributes?&searchCriteria[filterGroups][0][filters][0][field]=attribute_code&searchCriteria[filterGroups][...
0
votes
0answers
41 views

How to solve Soap API : Could not connect to host Error?

I am using SOAP V2 : abc.com/api/v2_soap?wsdl getting details from OroCRM, after Sync most of the data syced, but few of them not sync properly. Error Message : [message] Could not connect to host [...
1
vote
0answers
544 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 ...
0
votes
1answer
16 views

what are the basis on which I should define resources tag in webapi.xml

what are the basis on which I should define resources tag in webapi.xml. for example if I build an api to return product information who can access it. I've searched for that but all I found is what ...
0
votes
0answers
29 views

How to show quote_id in response of /carts/mine/totals API in magento-2.1?

I want to show quote_id in response of /carts/mine/totals API in magento-2.1. Anybody guide me.
5
votes
1answer
274 views

How to get recently viewed products by Customer Id in Model file Magento 2?

Create Recently Viewed Products for Model file in Magento 2 ?
2
votes
1answer
299 views

where to find Magento 2 API docs?

Finally I found out the magento 2 api endpoint for all products as below rest/V1/products?searchCriteria[pageSize]=20 but I need more detailed docs about api endpoints which I coudn't find out yet. ...
0
votes
0answers
84 views

Magento SOAP Cannot create an empty shipment C#

I am trying to create sipment with SOAP API in C# here is my code (I create API based on this documentation: magento.docs: ... orderItemIdQty[] itemIdQties = {}; foreach (var itm in tmp.items) { ...
0
votes
0answers
16 views

How to get the Api response in another custom folder of magento2

I am calling one API in custom module to calculate the tax , now I want the response in another folder of my custom module how can i achieve this? can anyone help me to solve this?
1
vote
1answer
148 views

Magento2 save Custom shipment field by API

I have add field track_url in table sales_shipment_track. I'm creating shipment with API http://192.168.0.105/magento2/project/rest/V1/order/1292/ship { "items": [ { "order_item_id": ...
4
votes
1answer
234 views

Get tax class ID by tax rate with REST API

I'm trying to get a tax class ID with only the tax rate value, all with the API. I found that I need a first request that returns me the tax rate ID : /rest/all/V1/taxRates/search?searchCriteria[...
1
vote
1answer
775 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://www....
0
votes
2answers
177 views

Magento 2 Add New Integration error

I have seen this has been posted before but but cannot find a definitive answer. When trying to add a new integration (System > Integrations > Add New Integration), the New Integration page ...
2
votes
1answer
400 views

How get wishlist in Magento 2 Rest API?

Get Wishlist product in Magento 2 REST API ? And Add to Wishlist in Magento 2 REST API ? Wishlist API is not provided by Magento 2