> For the complete documentation index, see [llms.txt](https://help.unitpay.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.unitpay.ru/en/online-cash-desk/advance-credit-receipts.md).

# Advance credit reciepts

If you received an advance payment (prepayment) and provided the service / sent the goods, then you need to send the second receipt - the advance credit receipt.

{% hint style="info" %}
The system does not validate the correspondence between the data for the prepayment receipt and the data for the prepayment receipt. Be careful.\
\
Please note that the advance payment on reciepts, issued at rates 5/105 (vat5), 7/107 (vat7), 10/110 (vat110), 20/120 (vat120) is offset at the actual rate, i.e. 5% (vat5), 7% (vat7), 10% (vat10) or 20% (vat20), respectively.
{% endhint %}

{% hint style="warning" %}
Affordable only for Unit. Receipts and ATOL
{% endhint %}

To do this, send a request:

## offsetAdvance

```bash
GET https://unitpay.ru/api

method    = getPayment
paymentId = 153091501
secretKey = sk_live_2YQt9m
```

#### Path Parameters

| Name      | Type   | Description                                                                                                                                                                                      |
| --------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| login     | string | Your Unitpay e-mail                                                                                                                                                                              |
| secretKey | string | Partner secretKey                                                                                                                                                                                |
| paymentId | string | <p>ID of the payment for which the advance is credited. <br>The payment must have parameter <em>cashItems</em> with the payment methods “advance“, “advance payment”, “advance payment 100%”</p> |
| cashItems | String | Strongly required if the payment has already been offset by advance payment. If cashItems is not transferred, the advance payment of the entire payment is credited                              |

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

```
```

{% endtab %}
{% endtabs %}

More about cashItems [here](https://help.unitpay.ru/v/master/payments/parameters-for-receipts).

If the product / service was sold in a currency different from RUB, then in order to receive a prepayment receipt, you need to transfer the amount in RUB. In the advance credit receipt, the amount is always in RUB.

Advance credit receipts are also displayed in your personal account in the general statistics of payments:

![Correct advance receipts' display in statistics](/files/-MgGRNaU_FblxMeQISuy)
