Questions tagged [api]

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

593 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
146 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 ...
1
vote
0answers
40 views

Add products via REST API to Magento 2 webshop

I want to add products to my webshop via a REST API. I have the following API documentation available. Ofcourse, I also have a API token and Test API token. My question is, how can I import the ...
1
vote
1answer
56 views

Yet another bulk product import issue

We are planning to import a few thousands of products with custom options in Magento CE 1.9. We use SOAP for that, CSV is not an option since additional attributes may store html, json or serialized ...
1
vote
0answers
1k views

Get error message by Report ID in magento2 Programmatically

message": "Internal Error. Details are available in Magento log file. Report ID: webapi-5b5aff5a570b7 I am getting above message from one of the custom Api. From the report id "webapi-5b5aff5a570b7" ...
1
vote
0answers
20 views

Magento2, how to get Cart_ID from Quote_ID?

Using Magento 2.2, API. I want to get cart_id from qoute_id for get selected option of configurable product to create order again or reorder.
1
vote
0answers
181 views

Magento 2 API for Mobile Application, Do i need to merge multiple APIs for mobile developer?

I am developing service contact in Magento 2 for Mobile Application purpose. And i am getting data for specific APIs in POSTMAN like Customer Account Data Register | create Account Add product in ...
1
vote
0answers
103 views

Magento 1.9 - get signed in user detail with token and custom API

I want to access Logged In user detail with Oauth 1 Token and Custom API. I have an Angular app that I can log in with OAuth 1 but I need to show Firstname and Lastname and profile picture in my App. ...
1
vote
0answers
30 views

Magento 2. APIs. What is Content Tagging?

I'm looking here https://devdocs.magento.com/guides/v2.0/get-started/bk-get-started-api.html Under What can I do with the Magento web APIs?, you can find Integrate with a CMS (Content Management ...
1
vote
0answers
49 views

How to create Rest API for Store Wise Site Map in Magento 2?

I want to create Rest API for sitemap according to the store-wise. Which include active, salable and visible products on front-end. Can anyone suggest? How to do that task?
1
vote
1answer
258 views

unable to set store ID in place order REST API - Magento2

