# Payment information

To get information about the payment, run GET query:

```
https://unitpay.ru/api?
    method=getPayment
    params[paymentId]=153091501
    params[secretKey]=x6bh0qbewehfppogkz6lufartkzyv7o0
```

<table data-header-hidden><thead><tr><th width="158.22224934895831">nname</th><th width="134">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>paymentId</strong></td><td>number</td><td>Payment ID in the UnitPay system.</td></tr><tr><td><strong>secretKey</strong></td><td>line</td><td>Project secret key</td></tr></tbody></table>

You can run the query in test mode. [Learn more](https://help.unitpay.ru/en/book-of-reference/test-api)

**Successful response**

{% tabs %}
{% tab title="200" %}

```
{
   "result": {
      "paymentId": 153091501,
      "status": "success",
      "paymentType": "card",
      "date": "2020-02-16 09:22:22",
      "purse": "1234566xxxxxx0236",
      "account": "demo",
      "profit": "9.80",
      "projectId": 135,
      "orderSum": "10.00",
      "orderCurrency": "RUB",
      "payerSum": "10.00",
      "payerCurrency": "RUB",
      "availableForRefund": "10.00",
      "isPreauth": 0,
      "refunds": [],
      "receiptUrl": "https://consumer.1-ofd.ru/v1?fn=9282000100367629&fp=2120704629&i=101164&t=20200216T092200&s=26&n=1"
   }
}
```

{% endtab %}
{% endtabs %}

<table data-header-hidden><thead><tr><th width="143.77779134114581">name</th><th width="154.2222900390625">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>status</strong></td><td>line</td><td><p><code>success</code> — successful payment; </p><p><code>wait</code> — payment is pending; </p><p><code>error</code> — payment error;  </p><p><code>error_pay</code> — error/failure of the store at the PAY stage,</p><p>in statistics, it is displayed as "incomplete";   </p><p><code>error_check</code> — error/failure of the store at the CHECK stage, in statistics it is displayed as "rejected";   </p><p><code>refund</code> — refund to the buyer;   </p><p><code>secure</code> — being verified by the Bank's security service.</p></td></tr><tr><td><strong>paymentId</strong></td><td>number</td><td>Payment ID in the UnitPay system</td></tr><tr><td><strong>projectId</strong></td><td>number</td><td>Project ID in the UnitPay system</td></tr><tr><td><strong>account</strong></td><td>line</td><td>Client (order) ID in the partner's system</td></tr><tr><td><strong>purse</strong></td><td>line</td><td>Purse (account number) from which the payment was made</td></tr><tr><td><strong>profit</strong></td><td>number</td><td>Your income from this payment, rubles</td></tr><tr><td><strong>paymentType</strong></td><td>line</td><td><a href="../book-of-reference/payment-system-codes">Payment system code</a></td></tr><tr><td><strong>orderSum</strong></td><td>number</td><td>Order amount. Make sure to check this value against the original order amount</td></tr><tr><td><strong>orderCurrency</strong></td><td>line</td><td>Order currency (RUB, UAH, BYN, EUR, USD). Make sure to check this value with the original order currency</td></tr><tr><td><strong>date</strong></td><td>line</td><td>Payment date in the YYYY-mm-dd HH:ii:ss format (for example, 2022-10-01 12:32:00)</td></tr><tr><td><strong>payerSum</strong></td><td>number</td><td>Amount debited from the subscriber's account</td></tr><tr><td><strong>payerCurrency</strong></td><td>line</td><td>Currency of debiting from the subscriber's account according to ISO 4217 standard (RUB, UAH, BYN, EUR, USD)</td></tr><tr><td><strong>errorMessage</strong></td><td>line</td><td>Error details (only for the error status)</td></tr></tbody></table>

**Error response**

```
{
    "error": {
        "message": "Неверный ключ secretKey",
        "code": -32000
    }
}
```

<table data-header-hidden><thead><tr><th width="150.44441731770831">name</th><th width="144.666748046875">Value</th><th>Description</th></tr></thead><tbody><tr><td><strong>message</strong></td><td>line</td><td>Information with a description of the request error.</td></tr></tbody></table>
