# Information about Payout

You can use this request to clarify information about a specific payment.

```
https://unitpay.ru/api?
     method=massPaymentStatus
     params[login]=partner@gmail.com
     params[transactionId]=1782
     params[secretKey]=ключ
```

<table data-header-hidden><thead><tr><th width="151.6666259765625">name</th><th width="157.11104329427081">type</th><th>description</th></tr></thead><tbody><tr><td><strong>login</strong></td><td>string</td><td>Email account in the UnitPay system</td></tr><tr><td><strong>secretKey</strong></td><td>string</td><td>Account secret key, available in <a href="https://unitpay.ru/partner/profile/edit">profile settings</a></td></tr><tr><td><strong>transactionId</strong></td><td>text</td><td>Unique payout ID on your side</td></tr></tbody></table>

#### Successful Response:

```
{"result": {
    "message": "The payout has been successfully made",
    "status": "success",
    "payoutId": "114233",
    "partnerBalance": "15733.00",
    "createDate": "2016-10-01 11:51:02",
    "completeDate": "2016-10-01 11:52:02",
    "sum": "300",
    "payoutCommission": "6.00",
    "partnerCommission": "0.00"
}}
```

<table data-header-hidden><thead><tr><th width="187.55556233723956">name</th><th width="127.111083984375">type</th><th>description</th></tr></thead><tbody><tr><td><strong>message</strong></td><td>string</td><td>Commentary of successful and unsuccessful operation, can be used as a hint to the user after the query has been executed</td></tr><tr><td><strong>status</strong></td><td>string</td><td><p>success - successful payment </p><p>not_completed - payment has been sent to the payment system, but no confirmation has been received yet (temporary status) </p><p>error - erroneous payment</p></td></tr><tr><td><strong>payoutId</strong></td><td>number</td><td>Unique payment ID in UnitPay system</td></tr><tr><td><strong>partnerBalance</strong></td><td>number</td><td>Partner's balance in the system available for payments</td></tr><tr><td><strong>createDate</strong></td><td>text</td><td>Date of creation of the disbursement</td></tr><tr><td><strong>completeDate</strong></td><td>text</td><td>Date of finalization of payout</td></tr><tr><td><strong>sum</strong></td><td>number</td><td>Payout amount</td></tr><tr><td><strong>payoutCommission</strong></td><td>number</td><td>Payout commission</td></tr><tr><td><strong>partnerCommission</strong></td><td>number</td><td>Partner commission</td></tr></tbody></table>

#### Example of an incorrect answer:

```
{"error": {
    "message": "Payment in the specified currency to the specified details is not possible",
    "code": 122
}}
```

<table data-header-hidden><thead><tr><th width="164.88887532552081">name</th><th width="137.666748046875">type</th><th>description</th></tr></thead><tbody><tr><td><strong>message</strong></td><td>string</td><td>Information describing the request error</td></tr><tr><td><strong>code</strong></td><td>string</td><td>Error code, detailed decoding in the table below</td></tr></tbody></table>

#### Error Description:

<table data-header-hidden><thead><tr><th width="171.77777099609375">name</th><th>description</th></tr></thead><tbody><tr><td><strong>100</strong></td><td>The "masspayment" service is deactivated</td></tr><tr><td><strong>101</strong></td><td>The "masspayment" service is not available to you</td></tr><tr><td><strong>122</strong></td><td>Payment in the specified currency to the specified details is not possible</td></tr><tr><td><strong>1051</strong></td><td>We were unable to retrieve the recipient's wallet information. Check the wallet number and try the operation again or after a while.</td></tr></tbody></table>

#### Technical errors:

<table data-header-hidden><thead><tr><th width="199.5555419921875">name</th><th>description</th></tr></thead><tbody><tr><td><strong>-32000</strong></td><td>Invalid authorisation parameters (login, secret key)</td></tr><tr><td><strong>-32602</strong></td><td>Invalid query parameters</td></tr><tr><td><strong>-32603</strong></td><td>Internal technical error</td></tr></tbody></table>
