Vin*_*abu 5 php magento magento2
我正在尝试使用以下网址获取订单列表,
GET METHOD - http://magento.local/index.php/rest/V1/orders?searchCriteria
Header: Authorization: Bearer TOKEN(Customer Token)
Run Code Online (Sandbox Code Playgroud)
但它给出了以下响应,
{
"message": "Consumer is not authorized to access %resources",
"parameters": {
"resources": "Magento_Sales::sales"
}
}
Run Code Online (Sandbox Code Playgroud)
使用客户令牌获取订单列表需要做什么?
小智 1
不幸的是,它尚未在 Magento_Sales::sales 中实现,但您可以扩展自己的 API。请遵循以下问题: https://github.com/magento/magento2/issues/3552