# Retrieve a person's result

`GET https://api.fiscalisto.com/v1/review_cycles/{id}/results/{employee}`

Their score by competencia and by type of rater, and the comments. Coworkers and people under them are averaged together and never named; with fewer answers than rules.anonymous_min they don't count and aren't shown.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | The object's id. |
| `employee` | path | yes | The person (emp_…). |

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const reviewResult = await fiscalisto.reviewCycles.result("id", "{employee}");
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

review_result = fiscalisto.review_cycles.result("id", "{employee}")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$reviewResult = $fiscalisto->reviewCycles->result('id', '{employee}');
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var reviewResult = await fiscalisto.ReviewCycles.ResultAsync("id", "{employee}");
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	reviewResult, err := client.ReviewCycles.Result(ctx, "id", "{employee}")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *reviewResult)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var reviewResult = fiscalisto.reviewCycles().result("id", "{employee}");
System.out.println(reviewResult);
```

## Response 200

OK.

A `ReviewResult` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"review_result"` | yes | What kind of object it is («invoice», «customer»…). |
| `cycle` | string | yes | The cycle (rvc_…). |
| `employee` | string | yes | The employee (emp_…). |
| `name` | string | yes | Name. |
| `final` | number or null | yes | The result: competencies and objectives with the objectives' weight. |
| `competencies_score` | number or null | yes | The average of each type of reviewer that counts, with its weight. |
| `objectives_score` | number or null | yes | What the boss scored on each objective, with its weight. |
| `relations` | array of object | yes | Each type of rater. |
| `relations[].relation` | string | yes | self (self-review), manager (their boss), peer (coworkers) or report (people under them). |
| `relations[].answers` | integer | yes | How many rated them this way. (from -9007199254740991 to 9007199254740991) |
| `relations[].score` | number or null | yes | Their average. |
| `relations[].hidden` | boolean | yes | Fewer answers than anonymous_min: it doesn't count and isn't shown. |
| `competencies` | array of object | yes | The score of each competencia. |
| `competencies[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `competencies[].name` | string | yes | Name. |
| `competencies[].score` | number or null | yes | Its score, with each type of reviewer's weight. |
| `competencies[].by_relation` | object | yes | What each type of rater that counts gave. |
| `comments` | array of object | yes | The comments. |
| `comments[].relation` | string | yes | self (self-review), manager (their boss), peer (coworkers) or report (people under them). |
| `comments[].text` | string | yes | Text of the legend (textoLeyenda). |
| `comments[].name` | string or null | yes | Only for the self-review and the boss; coworkers and people under them go unnamed. |

```json
{
  "object": "review_result",
  "cycle": "rvc_OufpKqnrvx9p6PoIuYtReWqAsDfGhJkL",
  "employee": "emp_OufpKqnrvx9p1aZ8hR4mKtWq2YbNcVxLpe",
  "name": "GÓMEZ RUIZ ANA",
  "final": 4.2,
  "competencies_score": 4.5,
  "objectives_score": 4,
  "relations": [
    {
      "relation": "self",
      "answers": 1,
      "score": 4,
      "hidden": false
    },
    {
      "relation": "manager",
      "answers": 1,
      "score": 4.6,
      "hidden": false
    }
  ],
  "competencies": [
    {
      "id": "resultados",
      "name": "Orientación a resultados",
      "score": 4.5,
      "by_relation": {
        "self": 4,
        "manager": 5
      }
    }
  ],
  "comments": [
    {
      "relation": "manager",
      "text": "Buen año en ventas.",
      "name": "LÓPEZ PÉREZ JUAN"
    }
  ]
}
```

## Errors

- `feature_not_in_plan` (403): Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
- `resource_missing` (404): There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
