Questions tagged [rest]

Denotes questions related to the REST API on Magento

Filter by
Sorted by
Tagged with
1
vote
2answers
102 views

Magento 1: Where is oauth_admin.php

The rest documentation for Magento 1 make mention of an oauth_admin.php file $callbackUrl = "http://yourhost/oauth_admin.php"; $temporaryCredentialsRequestUrl = "http://yourhost/oauth/initiate?...
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
0answers
21 views

REST call to change store level attribute values remove “Use Default Value” settings on other attributes

I am working on a Magento 2.3 site that has a number of different stores. If I look at the details of a particular product in a particular store in the admin screens, I can see that some of the ...
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
27 views

How do I assign an attribute to a group using the REST api?

I know how to create a configurable product based off an existing attribute from this tutorial on the dev docs, and I know how to create a new attribute from this answer on another question. When I ...
0
votes
2answers
73 views

M2 REST API: Creating shipment with products from MSI source

I am using MSI. When trying to create a shipment with a source code, the shipment uses the "default source" instead of the one I'm providing. My Request: [POST] /rest/default/V1/order/5/ship { "...
1
vote
2answers
67 views

Custom Rest API for custom table not wroking

My webapi.xml is below. <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"&...
1
vote
0answers
16 views

SynchronousRequestProcessor.php(95): call_user_func_array(Array, Array)

I've created Custom Rest API endpoint which works fine on my local Magento instance but I'm getting an exception on the production server "#0 [internal function]: MMA\CustomApi\Model\PayPal\...
1
vote
0answers
15 views

quoteCartRepositoryV1 serach by nested field

I would apply searchCriteria to /V1/carts/search in order to get all carts which contain specific sku. I've performed this query https://shop.dicanio.it/rest/all/V1/carts/search?[filterGroups][0][...
0
votes
0answers
15 views

Magento2.3.3 : Category API returns null attributes for the entire tree

