# პაკეტური გადარიცხვის სტატუსი

მეთოდის საშუალებით შესაძლებელია დოკუმენტების პაკეტისა და ყველა დოკუმენტის ცალ-ცალკე სტატუსის გაგება, პაკეტის უნიკალური იდენტიფიკატორის მიხედვით.

## Query პარამეტრები

- `key` — integer, required

  დოკუმენტის უნიკალური იდენტიფიკატორი business online.

**REQUEST**

```api
GET api/documents/bulk/status/{key}
```

## დაბრუნებული პარამეტრები#

- `Status` — string

  დოკუმენტის სტატუსი.

- `DocumentStatuses` — string

  პაკეტურ გადარიცხვაში არსებული დოკუმენტების მასივი, შემდეგი ატრიბუტებით:

  - `UniqueId ` — globally unique identifier

    უნიკალური იდენტიფიკატორი (Guid) გარე სისტემაში.

  - `UniqueKey ` — integer

    დოკუმენტის უნიკალური იდენტიფიკატორი business online-ში.

  - `Status` — string

    დოკუმენტის სტატუსი.

  - `BulkLineStatus` — string

    გამოიყენება პაკეტური გადარიცხვის დროს.

  - `RejectCode` — string

    უარყოფის კოდი.

  - `ResultCode` — integer

    ოპერაციის შედეგის კოდი (ლინკით ResultCode გვერდზე).

  - `Match` — integer

    თანხვედრის % შიდა გადარიცხვის დროს თქვენ მიერ აკრეფილი მიმღები ი/პ-ის შემთხვევაში მოწმდება ბანკში IBAN-ის ანგარიშის მფლობელის დასახელებასთან, ფ/პ-ის შემთხვევაში კი – სახელთან და გვართან. შედარების შედეგად ბრუნდება დამთხვევის პროცენტული მაჩვენებელი.

**JSON**

```json
{
  "Status": "sample string 1",
  "DocumentStatuses": [
    {
      "UniqueId": "54079737-2913-48d5-a0ed-f22895c33116",
      "UniqueKey": 1,
      "Status": "sample string 2",
      "BulkLineStatus": "sample string 3",
      "RejectCode": 1,
      "ResultCode": 1,
      "Match": 1.0
    },
    {
      "UniqueId": "54079737-2913-48d5-a0ed-f22895c33116",
      "UniqueKey": 1,
      "Status": "sample string 2",
      "BulkLineStatus": "sample string 3",
      "RejectCode": 1,
      "ResultCode": 1,
      "Match": 1.0
    }
  ]
}
```

**XML**

```xml
<BulkPaymentStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CIBApi.Models">
  <DocumentStatuses>
    <DocumentStatus>
      <BulkLineStatus>sample string 3</BulkLineStatus>
      <Match>1</Match>
      <RejectCode>1</RejectCode>
      <ResultCode>1</ResultCode>
      <Status>sample string 2</Status>
      <UniqueId>54079737-2913-48d5-a0ed-f22895c33116</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>54079737-2913-48d5-a0ed-f22895c33116</UniqueId>
      <UniqueKey>1</UniqueKey>
    </DocumentStatus>
  </DocumentStatuses>
  <Status>sample string 1</Status>
</BulkPaymentStatus>
```
