As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [rest-api]

Magento REST API defines a set of functions that a developer can use to perform requests and receive responses. These interactions are performed using the HTTP protocol.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

No such entity with customerId when using integration access token with REST API

This is with Adobe Commerce ver. 2.4.5-p1 on their cloud service. We have followed all the instructions for creating an integration token, toggling the setting to allow "OAuth Access Tokens to be ...
Jacob Brown's user avatar
0 votes
1 answer
15 views

How can I create my custom Reset Password Token

I am using plugin <type name="Magento\Customer\Model\AccountManagement"> <plugin name="custom_change_reset_password_link_token" type="Vendor\MobileApp\...
Syed Hassan Zamir's user avatar
0 votes
0 answers
12 views

Orders Rest API Missing Custom Option Label and Text Value

I'm trying to retrieve orders from the REST API in Magento Community 2.4.3 with endpoints like /rest/default/V1/orders and /rest/default/V1/orders/items but while I can see the values for custom ...
Mahmoud M. Abdelmalek's user avatar
1 vote
1 answer
26 views

Is there any API to get Products details in magento2 without Bearer Token

I want to get products By Id but it the way i am doing this doesnot return some product details in case of configurable <?php namespace Vendor\MobileApp\Model\Api; use Vendor\MobileApp\Api\...
Syed Hassan Zamir's user avatar
0 votes
0 answers
8 views

Magento Rest Api in PowerAutomate error

I have 2 poweautomate cloud flows for integrating magento to some other systems. The first one is working correctly and I am getting the items/produts based on the search criteria I am passing. ...
Alexandros Papaspyridis's user avatar
0 votes
1 answer
40 views

Strip index.php from rest urls

I am having this issue with an external platform which trying to get rest urls from my magento 2.4.5. Issue is that the urls they hit contain index.php inside. They are like this: https://example....
G. G.'s user avatar
  • 1,046
0 votes
3 answers
47 views

magento 2.4.3 api "the consumer isn't authorized to access %resources" error"

I'm trying to call magento api from an external chat bot for customer service. For testing purposes, I'm using default magento get call on order (/V1/orders/{id} ). If I create an admin (or customer) ...
Lou Nik's user avatar
  • 331
0 votes
1 answer
74 views

How to save data to database using interface repository api

I'm a newbie magento 2 developer. I'm currently learning how to store data to database using repository-interface-model-api approach. My code is not working. model ItemRepository class ...
jsnewbie21's user avatar
0 votes
1 answer
29 views

how to translate magento2 Core APIs messages

I am creating mobile app using magento2 APIs. The problem is that I want to translate messages according to the store on frontend for example i want to translate the error messages and success ...
Syed Hassan Zamir's user avatar
0 votes
0 answers
10 views

Automatically create Integration

is there a "new" way to create integrations automatically? Since my modul is gonna be tested in different environments/systems, creating integrations automatically is kind of crucial. check ...
y.y's user avatar
  • 103
0 votes
1 answer
30 views

Magento 2 custom API giving "Class string does not exist" error

In Magento 2.4, I am using custom API and it is giving the below error. { "message": "Class string does not exist", "code": -1 } I have tried this and this solution. But ...
Saravanan DS's user avatar
  • 1,118
0 votes
1 answer
27 views

REST API Response Modification to Include Custom Attribute

I'm currently using the following endpoint to retrieve the last 50 orders: /rest/V1/orders/?searchCriteria[sortOrders][0][field]=created_at&searchCriteria[pageSize]=50 However, I've noticed that ...
tess's user avatar
  • 1
0 votes
2 answers
21 views

Error trying to GET all orders

