{
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "QUEUED",
        "RUNNING",
        "WAITING_EXTERNAL",
        "RETRY_PENDING",
        "SUCCEEDED",
        "FAILED",
        "CANCELLED"
      ]
    },
    "resourceId": {
      "type": "string"
    },
    "correlationId": {
      "type": "string"
    },
    "pollAfterSeconds": {
      "type": "integer",
      "minimum": 1
    },
    "resultReference": {
      "type": "string",
      "description": "URI reference to the completed resource, for example /v1/verifications/ver-test-001. Resolve only against the configured API origin."
    },
    "error": {
      "$ref": "Problem.json"
    }
  },
  "required": [
    "jobId",
    "state",
    "correlationId"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "jobId": "job-transfer-001",
      "state": "SUCCEEDED",
      "resourceId": "trf-test-001",
      "correlationId": "corr-test-001",
      "pollAfterSeconds": 2,
      "resultReference": "/v1/transfers/trf-test-001"
    }
  ]
}
