# 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

<mark style="color:blue;">`GET`</mark> `https://unitpay.ru/api?method=offsetAdvance&params[paymentId]=paymentID&params[secretKey]=your_account_secret_key&params[login]=your_email`

#### 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](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MgGOFiXJuPYRQqO6pdl%2F-MgGRNaU_FblxMeQISuy%2Fimage.png?alt=media\&token=a79d2699-6722-4162-93d5-c983902fc083)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.unitpay.ru/en/online-cash-desk/advance-credit-receipts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