Rest Api : (rest/all/V1/categories) Method get { "id": 1, "parent_id": 0, "name": null, "is_active": null, "position": 0, "level": 0, "product_count": null, "...
1
vote
1answer
66 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
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
1answer
32 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 ...
0
votes
1answer
110 views

Create Product at Magento 2.3.3 Using REST in C#

I'm trying to create simple Product by Rest Api status code is ok Although I can not see the product in Magento2, Here is my code : Token = this.GetAdminToken("admin", "password"); var request = ...
0
votes
0answers
11 views

Magneto 2 Rest API out of stock not working in search Criteria parameter

In searchCriteria Result items are empty while add stock parameter only in stock It get not any result in these param http://www.thepetstore.ae/rest/V1/products?searchCriteria[filterGroups][3][...
0
votes
1answer
132 views

Extension attribute in quote item

Hello everyone i would like to add an extension_attribute to quote item in magento 2. I create extension attribute: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
3
votes
1answer
145 views

Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me. I have ...
0
votes
1answer
112 views

Magento2 : Set Customer Custom Attribute Value Using Rest API

Property "Mobilenumber" does not have accessor method "getMobilenumber" in class "Magento\Customer\Api\Data\CustomerInterface". Whenever i am trying to set customer custom attribute value i am ...
2
votes
1answer
117 views

How to Merge guest quote items to customer quote(if customer log in) by magento 2 rest API

If any one is add products in cart by guest and after that login then how it will merge guest cart to customer login cart items by Rest API. if anyone found this solutions, please help me.
0
votes
0answers
49 views

JSON Serialize DateTime in Web API

A lot of my Web API interfaces use DateTime return types or parameters as follows. interface TestInterface { /** * @param \DateTime $value * @return void */ public function ...
1
vote
1answer
20 views

magento2 rest api ship to name not adding after creating shipment

Ship to name is not adding while creating shipment using Rest Api with below api url: http://127.0.0.1/magento225/rest/V1/shipment/ Body: { "entity":{ "orderId":9, "store_id":1, "items":[...
0
votes
1answer
77 views

How to set Rest API oAuth token expire in minutes or seconds

How to set Rest API oAuth token expire in minutes or seconds in admin. Currently it's showing hours and it will not accept like 0.5(for 30 minute etc) magento2. Any One know about this, please help me ...
0
votes
2answers
85 views

Magento 2 is it possible to get Magento Version via REST API

I want to use different functionality depending on the Magento version. Is it possible to get version via REST API?
2
votes
1answer
68 views

How to get Magento 2 Customizable Options with REST API

I have customizable options in configurable products. How can I get it via REST API?
0
votes
0answers
14 views

Is it possible to somehow return a value parameter in a POST request using Magento2?

I want to return value from magento2 when creating an attribute option, I make such a request with method POST { "option": { "label": "Pavel", "value": "...
0
votes
1answer
28 views

Search products with manufacturer names

I've been using the Search API to fetch the list of products that match a query, but I've seen that manufacturers are not returned as part of the
0
votes
0answers
12 views

Magento 2: Get Raw POST data whenever /shipping-information API is hit

I am using a headless magento 2 for my store, and am having some data consistency problems with shipping addresses. To troubleshoot this, I was thinking about saving the POST body whenever these API ...
1
vote
0answers
22 views

REST API: Setting Item Quantity / Need to Get Current Reserved Quantity of an item

Working on using the Magento 2.3 Rest API to set the Quantity of an item available based on a separate datastore. I realize that the formula for getting the Total Salable quantity is based on the ...
0
votes
0answers
24 views

magento1: REST API POSTMAN get Token and Token Secret. for customer login

I have $consumerKey and $consumerSecret key .but while try to get Token and Token Secret using POSTMAN. it gives me different code instead of a token key. I followed here https://i.stack.imgur.com/...
0
votes
0answers
70 views

Will using async or bulk endpoints actually improve performance of import processes?

We have a multi-store setup with 16 stores and every store has it's own language, we have a lot of store-specific information. Most of our products are configurable products with lots of variants, so ...
1
vote
0answers
42 views

Magento 2 Shipping to Multiple Addresses using REST API

Has anyone tried creating order with multiple shipping addresses using REST API? I can see the option in the admin dashboard to enable such functionality, but I cannot find any documentation if it is ...
3
votes
2answers
225 views

How do I create an events observer that only calls when the REST API dispatches events?

I just want to call an event observer when the event is dispatched via the REST API. Like if an order is placed from a mobile application, only then the sales_order_save_afterObserver should be called....
0
votes
0answers
35 views

POST an image through Magento 2 REST API - Content-Type

I'm trying to upload an image through the Magento 2 REST API with a cURL based tool: rest/V1/products/:sku/media I'm getting the following error back from the Magento sever: "Server cannot understand ...
0
votes
2answers
34 views

how to get rest URL in Magento2

I need to get a link of this kindhttp://localhost/Magento2/rest I have a code by which I get base_url: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $...
0
votes
1answer
85 views

Magento 2.3 call api rest extern

I created a Magento 2.0 module and it calls an external web service with the command \Zend_XmlRpc_Client. /* REST */ $client = new \Zend_XmlRpc_Client($this->_scopeConfig->getValue('akria_store/...
0
votes
0answers
64 views

Magento 2 How to get list of filter for current category using REST API

How to get a list of filters to show on the category page to allow the customer to filter on products using REST API in Magento 2
0
votes
0answers
17 views

Cannot throw critical exception on retrieve REST in Magento 1

I've created a custom module that returns the content from a XML file from media folder. The XML file contains some product data. The problem is that when the call is made the client has to send the ...
0
votes
0answers
145 views

Magento 2: Set product position in category via REST API

I'm trying to set the position of an existing product inside a category via REST API. Currently all products have a position of 0. The endpoint I'm using is POST /V1​/products. The json body: { "...
0
votes
0answers
47 views

How to upload image by REST api (without base64) magento 1.9

I try to upload an image by rest API in Magento 1.9 version but getting "invalid content-type' error. Can any one help me for the same?
4
votes
0answers
103 views

Where's the order item custom options labels in the REST API?

I'm trying to retrieve orders from the REST API in Magento Enterprise 2.3.1, and that's easy enough with endpoints like /rest/default/V1/orders, but while I can see the values for custom options of ...
1
vote
0answers
377 views

Add custom attributes when creating product via REST API

I am attempting to set custom attributes when creating a new product via the REST API. The products have a required attribute hpUuid. This is part of my JSON file to create the new product: { "...
0
votes
0answers
30 views

Product Alert Notification from API in Magento 2

Hi find this useful features in Magento2: https://docs.magento.com/m2/ce/user_guide/catalog/inventory-product-alerts.html But I can't understand how access it from REST API. Is it possible? ...
1
vote
1answer
101 views

Magento 2 API: 3rd Party makes a post request to magento API with x-www-form-encoded data

I am trying to integrate a payment gateway with my headless magento 2 website. So after the payment is processed/failed, the payment website makes a POST request to my API with x-www-form-encoded ...
0
votes
0answers
33 views

Modual to acceess API required?

I am struggling with getting connected to a Magento site's API and getting permission denied. I have manually created an integration using the Admin GUI and activated it with all permissions, I then ...
0
votes
1answer
168 views

Magento 2 failed connecting to Shipworks

Magento 2.3.1 is failing to connect to Shipworks via REST API. The error it is giving is The remote server returned an error: (401) Unauthorized. When traced with Fiddler the result is {"...
0
votes
2answers
279 views

Magento 2.3 Custom Rest Api get size limit

I have made custom API which returns the categories with the products in them like this: array( key: Category name values:product1,product2,...productX ( where product is an array: array(id,price,...
0
votes
1answer
364 views

Magento2 How to get parent product(configurable) by child product using REST API

How to get parent product(Configurable) by child product(Simple) sku or id using REST API? I can't find in this list: https://devdocs.magento.com/swagger/index_22.html plz help me..
0
votes
0answers
14 views

Are magento 2 extensions required to have rest endpoints?

Do the extensions have to have a REST API or not? For example, webkul seems to be selling their rest api for the multivendor plugin apart. Is there a plugin which auto generates rest endpoints for ...
0
votes
0answers
288 views

Magento2 REST API how to create an invoice and keep order state as open or unpaid?

I am able to use Magento2's REST API to programmatically create an invoice. When I create the invoice, the API also seems to change the associated order to state paid by default. However, my workflow ...
1
vote
2answers
130 views

Magento 2 REST API: Custom API with customer_token expecting string[] instead of string

I made an API which returns wishlist of a user using customer_token as authentication, obtained via this API: rest/V1/integration/customer/token My webapi.xml looks something like: <?...

1 2 3 4 5 16