Receipts for refunds
If you use the Yandex.Checkout solution for 54-FZ, a receipt for payment refund will be generated after a payment is refunded.
If you make a full refund, you won’t need to transfer data for the receipt. If you make a partial refund, specify the information about the returned goods in the
receipt
object when creating the refund.
Example of a request for partial refund with the receipt data
cURL
PHP
Python
curl https://payment.yandex.net/api/v3/refunds \
  -X POST \
  -u <Shop ID>:<Secret Key> \
  -H 'Idempotence-Key: <Idempotence Key>' \
  -H 'Content-Type: application/json' \
  -d '{
        "payment_id": "<Refunded payment's ID>",
        "amount": {
          "value": "600.00",
          "currency": "RUB"
        },
        "receipt": {
          "phone": "79000000000",
          "items": [
            {
              "description": "Product name 1",
              "quantity": "2.00",
              "amount": {
                "value": "250.00",
                "currency": "RUB"
              },
              "vat_code": "2"
            },
            {
              "description": "Product name 2",
              "quantity": "1.00",
              "amount": {
                "value": "100.00",
                "currency": "RUB"
              },
              "vat_code": "2"
            }
          ]
        }
      }'
As soon as the refund is created, Yandex.Checkout will send the receipt registration data to your online sales register.
 See also
RefundsPayment processReference for receipt parameter values