我想使用“创建报价”的Magento API

问题描述

我读了https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-quote.html。 然后我尝试了POSTMAN。

POST http://<host>/rest/default/V1/carts/mine

HEADERS Content-Type: application/json

HEADERS Authorization: Basic <BASIC TOKEN>,Bearer <customer token>

身体为空。

我已发送并收到错误消息。

{
    "message": "The consumer isn't authorized to access %resources.","parameters": {
        "resources": "self"
    },"trace": "……"
}

我有一个“客户令牌”,所以“基本令牌”是正确的。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)