I am getting the error below trying to get all orders using get('rest/V1/orders?searchCriteria'); I am using Access Token and my integration has access to ALL API. { "messages": { ...
tess's user avatar
  • 1
0 votes
4 answers
37 views

REST API - Get an order by order id

what would be the end point for get an order details by order id? I have access to all API requests. Also which key should I use? Thank you!
tess's user avatar
  • 1
0 votes
1 answer
57 views

How to stop create customer via rest API in magento 2?

I do not know how to stop to create customers via REST API in magento 2. I have magento 2 instance in 2.4.0 version I found a below code in vendor/magento/module-customer/etc/webapi.xml path <route ...
Niraj Patel's user avatar
0 votes
0 answers
58 views

Creating an Order with configurable Product via REST API

I have been able to create an Order with simple Products via REST API and then had no issue creating its invoice and shipment. Now I want to create an Order with configurable Products, and although I ...
makeMonday's user avatar
0 votes
1 answer
62 views

How to modify custom attribute of a product with JSON (Postman) Magento 2

thank you for reading me. Is there a way to modify a product´s custom attribute? I´m using postman, i use JSON POST for price and stock but i can´t find the way to update a custom attribute of a ...
Javier's user avatar
  • 1
0 votes
0 answers
12 views

How to update products images roles with rest Api for configurable products?

either unique or configurable product, we send images the same way. The only difference is that configurable product have 3 role, unique have 4, because they can be "swatch", when do update ...
Robinio's user avatar
  • 749
0 votes
0 answers
16 views

Magento 2 : Update tables on custom rest API calls

API URL : http://website.local.com/rest/V1/rma/rma/:100000008 Method : PUT Request : { "rma": { "status":"approved", "reply": "Your Package will ...
Krina's user avatar
  • 1
0 votes
1 answer
69 views

Error in Postman and show that Invalid type for value: \"%productId%\

I have developed a module in my magento 2.2.6 for to create an API that can update the product price and quantity via product id . Please see my code below /var/www/html/app/code/AdmNetsuitePQ/...
Abilash Erikson's user avatar
0 votes
1 answer
36 views

Magento 2: How to export tables by name using REST API

How can i export tables using the REST API. I've looked through the devdocs and dont see any endpoints to do this? The tables i want are standard ones like customer_entity and sales_order.
Amethyst1's user avatar
0 votes
1 answer
37 views

apply coupon only from REST API request

I'm working on custom API collections for Magento 2. i'm trying to add new feature that allow customer to use some coupons from Mobile Apps Only. So i need to add new condition for Cart Price Rules, ...
JosefBy's user avatar
0 votes
0 answers
47 views

How to fix a database timeout when deleting a source item through the REST API?

I have Magento 2.4.1 with MariaDB and a catalogue of 370,000 products. I’m trying to delete source items through the REST API. It used to work well in the past, but today I can’t get it to work. Even ...
bfontaine's user avatar
  • 125
0 votes
2 answers
104 views

Magento 2 - Request sample for carts/mine (GET)

I try to call the carts/mine GET route of the Magento 2 REST API, but it does not show a request sample in the documentation. It says "Returns information for the cart for a specified customer.&...
Black's user avatar
  • 2,993
0 votes
1 answer
119 views

How to work with Magento REST API using Integration tokens?

I have tried these steps Use the following steps to generate an access token: Log in to Admin and click System > Extensions > Integrations to display the Integrations page. Click Add New ...
Arsen Ibragimov's user avatar
0 votes
1 answer
10 views

REST on barebones Magento Server - Creating a product doesn't show ANY Price--even the base one

I have a docker instance of magento running. I'm using the latest image. Here's the post request to create a product: curl --request POST \ --url http://localhost/rest/V1/products \ --header '...
Dash2TheDot's user avatar
3 votes
3 answers
601 views

Extension Integration Access Token for Rest API is not working in local

I am using Magento 2.4.4 with xampp in my local.Have created extension integration token and added acl for newly created custom rest api resource. when i was provide access Token in my rest api as ...
Mohamed Abbas's user avatar
0 votes
0 answers
11 views

How to uniquely store guest information to a custom table on API call?

I want store each guest information with unique id, so that when the specific customer from that device get login/signup i update that information from guest and attach a customer id with data. ...
Syed Hassan Zamir's user avatar
4 votes
1 answer
121 views

Magento 2 how to upload file using Rest Api

I want to upload file using REST Api. As per my reserch there are two ways for this. with passing base64 encoded string into form-data with passing file upload parameter into form-data but I am ...
Krupa Popat's user avatar
0 votes
3 answers
133 views

rest/V1/products?searchCriteria[page Size]=10 giving signature error magento 2.4.5

I am calling Magento rest API to load all products of a site. https://store_url/rest/V1/products?searchCriteria[pageSize]=10 It gives the following error - "message": "The signature ...
Md Shariful Islam's user avatar
0 votes
1 answer
84 views

Rest API service

http://dev.eternal/rest/all/schema?services=all, gives all services, but what if I want to grab only customer service? how can I do it? Plus, how to create a service and call just the desired API's? ...
IndexError's user avatar
0 votes
0 answers
29 views

Magento 2 : Assign products to a source Api doesn't works properly

when we use assign products to a source using api then it creating only Qty instead of qty & salable qty. Endpoint :- {{base_url}}/rest/default/V1/inventory/source-items Method :- POST Payload :- {...
Harsh Patel's user avatar
0 votes
2 answers
46 views

How to include a custom attribute in the Customer object when calling through API

I made a custom attribute using this code in the Setup/Patch/Data, everything works just fine except when calling the API to get the customer object, it comes without the new custom attribute included,...
Amjad Alarori's user avatar
0 votes
0 answers
15 views

Is there any way to view the store name and store address using the rest api?

I've tried all the store related endpoints such as storeConfigs, storeViews, and etc but I've yet to find any that give the store information located in the configuration tab on magento.
Syed's user avatar
  • 1
0 votes
0 answers
550 views

Magento 2 Bulk Product Update via API

I'm trying to achieve a bulk update of products via the Magento (2.4.4) API. I've been following a guide here Magento 2 : How to update qty and stock status using API for multiple products? However, ...
Dave Harris's user avatar
1 vote
0 answers
53 views

Decrypt Apple Pay PKPaymentToken using Braintree

I have a mobile app connected to magento via rest api. As payment processor I am using Braintree, default payment extension by Gene Commerce. Credit card, google pay works, problem is with Apple pay, ...
Adrian's user avatar
  • 153
0 votes
1 answer
39 views

Programmatically created integration is not working properly

I read the documentation of creating integration. I get my integration and I have the below permissions in my etc/integration/api.xml <integrations> <integration name="...
Md Shariful Islam's user avatar
0 votes
0 answers
42 views

Resource access issue for an Integration of custom module

I am using Magento 2.4.5  I created an Integration for my custom module. I am successful in generating the oauth_token & oauth_token_secret. But when I want to see an order using API, I get a 401 ...
Md Shariful Islam's user avatar
1 vote
2 answers
76 views

REST API return JSON object using factory and interface

I am trying to create a simple module to return JSON data, if i returned string or array it will return the targeted data, but i can't return JSON object with key value when i return the interface it ...
Mohamad Zbib's user avatar
0 votes
2 answers
375 views

Get product using SKU with respect to the store data using Magento 2 REST API

I use the core API /V1/products/:sku to get the product using the SKU. for example, I have 2 stores, one in English and another in Japanese. My API Endpoint is like http://local.mystore.com/storefront/...
Sathya's user avatar
  • 508
0 votes
2 answers
207 views

Reset Password Api Magento2

How can I reset my password using Magento2 Rest API I used the below API to get password link but it doesnot send reset token to used in password reset api URL: store_url/rest/V1/customers/password ...
Syed Hassan Zamir's user avatar
0 votes
1 answer
88 views

How to use Grahql API with ACL resouce as Rest API?

We have a issue and want to limit permission each roles. Do we have any way to make Graphql can set permission roles as Rest API? EX: Admin token with roles "sales", they only access Graphql ...
the light's user avatar
  • 688
0 votes
1 answer
76 views

REST API data display in admin grid Magento 2.4.4

How does REST API show data in Admin Grid ? Thank You
Ronak Rathod's user avatar
  • 6,083
0 votes
0 answers
39 views

Magento2 - Netsuite intergration - CURL request - throws Invalid login attempt

I try to connect to Netsuite API from Magento2. throws Invalid login attempt from Netsuite. my code is below please help me . public function createPostRequest($type, $params, $page_constant){ try{...
kanishka maduranga's user avatar
0 votes
0 answers
74 views

How to create a link to the Magento 2 checkout page for a cart created programmatically through REST API calls

I'm able to create a cart in Magento 2 programmatically calling rest APIs, being an administrator. I used this feature to allow users of another application to place orders on Magento, using a totally ...
Marco Ottolini's user avatar
1 vote
1 answer
47 views

Magento 2 Overriding or Extending Core Interfaces in custom module without use of extension attribute

I am trying to add a new getter and setter to \Magento\Catalog\Api\DataCategoryTreeInterface
katariya vipul's user avatar
0 votes
1 answer
26 views

How to get get entity_id from order increment_id using REST?

I want to have my entity_id of my order, so I can make a deeplink directly to it, from another application. According to this question: REST API: get order entity_id from order increment_id that ...
Bart Friederichs's user avatar
0 votes
1 answer
195 views

Content-Type HTTP application/x-www-form-urlencoded is return error

When i am using Content-Type: "application/x-www-form-urlencoded" in API i getting the error: { "message": "Server cannot understand Content-Type HTTP header media type ...
Diego Castro's user avatar
0 votes
0 answers
109 views

Magento 2 REST API - default to `all`?

We have a 3rd party integration using the /rest/V1/product/[sku] Magento endpoint, but some updates have not been coming through to the admin (single store) - we tracked down that changing the ...
theJoey's user avatar
0 votes
1 answer
35 views

How to check if a module needs an update using comands/code?

Is there a way to check if a module needs an update using commands or code ? Maybe i can compare the current version to the latest version, but how do i check what the latest version for a module is ? ...
Erabroub's user avatar

1
2 3 4 5
37