Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
2 answers
2k views

Magento 2 How to Update custom order attribute using REST API

I am using this - extension_attributes.xml <extension_attributes for="Magento\Sales\Api\Data\OrderInterface"> <attribute code="custom_sales_id" type="string&...
sumeet bajaj's user avatar
  • 1,326
6 votes
8 answers
24k views

Consumer is not authorized to access %resources Magento_Sales::sales

I have this basic API script: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); $usr = [ 'username' => 'username', '...
treyBake's user avatar
  • 141
3 votes
0 answers
2k views

magento 2 override Magento\Sales\Model\Order.php get method for REST api

magento 2 override Magento\Sales\Model\Order.php get method for REST api to add some details. i am getting an error in di compile Fatal Error: 'Uncaught TypeError: Argument 1 passed to Custom\\Sales\...
Nagendra Kodi's user avatar
0 votes
2 answers
2k views

Magento 1.9 Order Rest API Order Data

Using magento rest API i can see the data of product, category etc using https://magentohost/api/rest/products, Here is can see list of products but when i access https://magentohost/api/rest/orders ...
Rakhi's user avatar
  • 183
0 votes
0 answers
558 views

How to place order through rest API magento 1

I want to place an order as a guest user through rest API in Magento 1.Can anyone help me on this?
rajat kara's user avatar
  • 1,219
30 votes
5 answers
39k views

How to create order using REST API?

I need to use the Magento REST API to create an order from a mobile client. In my case, the mobile side will implement the payment directly using PayPal SDK. What I need to do is to create an order by ...
TFS's user avatar
  • 4,369
2 votes
0 answers
459 views

Magento 2 Customer Attribute in REST Order API

I have added a new custom attribute for order in sales_order table. It contains a value for the order. I have added extension_attributes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
blakcaps's user avatar
  • 1,965