Чеки
Создание чека
Используйте этот запрос при оплате с соблюдением требований 54-ФЗ: https://yookassa.ru/developers/payment-acceptance/receipts/54fz/basics, чтобы создать чек зачета предоплаты. Если вы работаете по сценарию Сначала платеж, потом чек: https://yookassa.ru/developers/payment-acceptance/receipts/54fz/other-services/basics#receipt-after-payment, в запросе также нужно передавать данные для формирования чека прихода и чека возврата прихода.
post/receipts
Headers
Idempotence-Keystring required
Request body
Example request
{
"payment_id": "1da5c87d-0984-50e8-a7f3-8de646dd9ec9",
"refund_id": "1ddd77af-0bd7-500d-895b-c475c55fdefc",
"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"
}
],
"additional_payment_subject_props": "mdlp2/12&",
"supplier": {
"phone": "79000000000",
"inn": "6321341814"
}
}
],
"additional_user_props": {
"name": "mdlp3108805",
"value": "ps45102&dnАБV492&&781&dd181110&sid71752852194630&"
},
"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"
},
"settlements": [
{
"amount": {
"value": "1000.00",
"currency": "RUB"
}
}
],
"on_behalf_of": "123"
}Response
Запрос успешно обработан
Example response
{
"id": "rt-1da5c87d-0984-50e8-a7f3-8de646dd9ec9",
"payment_id": "215d8da0-000f-50be-b000-0003308c89be",
"refund_id": "215d8da0-000f-50be-b000-0003308c89be",
"status": "succeeded",
"fiscal_document_number": "3986",
"fiscal_storage_number": "9288000100115785",
"fiscal_attribute": "2617603921",
"registered_at": "2019-05-13T17:56:00.000+03:00",
"fiscal_provider_id": "fd9e9404-eaca-4000-8ec9-dc228ead2345",
"items": [
{
"quantity": 1,
"amount": {
"value": "1000.00",
"currency": "RUB"
},
"country_of_origin_code": "RU",
"customs_declaration_number": "10714040/140917/0090376",
"excise": "20.00",
"supplier": {
"phone": "79000000000",
"inn": "6321341814"
},
"measure": "piece",
"payment_subject_industry_details": [
{
"federal_id": "001",
"document_date": "2020-11-18",
"value": "123/43"
}
],
"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",
"mark_quantity": {
"numerator": 1,
"denominator": 100
}
}
],
"settlements": [
{
"amount": {
"value": "1000.00",
"currency": "RUB"
}
}
],
"on_behalf_of": "123",
"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"
}
}