Возвраты
Создание возврата
Создает возврат успешного платежа на указанную сумму. Платеж можно вернуть только в течение трех лет с момента его создания: https://yookassa.ru/developers/api#create_payment. Комиссия ЮKassa за проведение платежа не возвращается.
post/refunds
Headers
Idempotence-Keystring required
Request body
Example request
{
"payment_id": "1da5c87d-0984-50e8-a7f3-8de646dd9ec9",
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"receipt": {
"customer": {
"full_name": "Иванов Иван Иванович",
"inn": "6321341814",
"email": "user@yoomoney.ru",
"phone": "79000000000"
},
"items": [
{
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"quantity": 1,
"measure": "piece",
"mark_quantity": {
"numerator": 1,
"denominator": 100
},
"country_of_origin_code": "RU",
"customs_declaration_number": "10714040/140917/0090376",
"excise": "20.00",
"product_code": "00 00 00 01 00 21 FA 41 00 23 05 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 00 AB 00",
"mark_mode": "0",
"payment_subject_industry_details": [
{
"federal_id": "001",
"document_date": "2020-11-18",
"value": "123/43"
}
]
}
],
"receipt_industry_details": [
{
"federal_id": "001",
"document_date": "2020-11-18",
"value": "123/43"
}
],
"receipt_operational_details": {
"created_at": "2020-07-03T11:52:31.827Z"
}
},
"sources": [
{
"account_id": "123",
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"platform_fee_amount": {
"value": "1000.00",
"currency": "RUB"
}
}
],
"deal": {
"refund_settlements": [
{
"type": "payout",
"amount": {
"value": "1000.00",
"currency": "RUB"
}
}
]
},
"refund_method_data": {
"type": "sbp",
"electronic_certificate": {
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"basket_id": "110200010001100000000001"
},
"articles": [
{
"article_number": 1,
"payment_article_number": 1,
"tru_code": "329921120.06001010200080001643",
"quantity": 10
}
]
}
}Response
Запрос успешно обработан
Example response
{
"id": "1ddd77af-0bd7-500d-895b-c475c55fdefc",
"payment_id": "1da5c87d-0984-50e8-a7f3-8de646dd9ec9",
"status": "succeeded",
"cancellation_details": {
"party": "yoo_money",
"reason": "yoo_money_account_closed"
},
"receipt_registration": "succeeded",
"created_at": "2017-11-03T11:52:31.827Z",
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"sources": [
{
"account_id": "123",
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"platform_fee_amount": {
"value": "1000.00",
"currency": "RUB"
}
}
],
"deal": {
"id": "dl-d68d2fe4-2abb-47e5-8112-32e28f87fb52",
"refund_settlements": [
{
"type": "payout",
"amount": {
"value": "1000.00",
"currency": "RUB"
}
}
]
},
"refund_method": {
"type": "sbp",
"sbp_operation_id": "1027088AE4CB48CB81287833347A8777"
},
"refund_authorization_details": {
"rrn": "603668680243"
}
}