Questions tagged [api]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
113 views

Add Custom Field to Billing Address Form on Admin and API - Magento 2

I tried few things but it didn't fully worked. I need to create a custom field to Billing Address on "Create Order" page on Admin Panel. And the result of this field should appears on "orders" API. ...
0
votes
1answer
173 views

Sales order address custom attribute value in Order Rest Api

I have added door number custom attribute to sales order address table. But I'm not able to get the vale in Order REST API. Please help me on this
0
votes
1answer
25 views

Magento 2.3.4: Facebook error: the parameter app_id is required

clicking on the facebook symbol right below the ADD TO CART button returns the error the parameter app_id is required as seen in the screenshot below. Is there anything that should have been done ...
1
vote
1answer
123 views

How to cancel or close an order that has been invoiced through the API

I know in previous older versions (still 2.0) that I could cancel an order in processing with an invoice but recently that seems to have stopped working for a few of my clients. ie: /V1/orders/{id}/...
0
votes
0answers
16 views

Apply filters or mass actions on grids with fake collection (or wirhout ui components)

I a admin grid with a change on _prepareCollection() function to get the collection from a response of api call, its working fine. But I do not have the filters or mass functions, how can I do that ...
1
vote
1answer
45 views

Version 2.3 API Image Import with a path and not base64

I am using the catalogProductRepositoryV1 (/V1/products) for importing a bunch of products (about 9.000). We have a very high fluctuation of products per day/import. So I would like to import images ...
0
votes
1answer
22 views

productAttributeOptionManagementInterface api not loading attributes

I use \Magento\Catalog\Api\ProductAttributeOptionManagementInterface in my constructor and since Magento 2.3.5 it doesn't load any attributes.
0
votes
1answer
99 views

Magento 2.x.x extension attributes API add object array

Have added custom attribute to order API with following info here: https://www.atwix.com/magento-2/adding-custom-attribute-to-api-response-in-magento-2/ It adds the "customer_feedback": "this is my ...
0
votes
0answers
15 views

Magento 2 : How to update customers data?

I'm trying to update customers data but I don't know exactly what endpoint I must use, I want to change for example names and addresses with an external library to create random data and get that data ...
0
votes
1answer
33 views

How to return products in stock via API REST using SearchCriteria?

I have an integration that must get my products in stock via the Magento 2 API using SearchCriteria. How could I filter it, since it's inside my custom_attributes?
0
votes
0answers
13 views

Multiple carts using Admin API?

I'm a NodeJS dev and I've never worked with Magento (nor know PHP) and it may be a dumb question. I've used the Admin REST API to process orders by following this tutorial: https://devdocs.magento....
0
votes
2answers
55 views

Magento 2 Advanced Reports 404 page

How to fix 404 page in Magento 2.2 - 2.3.4 versions Advanced reports? If you see the status pending in the configurations, and the user for advanced reports is absent.
1
vote
1answer
963 views

Magento 2 : How to update qty and stock status using API for multiple products?

How to update qty and stock status using API for multiple product in Magento 2 ? We are doing ERP integration with magento 2 and we need to update qty and stock status. in magento 1 we had ...
0
votes
0answers
11 views

Magento2: Can we get all products from Magento1 by rest/soap api and show/create product in magento2?

I want get all products, categories in magento2 site by rest or soap api from magento1. Products/categories will show in grid. How can do that?
2
votes
2answers
201 views

How to add new custom fields in existing GraphQL API (Query and Mutuation)?

I have basic knowledge about GraphQL. Now, I would like to convert my knowledge into action. For that, I want to know about few things like how can I add my custom field to any GraphQL Query and ...
0
votes
1answer
56 views

Magento2.2.2 SOAP API Create Partial Invoice

Partial invoice doesn't seem to be working correctly for SOAP requests when multiple item has been ordered. POST URL: http://dev.test.com/soap/all?services=salesInvoiceOrderV1 SOAP BODY: <?...
0
votes
1answer
75 views

Error on Update inventory REST API? when SKU has a “#” in it

I'm trying to update the inventory of our products from our ERP using the rest api. I have run into an issue when the SKU has a pound "#" in it. A URL like: https://magento.xyx.com/rest/V1/...
0
votes
0answers
13 views

I am trying to get the wishlist data and created a module but it's showing me “Request does not match any route”

Code for a wishlist from here I have tried code a wishlist code from the above link and also created a module but don't know why I am getting a response "Request does not match any route" in postman, ...
0
votes
0answers
21 views

Is possible to Invoice, Ship, Cancel sales_order_item in other words Sub-Orders via REST or GraphQL APIs?

Wanted to know whether to was possible to update/change the sub-order wise status of sales_order_item via Restful or GraphQL APIs ? I could not find this in the swagger link posted here: https://...
0
votes
0answers
33 views

