Questions tagged [api]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

Payment API for mobile App

We are planning to develop native apps for magento2 website.Currently we're using paytabs as payment method no other options for now. Here's module if you want to take a look. Module it self using ...
0
votes
0answers
17 views

Encrypt API based on module config?

We have created a module that its purpose is to save configuration via API. For example we can call the API and make changes to web/unsecure/base_url. It all works as expected, but some ...
0
votes
0answers
8 views

unnecessary api calls to external site disadvantages

I worked in a website before 3 years at that time I wrote a code to update 2 fields in database. I got the value of fields from an external api. I had to pass company_id for that api to get the ...
0
votes
0answers
13 views

Call API, return values and send them as mail

we want to do the following: When a customer buys and pays product A, we want to call a 3rd party API in the backend store the returned values add them as properties to the order send them in an ...
0
votes
0answers
15 views

How do I append an attribute field to the V1/products/attributes API call

When creating a product attribute, I have a custom property that can be assigned; it's stored as api_attribute_id. When making GET API calls to V1/products/attributes, I'd like for this data to be ...
0
votes
1answer
33 views

Magento 2 Get Value of Custom Attribute on Magento 2 Rest API V1/orders/items

I am trying to get the Custom Attribute I have in the sales_order_item to display on the rest/V1/orders/items API call. I was able to get the Attribute to display on the rest/V1/orders API call. Using ...
0
votes
1answer
28 views

How I can set “Display Product Options In” via Magento2 Api?

does anyone know if you can set this option via Magento API I couldn't find anything in the documentation, and I'm too unable to find it in the source code https://devdocs.magento.com/redoc/2.3/...
0
votes
1answer
21 views

REST API : Magento 2 : Without admin token how i can registered new user?

I am using bearer token for rest API authentication in Magento2.3.2 but I am facing one issue, while registering the new user, admin authentication token is required while registering New user by API. ...
0
votes
0answers
9 views

Whenever I fill up the below form and clicking on Save Item Button Data should go to New Scan Orders/New Health Checkup orders Page