There is no option to set store ID in place order API: rest/default/V1/carts/1/order Payload has below data only: { "paymentMethod": { "method": "banktransfer" }, "...
1
vote
0answers
26 views

Adding multiple products (csv files taking too much time)

So we have a CRM/Accounting/Sales/Inventory system called BrightPearl. This is used as our product database and we can import and export data into it using CSV. Files. I say product database and use ...
1
vote
1answer
373 views

Magento 2 rest api get params returns empty array

Magento 2 rest api get params returns empty array can any one tell me where I am going wrong. i/p: in postman body => raw => json { "orderids":[1,2,3] } (or) { "orderids":"1" } (or) ...
1
vote
1answer
388 views

Magento 2 Tier Price using API

it looks like is not possible to use "Tier Price" when creating an order with API in Magento 2.x Can you confirm that? Is there a solution to create an order and get the price based on tier price ...
1
vote
1answer
442 views

Orders Api Error : “Request does not match any route”

In my Magento 1.9, I need to access orders by calling API: http://somesiteUrl/api/rest/orders but the response is 404 with error: {"messages":{"error":[{"code":404,"message":"Request does not match ...
1
vote
1answer
71 views

Magento 2 : Unable to create product on magento 2 store using rest api

{message: "Consumer is not authorized to access %resources",…} message : "Consumer is not authorized to access %resources" parameters : {resources: "Magento_Catalog::products"} resources : "...
1
vote
0answers
104 views

Magento 2 REST API Order Management

I am using Magento 2 and want to manage orders using REST API from a third party portal. I am facing two problems: Paypal orders when placed go to status of Complete instead of Processing and then i ...
1
vote
0answers
39 views

Payment Method: Checkout convert price to cryptocurrency via API

I am trying to make a payment module via cryptocurrency. I want to show in the success (final) page ( checkout ) the amount of crypto that clients needs to pay. I have embedded the api and I call ...
1
vote
0answers
187 views

Debugging in Rest Api

I want to debug which api is called.Any tool is available for debugging in magento 2.1.12?Anybody help me.
1
vote
1answer
131 views

Magento 1.9 SOAP product update - out of stock

I manage to update products by SOAP api, but after update my products have 'Out of stock' label. It looks like Magento bug, because I am not updating stock inventory and I don't use this feature in my ...
1
vote
2answers
504 views

“Unable to unserialize value” error on GraphQL query 2.3-develop branch

I'm trying out the GraphQL API on the 2.3-develop branch. On a clean Magento install, all queries return: "errors": [ { "debugMessage": "Unable to unserialize value.", ...
1
vote
0answers
207 views

Magento 2 - creating a Custom Attribute of type Boolean and assigning its default value to all the existing products in the DB

I have created a custom Attribute for the Product which if type Boolean and set the default value as Yes. When I try to fetch the newly created attribute through Rest API I am not able to get the ...
1
vote
0answers
261 views

Magento 2 add customer address attribute to REST APIs response?

I have created customer address attribute "city_id" with setup script. I am able to save the value. but want to display the city_id field to the below apis json response. how we can we add city_id in ...
1
vote
1answer
537 views

Magento 2 Oauth request token - oauth_problem=Invalid+signature

Magento 2 Oauth error invalid signature while try to get request token from postman
1
vote
0answers
47 views

Getting Error in SwaggerUI in Magento V.2.2

The SwaggerUI has been working perfectly fine but now after installing some Modules, I think the Swagger is not at all working. It's custom module and custom admin theme. I checked the logs and ...
1
vote
0answers
233 views

Partial Shipment

Using the Rest API of Magento we can create the full shipment but if I am trying to create partial shipment then it will create fully shipment.
1
vote
1answer
256 views

Adding attributre label and attribute option value label to get cart rest api in magento2

Hi I want to add attribute label and attribute option value label to Magento 2 Guest cart REST API response like below screen shot by overriding default magento 2 files. https://prnt.sc/i73dxm ...
1
vote
0answers
453 views

Value index is not specified for an option - Magento 2 API

I'm getting the error at below, when i try to set the configurable attribute, to create configurable product via Magento 2 API: as described in: http://devdocs.magento.com/guides/v2.2/rest/tutorials/...
1
vote
0answers
414 views

Magento 2.2 Creating Configurable Product With API

I want to create configurable product and its related simple products at the same time via API. For example: shoes; with different sizes(attribute=shoesize).. as like: Prada's new shoe (...
1
vote
0answers
324 views

Search all products with attributes color & size REST API : Magento 2

How can I filter and get all products which has specific color or size REST API ?
1
vote
0answers
426 views

Magento 2 soap API in C#

I've been searching for ways to use soap api in c# (with visual studio 2015). First I thought it was simple, just add web reference like this site (http://tdmts.net/2017/02/07/magento-2-soap-api-with-...
1
vote
0answers
12 views

How to set product store view fields to default with use_default[]?

I see the use_default[] field name used in the product editor page source, and figure it would be a fantastically simple and direct way of achieving precisely what it does via the API, rather than ...
1
vote
1answer
459 views

Magento 2 : Cannot Use REST API

I tried to use Magento rest api using oauth signature or token-based, but it's a nightmare. I followed this guide: http://devdocs.magento.com/guides/v2.2/get-started/authentication/gs-authentication-...
1
vote
1answer
1k views

Check products in cart if they are out of stock before place order REST API : Magento 2

I am building mobile application using Magento 2, I had an old defined cart which had a product and when checking out it gives an error saying the item is out of stock, that happened after payment and ...
1
vote
0answers
222 views

Braintree & Magento 2.2 Client Tokens

Please forgive my ignorance. I've been successfully building & managing Magento 1 stores for a few years and I usually manage to muddle my way through server configurations & installs with ...
1
vote
1answer
740 views

Estimate shipping methods by address id Error REST API : Magento 2

I am trying to call this magento 2 built in API : POST http://domain.com/rest/V1/carts/mine/estimate-shipping-methods-by-address-id In Body : {"addressId": 194} But I got this error: { "...
1
vote
1answer
44 views

Magento2 Apis fetching product video details

Can anyone help me how to fetch the videos details of product in magento2 Apis I wants display content like below screenshot in my module Api; please find the screenshot below: https://prnt.sc/...
1
vote
0answers
16 views

Magento2 Apis fectching product collection in entry.php file

Can anyone help me, how this content for apis is actually fetching and how the collection is getting here for the below file: vendor/magento/module-catalog/Model/Product/Gallery/Entry.php Screenshot:...
1
vote
1answer
130 views

Adding extention_attributes to Oder not working

There's an extension in my project and I want to include one of its attributes in the Order object so that Zapier can see that field. I don't have to save that field, it's saved somewhere else, so I ...
1
vote
0answers
114 views

Rest API issue in cart : multiple store only shows default store's price of a product in cart for both store in magento2.1.7

In my multi store Using here same magento2 default API calls to POST and GET cart items, However am getting only default price of a product for both english and arabic store.ALL other product up to ...
1
vote
0answers
28 views

What is the replacement of Mage_Catalog_Model_Product_Api() in magento 2

What is the replacement of Mage_Catalog_Model_Product_Api() in magento 2. $mc = new Mage_Catalog_Model_Product_Api(); $sku = 'testsku'; if ($product) $productId = $...
1
vote
0answers
32 views

Associating two related models

So I'm creating a plugin wherein a customer can have grocery lists. I have two created models - GroceryList and GroceryListItem. A grocery list contains one or many grocery list items. I can fetch ...
1
vote
1answer
490 views

Adding custom column data to extension attribute in magento's default V1/orders API

I have a custom delivery_date column in quote table which I want to pass to V1/orders , I have passed this in extension_attribute.xml as following ; <?xml version="1.0"?> <config xmlns:xsi="...
1
vote
1answer
189 views

Magento 2 Trying to implement paypal payflowpro using CC within a custom SOAP api plugin

So I have created a custom module that extends Magento 2's API functionalities. Everything works fine except the payment part. This API extension allows among other things to create orders and it ...
1
vote
0answers
497 views

how to call API in magento2 from custom module controller

I have installed an module thats working fine. I tried to run this modules API via Swagger and I am able to run from there. Now I want to implement this modules API in my custom module and I tried ...
1
vote
0answers
116 views

Magento 2.2 Rest API not working for Sales Orders and Customers

We are trying to get Customers and Sales Orders from Magento 2.2 Store using token.After creating API Username and Roles, with the same request we can retrieve products but not sales orders and ...
1
vote
0answers
129 views

Call custom module API in magento2

I have installed a module that allowing to upload attachment to products. But I have to do this pro-grammatically via my other custom module. installed module have API function in it. But I don't ...
1
vote
0answers
169 views

Magento 2 to Netsuit error: BaseRef is an abstract type and cannot be instantiated

Here is my controller class <?php namespace Jlsmith\Netsuit\Controller\Api; use Jlsmith\Netsuit\Model\NetSuite\NetSuiteService; use Jlsmith\Netsuit\Model\NetSuite\Classes\GetRequest; use Jlsmith\...