代码之家  ›  专栏  ›  技术社区  ›  Omar

BigCommerce购物车API:每行获取选项\项目

  •  0
  • Omar  · 技术社区  · 7 年前

    我正在尝试将购物车选项包括在行项目响应中

    我的尝试(点头)

    返回bc_acc.get(`/carts/$cartid?include=options`,include:'options'.).then(data=>...

    回答很好,但我希望看到每个行项目的选项。但它不在那里。 api docs show it in the response.

    回答

    .

    回答很好,但我希望看到每个行项目的选项。但它不在那里。这个 API Docs show it in the response. enter image description here

    回答

    1 回复  |  直到 7 年前
        1
  •  1
  •   Raj    7 年前

    /carts/${cartId}?include=line_items.physical_items.options