# 查询批处理任务状态

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v3/task/query:
    post:
      summary: 查询批处理任务状态
      deprecated: false
      description: 支持ids批量查询任务执行状态
      tags:
        - API接口/卡业务接口
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appkey:
                  type: string
                  description: >-
                    appkey平台用以确定客户端应用的身份。应用键对应一个密钥 secret。要基于服务平台开发应用，必须事先通过申请获取
                    appkey/secret 后，才能进行应用的开发。
                  x-apifox-mock: '{{APPKEY}}'
                timestamp:
                  type: integer
                  x-apifox-mock: '{{TIMESTAMP}}'
                  description: 当前时间戳，10位数字
                nonce:
                  type: string
                sign:
                  type: string
                  x-apifox-mock: '{{SIGN}}'
                  description: 签名串，请求参数的签名，服务平台通过它验证请求数据的合法性。
                ids:
                  type: string
                  description: 任务ids，用英文逗号隔开,单次最多传100个
              x-apifox-orders:
                - appkey
                - sign
                - timestamp
                - nonce
                - ids
              required:
                - appkey
                - timestamp
                - nonce
                - sign
                - ids
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: 任务id
                        status:
                          type: string
                          description: 任务状态枚举：0 等待，1 执行中，2 执行成功，-1 终止，-2 失败
                        result:
                          type: string
                          description: 执行结果
                      x-apifox-orders:
                        - id
                        - status
                        - result
                      required:
                        - id
                        - status
                        - result
                x-apifox-orders:
                  - code
                  - data
                required:
                  - code
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API接口/卡业务接口
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/2330898/apis/api-435737012-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://oapi.eiotclub.com
    description: 生产环境
security: []

```
