我正在寻找使用Magento2的REST API下订单的完整"快乐路径".到目前为止,这些都是我遵循的所有步骤.我还缺少什么?
创建用户: [POST] /rest/V1/customers
登录(创建令牌): [POST] /rest/V1/integration/customer/token
获取导航产品类别: [GET] /rest/V1/categories
获得产品:
4.1获取类别产品: [GET] /rest/V1/categories/{category_id}/products
4.2或搜索产品: [GET] /rest/V1/products
创建购物车: [POST] /rest/V1/carts/mine
将商品添加到购物车: [POST] /rest/V1/carts/mine/items
获取购物车付款信息 [GET] /rest/V1/carts/mine/payment-information
...
下订单还需要做些什么?
好吧,我终于做对了。
[POST] /rest/V1/carts/mine/payment-information