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

How to render CMS page builder product list or element through Magento 2 CMS REST API

I want to pass CMS Page Builder Product List or element using CMS REST API to WEB & APP. FYI I am using Backend as Magento & Frontend as React. You can check below CMS REST API response, How ...
user avatar
0 votes
0 answers
12 views

Custom tracking link attribute in shipment track is not getting update from the shipment creation rest api magento 2

i have created custom column tracking_link in sales_shipment_track table in magento 2 i want to update tracking link to the track details which i am pushing through create shipment of an order with ...
user avatar
0 votes
0 answers
10 views

GET Products API call with paging takes increasingly longer with each page number

On behalf of an integration with a client using Magento 2, we are fetching products from their Magento system using the /v1/products GET REST API call for version 2.4.4. They have a large number of ...
user avatar
  • 101
0 votes
0 answers
11 views

Magento2 Logout Customer using rest API

I am using magento2 core api for logout customer using id but it is not working
user avatar
0 votes
1 answer
15 views

Magento 2 How to Upload Image For Category Using Rest API?

I want to upload a Webp image for category using Rest API. i did the same thing for product with reference of product image upload API (that support image with jpg or png extension) that's provided by ...
user avatar
0 votes
1 answer
17 views

How to Get all Order using GraphQL in Magento 2?

I want to get all Pending order Status Orders using GraphQL, Anyone can share a complete example or module. How to I'll do that ? I have create Custom module Admin Grid, Now i want to display Only ...
user avatar
0 votes
2 answers
27 views

Magento2 Customer Forget Password API

I am using the magento2 core password reset api in postman but it returns false I don't know what's the reason the customer with provided email is registered. I have also installed the SMTP extension
user avatar
0 votes
0 answers
8 views

Magento 2: Admin user getting 403 forbidden error from API requests

In my Magento 2 application I am simply trying to make a POST request to the /rest/V1/integration/admin/token enpoint to get an admin token for subsequent requests. My user is an admin user in the ...
user avatar
  • 1
0 votes
0 answers
28 views

Unrecognized REST API order created

We have noticed a new order created in the admin which has come from the REST API. (Order was automatically cancelled) We have nothing running that creates orders in this way and the IP country and ...
user avatar
  • 474
1 vote
1 answer
32 views

Pass Bearer Token from Postman and fetch customer data in Magento 2 model

I need to find the customer data in custom rest api model I think magento very the customer token from the header as bearer token so i need to get from the customer token.
user avatar
0 votes
1 answer
25 views

Magento 2.3 Disallow Post to /V1/Customers

I am battling spam accounts being generated via Magento's REST API for customers. Someone keeps hitting my site with Postman and dumping in hundreds of fake accounts. I have set Allow Anonymous Guest ...
user avatar
0 votes
1 answer
16 views

URL Path incorrect with Magento Rest API

I am using Python to access Magento 2 Rest API categories. The url that I am using is this: https:///rest/<store_code>/V1/categories/15647 The URL Path that is being returned is this: footwear/...
user avatar
1 vote
0 answers
18 views

How to make a REST call to Magento 2?

I am trying to get going with Magento 2's REST API interface, and I did the following: I made a new "Integration", which gave me the Consumer Key and Secret and the Access Token and Secret. ...
user avatar
0 votes
1 answer
7 views

After POSTing a product those go out of stock, but never back in stock

Can anyone explain why exactly a configurable product for which every virtual product's quantity goes down to zero, and said product subsequently disappears from the store, won't come back even if the ...
user avatar
0 votes
0 answers
11 views

Magento 2: Product's Layered Navigation Filter DIsplay Type API

I am working on Rest API. I want a product filter type (checkbox, multiple selections,yes/no) so that mobile filters can be shown based on that. For example on website filters showing like this : How ...
user avatar
  • 1,130
0 votes
0 answers
18 views

Override OptionId with Label text

I'm trying to have an api where the customisable option id is the text from the label instead of a number. So instead of option_id: 1 and label: colour, option_id: 2 and label: height, option_id: 3 ...
user avatar
0 votes
1 answer
11 views

Mageno2.4 How to customize an HTTP POST request interface

I have an order management system. I want to notify Magento2 of the status of my order management system. I want to call Magento2 custom interface, but I do not know how to create Magento2.4 interface ...
user avatar
  • 51
