---
title: "Transaction result"
description: "When all tasks are completed by the end user you get the result ID from the notification or as query parameter in the return URL. Use this result ID in combination with the transaction ID to retrieve the transaction results. It is recommended to use the mrz source if available for a given field, as this will contain the most accurate value."
canonical: "https://docs.cm.com/verification/id-scan/transaction-result"
---

# Transaction result

> When all tasks are completed by the end user you get the result ID from the notification or as query parameter in the return URL. Use this result ID in combination with the transaction ID to retrieve the transaction results. It is recommended to use the mrz source if available for a given field, as this will contain the most accurate value.

Source: https://docs.cm.com/verification/id-scan/transaction-result

When all tasks are completed by the end user you get the result ID from the notification or as query parameter in the return URL. Use this result ID in combination with the transaction ID to retrieve the transaction results. It is recommended to use the `mrz` source if available for a given field, as this will contain the most accurate value.

```text title="Request headers"
Authorization: Bearer GENERATED_TOKEN_HERE
```

```text title="Request"
GET https://api.cm.com/id-scan/v1/transactions/{transactionId}/results/{resultId}?includeRawImages=true
```

**URL parameters**

| Property | Type | Description |
| - | - | - |
| transactionId | string | A unique identifier for the transaction. |
| resultId | string | This result ID can be obtained from the resultId parameter in the iframe event or query parameter "resultid" in the return url after the user completes the transaction. |

**Query parameters**

| Property | Type | Description |
| - | - | - |
| includeRawImages | boolean | Include the raw image(s) in the response. The default is false. |

```json title="Response body"
{
    "id": "c3b92333-3935-4c15-a95e-8eb0051e644b",
    "state": "completed",
    "tasks": [
        {
            "type": "document_scan",
            "state": "completed",
            "score": 0.86,
            "result": [
                {
                    "field": "document_number",
                    "validity": "invalid",
                    "comparison": "match",
                    "locale": null,
                    "values": [
                        {
                            "source": "mrz",
                            "value": "SPECI2021"
                        },
                        {
                            "source": "visual",
                            "value": "SPECI2021"
                        }
                    ]
                },
                {
                    "field": "given_names",
                    "validity": "not_checked",
                    "comparison": "match",
                    "locale": null,
                    "values": [
                        {
                            "source": "mrz",
                            "value": "WILLEKE LISELOTTE"
                        },
                        {
                            "source": "visual",
                            "value": "WILLEKE LISELOTTE"
                        }
                    ]
                },
                {
                    "field": "given_names",
                    "validity": "not_checked",
                    "comparison": "not_performed",
                    "locale": "nl-NL",
                    "values": [
                        {
                            "source": "visual",
                            "value": "Willeke Liselotte"
                        }
                    ]
                },
                {
                    "field": "nationality",
                    "validity": "valid",
                    "comparison": "not_performed",
                    "locale": null,
                    "values": [
                        {
                            "source": "mrz",
                            "value": "Netherlands"
                        }
                    ]
                },
                {
                    "field": "nationality",
                    "validity": "valid",
                    "comparison": "not_performed",
                    "locale": "nl-NL",
                    "values": [
                        {
                            "source": "visual",
                            "value": "Nederlandse"
                        }
                    ]
                },
                {
                    "field": "personal_number",
                    "validity": "invalid",
                    "comparison": "match",
                    "locale": null,
                    "values": [
                        {
                            "source": "barcode",
                            "value": "999999990"
                        },
                        {
                            "source": "visual",
                            "value": "999999990"
                        }
                    ]
                }
                // other fields omitted for readability
            ],
            "files": [
                {
                    "category": "document",
                    "type": "raw_document_image",
                    "url": "https://api.cm.com/id-scan/v1/downloads/OWEwUH7weiogj83bfi..."
                },
                {
                    "category": "document",
                    "type": "raw_document_image",
                    "url": "https://api.cm.com/id-scan/v1/downloads/REHE0wejfw786we690..."
                },
                {
                    "category": "document",
                    "type": "DRIVING_LICENSE",
                    "name": "Netherlands - Driving License (2022)",
                    "score": 0.85,
                    "url": "https://api.cm.com/id-scan/v1/downloads/pz6vLGjX9OOOsiQxEY..."
                },
                {
                    "category": "document",
                    "type": "DRIVING_LICENSE",
                    "name": "Netherlands - Driving License (2022) Side B",
                    "score": 0.87,
                    "url": "https://api.cm.com/id-scan/v1/downloads/55mrqZQhtp1wa3a1uC..."
                },
                {
                    "category": "image",
                    "type": "portrait",
                    "url": "https://api.cm.com/id-scan/v1/downloads/YNBQ0V4nofRehT8e2Y..."
                }
            ]
        },
        {
            "type": "face_liveness",
            "state": "completed",
            "files": [
                {
                    "category": "image",
                    "url": "https://api.cm.com/id-scan/v1/downloads/fFHTgWZSPIXuCk16N8..."
                },
                {
                    "category": "video",
                    "url": "https://api.cm.com/id-scan/v1/downloads/EjP2T0EmIjQVm5daL5..."
                }
            ]
        },
        {
            "type": "face_match",
            "state": "completed",
            "score": 0.877
        }
    ]
}
```

:::note
This example only shows a small section of field types in results. For a full list of all fields see the [API reference](https://docs.cm.com/verification/id-scan/v1/api-reference).
:::

## Authenticity scores

The scores returned in the result are values between 0 and 1, indicating the system's confidence level. It is also possible for a score to be -1, indicating that the system was unable to determine a result. Each score can be grouped into three ranges. Note that these ranges are only a recommendation.

| Range | Result | Description |
| - | - | - |
| 0.00 - 0.39 | Fake | The score shows strong signs of forgery, manipulation, or mismatch, and is very unlikely to be valid. |
| 0.40 - 0.89 | Doubtful | The score has some inconsistencies or unclear signals. It may be valid, but manual review is recommended before accepting it. |
| 0.90 - 1.00 | Authentic | The score shows no significant signs of tampering or mismatch, and is highly likely to be valid. |

## Download document image and video

The URL in the `files` section for the `document_scan` task contains the URLs of the document images. The `files` section for the `face_liveness` task contains one URL to download the image and another URL to download the video.

```text title="Request headers"
Authorization: Bearer GENERATED_TOKEN_HERE
```

```text title="Request"
GET https://api.cm.com/id-scan/v1/downloads/pz6vLGjX9OOOsiQxEY...
```

**Response**

Binary file

## Retrieve audit report

Once the transaction is completed, you can retrieve an audit report.

This audit report is available to be retrieved by using the transaction ID of the completed transaction as well as the result ID from the notification or return URL query parameter.

There are two types of audit reports: simple and extended.

```text title="Request headers"
Authorization: Bearer GENERATED_TOKEN_HERE
```

**Response**

PDF file

### Simple audit report

The simple report is created when the transaction is completed. This report is always retrievable.

It contains no documents and is not sealed.

```text title="Request"
GET https://api.cm.com/id-scan/v1/transactions/{transactionId}/report/{resultId}
```

### Extended audit report

The extended report is available to be created on request, only within the validity period of the transaction.

:::note
After the transaction expires, the extended report **cannot** be retrieved any more.
:::

It contains all the scanned documents from the transaction and will be digitally sealed. Specify the `type=extended` query parameter to request this report.

```text title="Request"
GET https://api.cm.com/id-scan/v1/transactions/{transactionId}/report/{resultId}?type=extended
```
