2

在 BigC 仪表板上,我可以将两种类型的折扣应用程序配置为 Category Level 折扣:

  1. “仅限此类别的产品”
  2. “此类别及其子类别中的产品”。

示例客户组类别级别

通过 API 检索客户组时,我如何知道它是采用哪种方式配置的?API 返回与客户组有关的非常有限的信息。例如:

[
  {
    "id": 1,
    "name": "Sample Customer Group",
    "is_default": false,
    "category_access": {
      "type": "all"
    },
    "discount_rules": [
      {
        "type": "category",
        "category_id": "20",
        "method": "fixed",
        "amount": "9.0000"
      },
      {
        "type": "category",
        "category_id": "3",
        "method": "percent",
        "amount": "10.0000"
      }
    ]
  }
]

我可以看到它适用的类别和折扣级别,但 API 不会返回折扣是否仅适用于该类别,还是它的子类别。我怎样才能得到这些信息?

4

0 回答 0