0 votes
0 answers
18 views

Magento v2 Rest Api for React Native

I have got the API for the login, How do I have to use the API in React Native to log in?
user avatar
  • 661
0 votes
0 answers
35 views

Magento 2 Get product (rest/V1/products) with filter Different result with Web (PLP)

I have configurable products that have variants with COLOR (RED/BLUE). In Web at PLP page when filtering with COLOR Red (value:13) But when using API rest/V1/products, the response does not same as ...
user avatar
  • 161
0 votes
0 answers
8 views

How to add product image in the payload array of bulk product api via rabbitmq

I have been importing the products via rest API using RabbitMQ POST /magentoroot/rest/default/async/bulk/V1/products HTTP/1.1 Host: 127.0.0.1 Content-Type: application/json [ { "product&...
user avatar
  • 2,398
1 vote
0 answers
24 views

Magento 2 : Coupon code couldn't be applied. Too many coupon code requests

Magento 2: coupon code couldn't be applied. Too many coupon code requests, please try again later Sales rule API : Request: http://localhost/demonew/rest/V1/salesRules/1 Body: > { "rule": { > "...
user avatar
  • 539
0 votes
1 answer
67 views

How i can pass js variable to php file?

i need to pass a variable from file.js to my model.php with rest API in particular get method
user avatar
  • 3
0 votes
0 answers
21 views

Add custom data to SalesRule API

I tried to add custom data to SalesRule through the endpoint V1/salesRules but ended up with getting error My code is below 1- etc/extension_attributes.xml <?xml version="1.0"?> <...
user avatar
  • 121
0 votes
1 answer
16 views

Get list of orders with increment_id

I can use the Magento API (https://magento.redoc.ly/2.4.4-admin/tag/ordersid) to get a list of orders using the following endpoint: "rest/V1/orders/items". However, this endpoint does not ...
user avatar
2 votes
2 answers
41 views

How To Get Magento 2 Rest Api List

I Want to a list off all magento 2 default rest api list. it would be batter if i got all the custome rest api list as well. thanks.
user avatar
0 votes
1 answer
39 views

Magento2 : How to set JSON response from custom rest API

I'm building a custom rest API endpoint. This is code which I have written in my custom model class. return [ ['success' => false, 'status-title' => 'Refund Failed',] ]; Following ...
user avatar
0 votes
0 answers
14 views

Store Website specific, access to Rest API user - Restrict API user for specific Website/Store

Basically, we have multiwebsite in our magento 2 & would like to setup in a way that a rest api user should have access to store/website specific data such as order, products, etc ie. Under ...
user avatar
0 votes
1 answer
19 views

Magento 2 - Where is the Rest API code located?

We call the Rest API with "/rest/V1/carts/mine". Where is the code located in magento?
user avatar
  • 2,441
0 votes
3 answers
212 views

The consumer isn't authorized to access %resources

I have installed magento2.4.4 and php8.1 and when trying to access rest api using bearer token it is giving error for all the routes. { "message": "The consumer isn't authorized to ...
user avatar
  • 44
0 votes
0 answers
22 views

Set payment method with admin access token with rest api

I want to set the payment method on behalf of the customer, with the admin access token. I don't have the customer access token but I have the customerId I used this API call: carts/{cartId}/payment-...
user avatar
0 votes
1 answer
42 views

Consumer not authorized to access self

I am following a Magento tutorial and I get stuck at this step https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-quote.html So I managed to create user, but I cannot make a ...
user avatar
0 votes
1 answer
29 views

Get Customers using Postman Magento ver. 1.9.4.2

I have Magento ver. 1.9.4.2, When I try to retrieve customers using Postman, it does not show anything. I am using this end point https://myhost/rest/V1/customers What could be the problem? I tried ...
user avatar
0 votes
0 answers
12 views

Error 500 when creating a user via API

I get a 500 error when creating a user via API using Vue Storefront. Login and everything else like placing an order works well. What can be the problem? Thanks in advance! It is a multistore setup. ...
user avatar
0 votes
1 answer
49 views

Why Magento2 Rest API Deletes Empty/Empty Records in EAV Table for Product. Via MultiStore / Custom Attribute

I update some features of my products from time to time via the REST API. All property values change periodically for each of my stores and sometimes we turn it into a completely blank record. For ...
user avatar
2 votes
0 answers
20 views

Magento 2, How to get and set of custom_attributes value for Rest API

API: /rest/V1/products?fields=items,total_count,search_criteria[page_size,current_page]&searchCriteria[filterGroups][0][filters][0][field]=category_id&searchCriteria[filterGroups][0][filters][...
user avatar
  • 1,366
0 votes
0 answers
43 views

How to return json object instead of array

I'm trying to return a JSON object from one of my REST Models, something like this: Current response getting in api : [ { "door": { "label": "Style", &...
user avatar
  • 1,039
0 votes
0 answers
17 views

How to add product collection to category tree

I have created a category tree using the below code. <?php namespace Custom\CustomApi\Model\Category; class Tree { /** * @var \Magento\Catalog\Model\ResourceModel\Category\Tree */ ...
user avatar
  • 828
0 votes
0 answers
35 views

Magento2 Rest API Endpoint cmsPage rest/all/V1/cmsPage custom_layout_update property

we are running a Magento 2.4.3 Store and want to roll out a fresh Magento 2 instance with just one click. For this purpose, we have a set of static cms-pages that we want to deploy every time. We are ...
user avatar
0 votes
1 answer
97 views

how to create custom rest api for getting the list of all products with specific columns in magneto 2

Create a custom Rest API product based which just includes the following. • Product Name • Product URL • Product image (media URL) • Product Price • Product SKU • Product Qty • Product Stock Status ...
user avatar
  • 3
0 votes
1 answer
70 views

Get order by date and status filters in magento 2 with rest api

Get Orders details using rest API with filters status and date range in magneto 2.4
user avatar
  • 1,059
0 votes
0 answers
99 views

Magento 2: How To Create Product Progamatically Using Custom Rest API

I need to create a product using a custom Rest API. (this is my first time working on API). So to check API whether it's working or not I wrote the code below, API is working, now I need to give ...
user avatar
0 votes
0 answers
23 views

M2 Rest API, product attributes options

I'm having trouble creating options for a custom attribute. Using this API, I get an exception? POST /rest/default/V1/products/attributes/color/options { "option": [ { ...
user avatar
  • 11
1 vote
1 answer
38 views

rest api get / add products to wishlist

REST API for wishlist is it implemented into magento core or do I have to use extensions to see and add items? Can't find nothing about this in their documentation and no tutorials I was trying with ...
user avatar
  • 143
0 votes
1 answer
37 views

Magento Custom API Product Attribute Not Saving

I have created a custom API to update 4 attributes of the product out of which only 2 are updating not others. I have already created attributes and assigned them to a product and working properly ...
user avatar
  • 121
0 votes
0 answers
27 views

Magento API Add product with attribute using Text Value not Numeric

By default, Magento allows calling default API to add products with custom attribute values having drop-down types also. For text type attributes we send data like { "attribute_code": &...
user avatar
  • 121
0 votes
0 answers
52 views

Magento 2 REST API Add validation for data interface payload

I have created a custom REST API to save data into my table. My table contains many fields so I am using the DataInterface structure for payload. Now I need to add a validation like as below { "...
user avatar
0 votes
0 answers
56 views

how to add swatch attribute options through api

How can I add swatch attributes options thorugh rest api? I want api which allows to add attribute options for all attributes which are text swatch,visual swatch.
user avatar
0 votes
0 answers
48 views

How to create Magento admin user by API?

From my understanding I can create my own integration by System->extension->integration. How do I setup the webservice and let third party to connect my Magento to create system user with user-...
user avatar
  • 518
0 votes
1 answer
65 views

How do I get orders using store code/store id using Magento rest api

I am trying fetch orders using store_id but I am not getting response from Magento rest API which I am using. So far, I have tried follwowing URL patterns to check the response but none of them worked....
user avatar
0 votes
0 answers
14 views

Internal Server Error while create a customer via API magento 2

Аfter research I found error line. Its module \Magento\Customer\Model\AccountManagement, funciton createAccountWithPasswordHash(), line 883: $storeId = $this->storeManager->getStore()->getId()...
user avatar

1
2 3 4 5
21