【问题标题】:Magento Customer Store Credit RESTMagento 客户商店信用 REST
【发布时间】:2018-07-18 14:56:57
【问题描述】:

我在通过 API 将客户商店信用应用于订单时遇到问题

/rest/V1/carts/mine/balance/apply

这是来自 M2 Swagger 的端点,但我一直收到此作为响应

{ "message": "Request does not match any route." }

想法?

【问题讨论】:

  • 你有什么解决办法吗?我在申请商店信用时遇到了同样的问题。
  • 不是通过 REST,我必须编写一个自定义下订单,然后通过 $cart->setCustomerCreditAmount($credit_amount);

标签: magento magento2 customer


【解决方案1】:

客户余额(商店信用)操作

rest/V1/carts/mine/balance/apply
  • method - **POST**
  • Authentication - Bearer <customer token>

【讨论】:

    猜你喜欢
    • 2013-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-12
    • 2016-04-29
    相关资源
    最近更新 更多