# Individual document statuses

This method allows retrieving documents’ statuses by their unique IDs.

## Query params

- `key` — one or more integer, required

  A documents’ unique ID on the business online.

**REQUEST**

```api
GET api/documents/statuses/{keys}
```

## Response

- `UniqueId` — globally unique identifier

  An unique ID of the document in the external (caller) system (Guid).

- `UniqueKey` — integer

  An unique ID of the document in the business online.

- `Status` — string

  A document status.

- `BulkLineStatus` — string

  Is used during package transfers.

- `RejectCode` — integer

  A rejection code.

- `ResultCode` — integer

  A result code of an operation. [ResultCode](../result/result-codes.md).

- `Match` — decimal number

  For the internal transfers a matched coefficient of provided recipient name. For legal entities a match of an owner of a provided IBAN to the entity name is being checked, while for the individuals - to the name and surname. A match coefficient in percent will be shown as a result of such a comparison.

**JSON**

```json
[
  {
    "UniqueId": "79d46ee2-2150-4fc0-b0b6-d22ea3476551",
    "UniqueKey": 1,
    "Status": "sample string 2",
    "BulkLineStatus": "sample string 3",
    "RejectCode": 1,
    "ResultCode": 1,
    "Match": 1.0
  },
  {
    "UniqueId": "79d46ee2-2150-4fc0-b0b6-d22ea3476551",
    "UniqueKey": 1,
    "Status": "sample string 2",
    "BulkLineStatus": "sample string 3",
    "RejectCode": 1,
    "ResultCode": 1,
    "Match": 1.0
  }
]
```

**xml**

```xml
<ArrayOfDocumentStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CIBApi.Models">
  <DocumentStatus>
    <BulkLineStatus>sample string 3</BulkLineStatus>
    <Match>1</Match>
    <RejectCode>1</RejectCode>
    <ResultCode>1</ResultCode>
    <Status>sample string 2</Status>
    <UniqueId>79d46ee2-2150-4fc0-b0b6-d22ea3476551</UniqueId>
    <UniqueKey>1</UniqueKey>
  </DocumentStatus>
  <DocumentStatus>
    <BulkLineStatus>sample string 3</BulkLineStatus>
    <Match>1</Match>
    <RejectCode>1</RejectCode>
    <ResultCode>1</ResultCode>
    <Status>sample string 2</Status>
    <UniqueId>79d46ee2-2150-4fc0-b0b6-d22ea3476551</UniqueId>
    <UniqueKey>1</UniqueKey>
  </DocumentStatus>
</ArrayOfDocumentStatus>
```
