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

how send more item details to cart Api in Magento 2

this is postman api call http://praveen/Magento/rest/V1/carts/1/items Responce is { "item_id": 10, "sku": "lenovo", "qty": 1, "name": "lenovo", "price": ...
3
votes
1answer
284 views

Magento2 API Filtering Multiple categories

In Magento2 API, how would I filter by multiple categories? V1/products?searchCriteria[filterGroups][0][filters][0][field]=name&searchCriteria[filterGroups][0][filters][0][value]=%test%&...
1
vote
0answers
27 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?
0
votes
0answers
13 views

Create config product with multiple attributes in magento1.9 soap api

Can anyone help me how to add multiple attributes to config product creation using soap api. I am followed the below link: link but iam unble create multiple attribues in associated product section....
0
votes
0answers
78 views

Magento2 : How to connect third party ERP system with Magento system

I'm working on Mageno2 module, which is connect to Infor ERP system. How to get data from Infor to Magento system or Magento to Infor system? Any documents or third party extension available for it. ...
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 ...
3
votes
0answers
39 views

Get list of coupons code for a cart id

Is there any API in magento to get list of all coupons appreciable to a corresponding cart id. can we get sale rules for a cart id and then find coupon through it
1
vote
1answer
168 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
531 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
188 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
141 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
558 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
32 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
214 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
40 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
83 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
37 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
123 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
84 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
103 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
116 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
44 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
32 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
219 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
43 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
13 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
24 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
836 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
23 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
34 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
579 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
373 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
27 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
151 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
116 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
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
42 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
20 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
144 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
19 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
580 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
16 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
53 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
587 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
33 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
30 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
347 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
617 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. ...