Girish/checkupforms is the model for New Health Checkup Orders Page Girish/forms is the model for New Scan orders Page public function saveAction() { if ($data = $this->getRequest()->...
0
votes
1answer
28 views

I added a Prescription Field in my Magento 1.9 Form Page

$fieldset->addField('prescription', 'file', array( 'label' => Mage::helper('surgery')->__('Upload'), //'value' => 'Upload', 'name' => 'prescription', ...
0
votes
0answers
19 views

how get magento 2 with swagger UI API

i was created a token and enable a web api too and then set a user roles. when open www.abc.com/swagger,i applied token API_key(on top), but it shown blank screen. kindly guide me step by step ...
0
votes
0answers
55 views

Magento2.2.6 How to create custom api module?

How to create custom api module for category listing and product filter sales order...etc below added custom api module integrate after check it postman result { "message": "Request does not ...
0
votes
0answers
16 views

Magento2 I have using Magenative mobiconnect Extension But getting issue on filter product attribute api

I have using Magento2.2.6 and I have to used Third Party Mage native Mobiconnect Extension integrated and have find on filter size there data showing on website level properly if product in stock ...
0
votes
0answers
26 views

Changing the CopyRight Notification Year from 2019 to 2020 in Magento 1.9

I tried out Admin -> System -> Configuration -> Design (left menu) -> Footer -> Copyright but it is not changing the Year from 2019 to 2020....Any correct solution ...Reply back to this Question as ...
1
vote
1answer
36 views

Magento 2.3 : I want to add my third party js link in layout.xml file .?

Can anyone tell me how to add third party js link in magento2.3. I want to add this in my layout.xml file and use in template file. The resource from “http://127.0.0.1/magento2/pub/static/...
1
vote
1answer
30 views

Magento 2 - Custom API to get layered navigation

In magento 2.2.5 Enterprise edition I am trying to get layered navigation using custom API. I got solution form here: https://magento.stackexchange.com/a/262086/31910 and http://www.sivaschenko.com/...
0
votes
0answers
30 views

Problem with POST request in magento 2

I have a problem with the post request to my API module. When I go to the address domen/module-mobile-api/index/loginUser using the browser, everything works out but if I use postman or other ...
1
vote
2answers
118 views

Magento2 API : update product data not assign to All store view

API call : /V1/products/{sku} I'm Updating product by API. In which I'm passing website ids 0,1,2. It will update data only in stores, not to All store View. I don't want it to ...
1
vote
0answers
20 views

Magento 2 - Get configuratble product using API

I can get product detail with this API endpoint: https://example.com/index.php/rest/V1/products?searchCriteria[filterGroups][0][filters][0][field]=entity_id&searchCriteria[filterGroups][0][...
0
votes
1answer
129 views

Magento Cannot instantiate interface

I wrote a custom api for magento 2.3.1 When i call the endpoint that i was created i get the following error { "messages": { "error": [ { "code": 500, "message": "...
2
votes
1answer
46 views

Magento2.3: How to integrate Salesforce?

I have to integrate Salesforce in Magento. Since I'm new for this, I'm not sure where to start. In order to integrate this, do we need any extension or can I integrate it without extension ? Also, ...
1
vote
0answers
18 views

M 2.2 - Swagger UI gives undefined and Request does not match any route

Failed to load API definition. undefined https://www.example.com/rest/default/schema?services=all While inspecting further i can see that it gives me below error. {message: "Request does not match ...
0
votes
0answers
16 views

Need to get multiple column details through API

I wanted to get position and department of given email id. I am able to get one of them. What is the way to get it both. Service class:- public function getInfo($email) { $CustomerModel = $this->...
0
votes
1answer
25 views

Error while running API :Undefined Property

Magento 2.3, here is the stack trace: rk/App/ErrorHandler.php:61)"} [] var//log/exception.log:[2019-12-12 07:26:41] main.CRITICAL: Report ID: webapi-5df1ebb139956; Message: Notice: Undefined ...
0
votes
0answers
64 views

Magento 2 . API: want to fetch only order ID but every order details are coming

webapi.xml: <route url="/V1/orders/" method="GET"> <service class="SimplifiedMagento\Custom2\Api\OrderedRepositoryInterface" method="getOrderDetails"/> <resources> ...
1
vote
0answers
24 views

Swagger redirecting to login when going from Production mode to Developer

When I tried to set my production mode instance to developer mode I can not get swagger to load. If I go to mystore.com/swagger it will redirect to the login page. Deploy mode is set to developer. I ...
6
votes
2answers
625 views

I have to make an API where I can return orders (product name) placed by a customer using customer Id?

In sales_order table product name field is not there but i have to fetch that too. How to fetch the product name ordered by a customer using customer ID?
1
vote
1answer
31 views

Magento 2 : issue with service class of API (Message: Notice: Undefined index: entity_id)

this is error: var//log/debug.log:[2019-12-10 10:59:36] main.CRITICAL: Report ID: webapi-5def7a98e911d; Message: Notice: Undefined index: entity_id in /Applications/MAMP/htdocs/Magento2_3/app/...
1
vote
0answers
31 views

Magento 2 REST API - Tax Rates for Taxable Products

For the purpose of testing I have setup a simple product with a tax class of 2 which I believe is Taxable Goods. I can see 2 test tax rates when using the api call /rest/V1/taxRates/search?...
2
votes
2answers
43 views

Not able to get data through API…!

Error is "message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5dee36e254394". When you run http://localhost:8888/magento/rest/V1/position/1 Need to get result ...
1
vote
0answers
18 views

Magento 2 Braintree AVS check not working in REST API

Using this API https://www.domainname.com/index.php/rest/V1/carts/ mine/payment-information AVS and CVV verification are enabled at Braintree end but when credit card zip code and billing address zip ...
3
votes
2answers
115 views

Magento2 create Product API

I'm creating Product create / Edit API for admin. In product edit API some attributes are in custom_attribute section(most of newly create) some are in extension_attribute and remain are directly ...
1
vote
1answer
68 views

Magento 2 credit memo API observer/plugin

I'm interested to know if an observer or plugin will be trigger if a credit memo is created via API rest example: POST /V1/creditmemo/refund OR POST /V1/invoice/{invoiceId}/refund ref:https://devdocs....
1
vote
1answer
18 views

Turn API Return to Object PHP

My API returns a JSON that I would like to transform into a PHP object so that I can find a specific field in return. how can I do this? My get public function teste() { $requestUrl='http://...
4
votes
3answers
181 views

Magento 2 - Get product image url in API

I am creating custom API in magento 2 and I need to get image URL of product. I have used this code to get image URL: $imageUrl = $this->listProductBlock->getImage($product,"category_page_grid"...
2
votes
0answers
30 views

how to customize the Magento 2, Core API URL

I want to customize the magento 2 core base API URL. For example, If my magento base url is http://local.m233ee.com/rest/v1/ . As per my project requirement, i have to change the base URL to ...
2
votes
2answers
229 views

How to fetch post method xml data in Magento2 controller

We have to implement the punchout concept in magento2. There is a 3rd party system they will send data using the cXML format to Magento 2 endpoint. We need to fetch that data in the Magento2 & ...
1
vote
1answer
65 views

magento 2 api. create product with multiple colours and sizes with different image and stock for each variant

I am a noob to the Magento ecosystem. I have read the documentation for the Magento 2 api and understand that I have to create a configurable product but I am not understanding the flow for creating a ...
0
votes
0answers
17 views

How to customize API in magento 2

I am trying to customize API's which are built-in with Magento 2. for example. I want to add some key-value pair in customer information (rest/V1/customers/me/) Thanks for Helping.
3
votes
1answer
50 views

How to call a 3rd party API from a controller? Magento 2

I built a custom module. Its admin tables with CRUD functionality. I am putting a new button on the grid via the Ui_component listing XML file. When this button gets clicked I want to call a 3rd party ...
0
votes
0answers
23 views

Magento2 How to send SMS to customer when order placed succesfully

I'm using Magento version 2.2.5 How to Send SMS to the customer when order placed successfully. Please help me out on this. I'm using (PRP services SMS API) Thanks in advance.
2
votes
0answers
44 views

Magento 2: GraphQL V/S REST API [closed]

I am planning to build API's. Which is better GraphQl or REST API? How easy to customize either as per the developer perspective view? https://www.howtographql.com/basics/1-graphql-is-the-better-...
1
vote
0answers
32 views

Magento 2 : Show order items custom option text value in order api (/V1/orders/{id})

I want to show order products custom option in default magento 2 api rest/all/V1/orders/order_id run it looks like below as we know I need text value of the custom option in default single magento ...
0
votes
1answer
39 views

Getting 404 error while configuring REST API using RestClient in Magento 1.9

When I try to initiate oauth for getting oauth tokens with callback in my localhost, it throws 404 page not found error. I configured consumer key and secret and with oAuth 1.0 and using GET method. ...
1
vote
0answers
21 views

Is there any way to restrict API methods in Magento2?

I refer:http://vinaikopp.com/2017/02/18/magento2_repositories_interfaces_and_webapi/ So apart from that any other way possible to restrict API and also is it possible to restrict few methods in API ...
5
votes
1answer
50 views

Why API is not in every folder of default Magento folders? When Api is needed?

I already know the basic of API and its use, but in magento its confusing.(I am new in magento) if I am creating my module, I can get data from model/repository, that's means API is not required every ...
2
votes
1answer
33 views

How to get the categories child category list per store in magento2 rest api

I need to retrieve categories and child-category list per store. I have two store have store code grocery and fruit.
0
votes
1answer
57 views

How to Get All Product with pagination using REST API in magento 2?

Using REST API Get all product with pagination. In first page 20 product and second page 20 products ect...
0
votes
0answers
15 views

Cannot filter by created_at field in magento SOAP

Title says it all. The API can't seem to filter by product's created_at value. I am able to filter by any other value, especially the updated_at but not created_at. I have noticed that the particular ...
1
vote
1answer
31 views

Bulk Actions Log

After testing Rest Async-Calls with RabbitMQ-Server, all worked fine. In the Magento-Database the table "magento_bulk" and "magento_operation" is full with data from the Rest Async-Calls. But in ...

1 2 3 4 5 31