examplebonus / data.json
flpolprojects's picture
Update bonus data 2025-12-22 13:43:29
5d407bb verified
{
"organization_details": {
"name": "тестовое",
"phone_numbers": [
"+77472479197",
"+996500398754"
],
"address": "",
"whatsapp_link": "wa.me/+77472479197",
"telegram_link": ""
},
"bonus_program_settings": {
"invoice_bonus_percentage": 2,
"referral_promo_bonus": 50,
"referrer_first_purchase_percentage": 5
},
"82423": {
"id": "82423",
"telegram_id": 7158968984,
"first_name": "Synkris Ai",
"last_name": "",
"username": "morshenkhan",
"photo_url": "https://t.me/i/userpic/320/3hfxqN7yEfO0QBrMCoSZWyk87JniopInqB2VlLYuPLUEcIq_y5T7WziRW_9IN9ku.svg",
"is_premium": false,
"phone_number": null,
"visited_at": 1766393009.50349,
"visited_at_str": "2025-12-22 13:43:29",
"bonuses": 1385.6,
"history": [
{
"type": "accrual",
"amount": 384.0,
"description": "Бонус с накладной #3CCA7ABF",
"date": "2025-12-21T10:41:31.210724+05:00",
"date_str": "2025-12-21 10:41:31",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 1.6,
"description": "Бонус с накладной #5961DA57",
"date": "2025-12-21T12:06:18.286418+05:00",
"date_str": "2025-12-21 12:06:18",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 1000.0,
"description": "Бонус с накладной #A893C907",
"date": "2025-12-22T13:33:36.565452+05:00",
"date_str": "2025-12-22 13:33:36",
"transaction_type": "bonus"
}
],
"debts": 0.0,
"debt_history": [
{
"type": "accrual",
"amount": 20.0,
"description": "Добавление долга",
"date": "2025-12-21T12:08:00.167987+05:00",
"date_str": "2025-12-21 12:08:00",
"transaction_type": "debt"
},
{
"type": "accrual",
"amount": 10000.0,
"description": "Добавление долга",
"date": "2025-12-21T12:26:40.076270+05:00",
"date_str": "2025-12-21 12:26:40",
"transaction_type": "debt"
},
{
"type": "payment",
"amount": 10020.0,
"description": "Погашение долга",
"date": "2025-12-21T12:27:06.971352+05:00",
"date_str": "2025-12-21 12:27:06",
"transaction_type": "debt"
}
],
"invoices": [
{
"invoice_id": "3CCA7ABF",
"date": "2025-12-21T10:41:31.210724+05:00",
"date_str": "2025-12-21 10:41:31",
"total_amount": 19200.0,
"items": [
{
"product_name": "Смеситель ",
"quantity": 4.0,
"unit_price": 4800.0,
"item_total": 19200.0
}
],
"bonuses_deducted": 0.0,
"bonus_source_used": null
},
{
"invoice_id": "5961DA57",
"date": "2025-12-21T12:06:18.286418+05:00",
"date_str": "2025-12-21 12:06:18",
"total_amount": 80.0,
"items": [
{
"product_name": "Брюки багги ",
"quantity": 5.0,
"unit_price": 16.0,
"item_total": 80.0
}
],
"bonuses_deducted": 0.0,
"bonus_source_used": null
},
{
"invoice_id": "A893C907",
"date": "2025-12-22T13:33:36.565452+05:00",
"date_str": "2025-12-22 13:33:36",
"total_amount": 50000.0,
"items": [
{
"product_name": "К котёл grand force",
"quantity": 1.0,
"unit_price": 50000.0,
"item_total": 50000.0
}
],
"bonuses_deducted": 0.0,
"bonus_source_used": null
}
],
"referral_code": "PROMO82423",
"referred_by": null,
"referrals": [
"94618"
],
"has_been_welcomed": true,
"referral_bonuses": 50.0,
"referral_bonus_history": [
{
"type": "accrual",
"amount": 50.0,
"description": "Бонус от друга Alex",
"date": "2025-12-21T09:33:13.327203+06:00",
"date_str": "2025-12-21 09:33:13",
"transaction_type": "referral"
}
],
"has_made_first_purchase": true,
"combined_history": [
{
"type": "accrual",
"amount": 1000.0,
"description": "Бонус с накладной #A893C907",
"date": "2025-12-22T13:33:36.565452+05:00",
"date_str": "2025-12-22 13:33:36",
"transaction_type": "bonus"
},
{
"type": "payment",
"amount": 10020.0,
"description": "Погашение долга",
"date": "2025-12-21T12:27:06.971352+05:00",
"date_str": "2025-12-21 12:27:06",
"transaction_type": "debt"
},
{
"type": "accrual",
"amount": 10000.0,
"description": "Добавление долга",
"date": "2025-12-21T12:26:40.076270+05:00",
"date_str": "2025-12-21 12:26:40",
"transaction_type": "debt"
},
{
"type": "accrual",
"amount": 20.0,
"description": "Добавление долга",
"date": "2025-12-21T12:08:00.167987+05:00",
"date_str": "2025-12-21 12:08:00",
"transaction_type": "debt"
},
{
"type": "accrual",
"amount": 1.6,
"description": "Бонус с накладной #5961DA57",
"date": "2025-12-21T12:06:18.286418+05:00",
"date_str": "2025-12-21 12:06:18",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 384.0,
"description": "Бонус с накладной #3CCA7ABF",
"date": "2025-12-21T10:41:31.210724+05:00",
"date_str": "2025-12-21 10:41:31",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 50.0,
"description": "Бонус от друга Alex",
"date": "2025-12-21T09:33:13.327203+06:00",
"date_str": "2025-12-21 09:33:13",
"transaction_type": "referral"
}
]
},
"94618": {
"id": "94618",
"telegram_id": 5929031322,
"first_name": "Alex",
"last_name": "Morshen",
"username": "sandru_dev",
"photo_url": "https://t.me/i/userpic/320/Tw_JMTzRLpa3c4C1EuYBFR5krvS6H5i-1gGI4xu1O1aG6FEs7_l8nqYp2xIhFkmZ.svg",
"is_premium": false,
"phone_number": null,
"visited_at": 1766293677.609002,
"visited_at_str": "2025-12-21 10:07:57",
"bonuses": 222.36,
"history": [
{
"type": "accrual",
"amount": 50.0,
"description": "Бонус за промокод",
"date": "2025-12-21T09:32:23.241765+06:00",
"date_str": "2025-12-21 09:32:23",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 20.0,
"description": "Бонус с накладной #5CE08221",
"date": "2025-12-21T09:33:13.327203+06:00",
"date_str": "2025-12-21 09:33:13",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 204.0,
"description": "Бонус с накладной #E8803757",
"date": "2025-12-21T09:34:03.328473+06:00",
"date_str": "2025-12-21 09:34:03",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 200.0,
"description": "Оплата по накладной #9B6E3C60",
"date": "2025-12-21T08:49:37.330568+05:00",
"date_str": "2025-12-21 08:49:37",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 200.0,
"description": "Бонус с накладной #9B6E3C60",
"date": "2025-12-21T08:49:37.330568+05:00",
"date_str": "2025-12-21 08:49:37",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 10.0,
"description": "Оплата по накладной #BE0708D3",
"date": "2025-12-21T09:03:19.735919+05:00",
"date_str": "2025-12-21 09:03:19",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 0.2,
"description": "Бонус с накладной #BE0708D3",
"date": "2025-12-21T09:03:19.735919+05:00",
"date_str": "2025-12-21 09:03:19",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 2.0,
"description": "Бонус с накладной #2D6743D2",
"date": "2025-12-21T09:19:11.775152+05:00",
"date_str": "2025-12-21 09:19:11",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 10.0,
"description": "Оплата по накладной #21ECA177",
"date": "2025-12-21T09:19:40.210092+05:00",
"date_str": "2025-12-21 09:19:40",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 1.4,
"description": "Бонус с накладной #21ECA177",
"date": "2025-12-21T09:19:40.210092+05:00",
"date_str": "2025-12-21 09:19:40",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 257.0,
"description": "Оплата по накладной #7A97A142",
"date": "2025-12-21T09:29:04.347376+05:00",
"date_str": "2025-12-21 09:29:04",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 400.0,
"description": "Бонус с накладной #7A97A142",
"date": "2025-12-21T09:29:04.347376+05:00",
"date_str": "2025-12-21 09:29:04",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 400.0,
"description": "Оплата по накладной #6CC98DF3",
"date": "2025-12-21T09:42:22.404621+05:00",
"date_str": "2025-12-21 09:42:22",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 0.6,
"description": "Оплата по накладной #9818622D",
"date": "2025-12-21T09:59:32.846987+05:00",
"date_str": "2025-12-21 09:59:32",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 222.36,
"description": "Бонус с накладной #14F7559E",
"date": "2025-12-21T10:09:22.327327+05:00",
"date_str": "2025-12-21 10:09:22"
}
],
"debts": 0,
"debt_history": [],
"invoices": [
{
"invoice_id": "5CE08221",
"date": "2025-12-21T09:33:13.327203+06:00",
"date_str": "2025-12-21 09:33:13",
"total_amount": 1000.0,
"items": [
{
"product_name": "покупка",
"quantity": 100.0,
"unit_price": 10.0,
"item_total": 1000.0
}
]
},
{
"invoice_id": "E8803757",
"date": "2025-12-21T09:34:03.328473+06:00",
"date_str": "2025-12-21 09:34:03",
"total_amount": 10200.0,
"items": [
{
"product_name": "покупка 2",
"quantity": 100.0,
"unit_price": 102.0,
"item_total": 10200.0
}
]
},
{
"invoice_id": "9B6E3C60",
"date": "2025-12-21T08:49:37.330568+05:00",
"date_str": "2025-12-21 08:49:37",
"total_amount": 10000.0,
"items": [
{
"product_name": "покупка",
"quantity": 1.0,
"unit_price": 10000.0,
"item_total": 10000.0
}
],
"bonuses_deducted": 200.0
},
{
"invoice_id": "BE0708D3",
"date": "2025-12-21T09:03:19.735919+05:00",
"date_str": "2025-12-21 09:03:19",
"total_amount": 10.0,
"items": [
{
"product_name": "поку",
"quantity": 1.0,
"unit_price": 10.0,
"item_total": 10.0
}
],
"bonuses_deducted": 10.0,
"bonus_type_deducted": "regular"
},
{
"invoice_id": "2D6743D2",
"date": "2025-12-21T09:19:11.775152+05:00",
"date_str": "2025-12-21 09:19:11",
"total_amount": 100.0,
"items": [
{
"product_name": "ра",
"quantity": 1.0,
"unit_price": 100.0,
"item_total": 100.0
}
],
"bonuses_deducted": 0.0,
"bonus_source_used": null
},
{
"invoice_id": "21ECA177",
"date": "2025-12-21T09:19:40.210092+05:00",
"date_str": "2025-12-21 09:19:40",
"total_amount": 70.0,
"items": [
{
"product_name": "11",
"quantity": 10.0,
"unit_price": 7.0,
"item_total": 70.0
}
],
"bonuses_deducted": 10.0,
"bonus_source_used": "main"
},
{
"invoice_id": "7A97A142",
"date": "2025-12-21T09:29:04.347376+05:00",
"date_str": "2025-12-21 09:29:04",
"total_amount": 20000.0,
"items": [
{
"product_name": "ккк",
"quantity": 100.0,
"unit_price": 200.0,
"item_total": 20000.0
}
],
"bonuses_deducted": 257.0,
"bonus_source_used": "main"
},
{
"invoice_id": "6CC98DF3",
"date": "2025-12-21T09:42:22.404621+05:00",
"date_str": "2025-12-21 09:42:22",
"total_amount": 10000.0,
"items": [
{
"product_name": "Тест",
"quantity": 10.0,
"unit_price": 1000.0,
"item_total": 10000.0
}
],
"bonuses_deducted": 400.0,
"bonus_source_used": "main"
},
{
"invoice_id": "9818622D",
"date": "2025-12-21T09:59:32.846987+05:00",
"date_str": "2025-12-21 09:59:32",
"total_amount": 1000.0,
"items": [
{
"product_name": "Тест",
"quantity": 10.0,
"unit_price": 100.0,
"item_total": 1000.0
}
],
"bonuses_deducted": 0.6,
"bonus_source_used": "main"
},
{
"invoice_id": "14F7559E",
"date": "2025-12-21T10:09:22.327327+05:00",
"date_str": "2025-12-21 10:09:22",
"total_amount": 11118.0,
"items": [
{
"product_name": "тест",
"quantity": 17.0,
"unit_price": 654.0,
"item_total": 11118.0
}
],
"bonuses_deducted": 0.0,
"bonus_source_used": null
}
],
"referral_code": "PROMO94618",
"referred_by": "82423",
"referrals": [],
"has_been_welcomed": true,
"referral_bonuses": 0,
"referral_bonus_history": [],
"has_made_first_purchase": true,
"combined_history": [
{
"type": "deduction",
"amount": 0.6,
"description": "Оплата по накладной #9818622D",
"date": "2025-12-21T09:59:32.846987+05:00",
"date_str": "2025-12-21 09:59:32",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 400.0,
"description": "Оплата по накладной #6CC98DF3",
"date": "2025-12-21T09:42:22.404621+05:00",
"date_str": "2025-12-21 09:42:22",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 257.0,
"description": "Оплата по накладной #7A97A142",
"date": "2025-12-21T09:29:04.347376+05:00",
"date_str": "2025-12-21 09:29:04",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 400.0,
"description": "Бонус с накладной #7A97A142",
"date": "2025-12-21T09:29:04.347376+05:00",
"date_str": "2025-12-21 09:29:04",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 10.0,
"description": "Оплата по накладной #21ECA177",
"date": "2025-12-21T09:19:40.210092+05:00",
"date_str": "2025-12-21 09:19:40",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 1.4,
"description": "Бонус с накладной #21ECA177",
"date": "2025-12-21T09:19:40.210092+05:00",
"date_str": "2025-12-21 09:19:40",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 2.0,
"description": "Бонус с накладной #2D6743D2",
"date": "2025-12-21T09:19:11.775152+05:00",
"date_str": "2025-12-21 09:19:11",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 10.0,
"description": "Оплата по накладной #BE0708D3",
"date": "2025-12-21T09:03:19.735919+05:00",
"date_str": "2025-12-21 09:03:19",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 0.2,
"description": "Бонус с накладной #BE0708D3",
"date": "2025-12-21T09:03:19.735919+05:00",
"date_str": "2025-12-21 09:03:19",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 200.0,
"description": "Оплата по накладной #9B6E3C60",
"date": "2025-12-21T08:49:37.330568+05:00",
"date_str": "2025-12-21 08:49:37",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 200.0,
"description": "Бонус с накладной #9B6E3C60",
"date": "2025-12-21T08:49:37.330568+05:00",
"date_str": "2025-12-21 08:49:37",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 204.0,
"description": "Бонус с накладной #E8803757",
"date": "2025-12-21T09:34:03.328473+06:00",
"date_str": "2025-12-21 09:34:03",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 20.0,
"description": "Бонус с накладной #5CE08221",
"date": "2025-12-21T09:33:13.327203+06:00",
"date_str": "2025-12-21 09:33:13",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 50.0,
"description": "Бонус за промокод",
"date": "2025-12-21T09:32:23.241765+06:00",
"date_str": "2025-12-21 09:32:23",
"transaction_type": "bonus"
}
]
}
}