Fetch products from category using elasticsearch

<?php namespace Magento\FetchProductsFromCategory\Model; use \Magento\FetchProductsFromCategory\Api\ProductInterface; use \Magento\Framework\Exception\NoSuchEntityException; class Product ...
2
votes
1answer
40 views

How to create a custom api for mobile app in magento 2.3

I want to create custom APIs for a mobile app tp cop up with my Magento 2.3 .x project. Like APIs for plugins installed like cc avenue, store locator plugin.
0
votes
0answers
16 views

How to obtain attribute_set_id from product attributes API response

I've been trying to retrieve attribute_set_id and attribute_group id from the below endpoint. rest/V1/products/attributes?searchCriteria=0 However, the response only contains the below keys which do ...
0
votes
0answers
95 views

Connection of magento 2 site with akeneo pim installed in localhost using akeneo connector

Environment: Magento: 2.3.4. Akeneo PIM: Vr 4 (community ) Hi! I have downloaded akeneo community pim using docker. It's installed in my mac and can be accessed at localhost:8080. I have also ...
0
votes
0answers
61 views

Laravel API integration with Magento 1.9

How can I integrate laravel api to get products from laravel site and show with magento's product list page.
0
votes
1answer
10 views

API Orders Search not accepting value

Doing an order search via API as follows: {{magentoEndpoint}}/rest/default/V1/orders?searchCriteria[filterGroups][0][filters][0][field]=status&searchCriteria[filterGroups][0][filters][0][value]=...
2
votes
2answers
153 views

How do you accept terms and conditions via API?

I attempted to place an order via /rest/default/V1/carts/mine/payment-information and got the following response: "message": "The order wasn't placed. First, agree to the terms and conditions, ...
0
votes
0answers
14 views

How to compare products metadata in database [Magento 2]

I'm creating configurable product by API. All is working fine and the simple/configurable products appears in the backend. However when I look at the frontend, only simple product are shown, not ...
0
votes
1answer
143 views

Magento 2 : Instagram Graph API Integration

Instagram now updated its API and now it uses Facebook Graph API. I want to get all the images from my Instagram page in Magento 2. How can I retrieve it in Magento 2? It always return : The ...
0
votes
0answers
15 views

How to connect Magento 2.3 to Odoo 11

I'm a beginner, As part of my graduation project, the company asked me to connect Magento with Odoo. I installed Magento 2.3.4 and Odoo 11 I do some research and I find that Odoo Magento Connector ...
0
votes
1answer
95 views

Magento 2 - Get order custom attribute data using rest api

While i am trying to get order custom attribute data using rest api it's coming as string. But magento returning all other data as JSON. Does anyone have any idea how to make this look like json? ...
0
votes
0answers
49 views

magento 2.3 extend rest api to put stock item by id

This is the request to update the stock item of a product: https://www.example.com/rest/V1/products/{sku}/stockItems/{itemid} I am having problem with complex sku with special chars, so I do not ...
0
votes
0answers
17 views

Ship different qty than ordered qty

I know how to ship orders programmatically and I'm doing it in my current Magento 2 project. However, the requirements is to ship orders programmatically (from an app using custom API) where the app ...
0
votes
0answers
36 views

Price not updating on front end after API product update

I have an issue in that whenever I update a product price using the asynchronous endpoint POST http://base.test/rest/all/async/V1/products (running Rabbit MQ), the price does not change on the ...
0
votes
0answers
24 views

Upload an image via API to use in product description ony

The Magento 2 REST API Reference only mention one method to upload images: POST products/{sku}/media I would like to upload images for the sole use of product descriptions, not to appear in product ...
0
votes
0answers
29 views

Bulk endpoints not running asychronously?

I am trying to upload multiple products to my M2 site at once using the bulk endpoint... /rest/all/async/bulk/V1/products/bySku At first glance everything seems OK. The jobs are queued in Rabbit MQ ...
0
votes
1answer
70 views

Magento 2 Access REST API

I tried looking for answers before posting but couldn't find any. I hosted my magento site in siteground and added integration. Then I tried accessing the API using Postman but I get either 401 ...
0
votes
0answers
43 views

Magento 2 Rest Api Get Data

I have added 3 fields into Magento 2 Order Rest API using the "Extension Attributes". All these 3 fields are visible using order id call rest API: https://www.example.com/rest/default/V1/orders/...
0
votes
0answers
18 views

Magento2.3 - Batch update stock qty using SKU array

{"inventory":[{"sku"=>"test", "qty"=>"33"}, {"sku"=>"test2", "qty"=>"110"}]}. can someone please tell me how can I perform batch update on stock item without using csv.
2
votes
0answers
79 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
18 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
13 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
18 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
2answers
1k 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
50 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
55 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
44 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
32 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
93 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 ...

1 2
3
4 5
33