Refunds
Refunds are unavailable for some of the payment methods
To return a payment, you need to create a refund  by specifying the unique ID of the payment being refunded (
payment_id
) as well as the amount in case you want to make a partial refund in the request for refund creation .
You’re allowed to make an infinite number of partial refunds, as long as:
  • the total amount of all partial refunds does not exceed the payment amount;
  • the amount of the refund is larger than 1 ruble;
  • the remaining amount is larger than 1 ruble.
Example of request for a partial refund
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 '{
        "amount": {
          "value": "2.00",
          "currency": "RUB"
        },
        "payment_id": "21740069-000f-50be-b000-0486ffbf45b0"
      }'
Example of the response body
JSON
  {
    "id": "216749f7-0016-50be-b000-078d43a63ae4",
    "status": "succeeded",
    "amount": {
      "value": "2.00",
      "currency": "RUB"
    },
    "created_at": "2017-10-04T19:27:51.407Z",
    "payment_id": "21740069-000f-50be-b000-0486ffbf45b0",
    "requestor": {
      "type": "merchant",
      "account_id": "100001"
    }
  }
 See also
Reports on refundsPayment processPayment by 54-FZPayment methods