Including Data from Indirect Customers in Reports

Important: This is applicable only for reports for the “Provisioned orders” (default) data set.

There are two types of RDE reports:

  • Reseller. This report type is for resellers who do not have their own resellers (subresellers). Such reports include only data from end customers.
  • Provider. This report type is for resellers with their own resellers (subresellers). Such reports include data from a reseller's customers, and sub-resellers with their customers.

    Note: For accounts for which RDE was deployed and used before version 1.3-120, if a reseller has a multi-level hierarchy of subresellers, data of only the first level of subresellers is included in the report.
    For example, the provider generates this report for an L1 reseller, who sells to an L2 reseller, who sells to an L3 reseller. The L3 reseller sells to end customers. In this case, the generated report includes data from the L2 reseller and the end customers, but not from the L3 resellers.

To discover or change the default report type for a specific account, complete the following steps:

  1. Log in to the CloudBlue Commerce control panel and go to Resellers.
  2. Locate the account and copy its ID.
  3. Using a REST client, perform the following request to discover the default report type and obtain the tenant ID for the account:

    GET http://<MN_hostname>:8080/aps/2/resources?implementing(http://www.odin.com/rde/tenant/2.1),eq(account.id,<Account_ID>)

    The response contains the tenant ID, for example:

    {  "reportType": "PROVIDER",
      "aps": {
        "modified": "2019-02-22T08:16:12Z",
        "id": "<tenant_id>",
        "type": "http://www.odin.com/rde/tenant/2.1",
        "status": "aps:ready",
        "revision": 4
      }
    }				
  4. To change the report type for the account, perform the following request, specifying the tenant ID obtained in Step 3 with a report type to change to:

    PUT http://<MN_hostname>:8080/aps/2/resources/<tenant_id>
    {
      "reportType": "RESELLER",
      "aps": {
        "id": "<tenant_id>"
      }
    }

    Where reportType can be either PROVIDER or RESELLER.

Note: This will affect the content of future reports. Reports that were already generated are not affected.