Service Ticket Statistics

Last Updated on : 2023-06-15 06:07:04

Count the number of service tickets of each level-2 category in the current community.

API address

GET: /v1.0/iot-02/community/service-order-statistics

Request parameter

Parameter nameTypeINRequiredDescription
block_idStringquerytrueThe ID of the community.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
category_idStringThe ID of the level-2 category.
category_nameStringThe name of the level-2 category.
numIntegerThe number of service tickets under the current category.

Request example

GET: /v1.0/iot-02/community/service-order-statistics
{
  "block_id": "138479997683138xxxx"
}

Return example

[
    {
        "category_name": "Name 1",
        "num": 6,
        "category_id": "141xxxx4086964367441"
    },
    {
        "category_name": "Name 2",
        "num": 6,
        "category_id": "141xxxx4086964367441"
    }
]

Error code

For more information, see error code.