examplebonus / data.json
flpolprojects's picture
Update bonus data 2025-06-21 10:53:36
895c9c9 verified
raw
history blame
9.12 kB
{
"66871": {
"id": "66871",
"telegram_id": 7158968984,
"first_name": "Morshen Group",
"last_name": "",
"username": "morshenkhan",
"photo_url": "https://t.me/i/userpic/320/3hfxqN7yEfO0QBrMCoSZWyk87JniopInqB2VlLYuPLUEcIq_y5T7WziRW_9IN9ku.svg",
"language_code": "ru",
"is_premium": false,
"phone_number": null,
"visited_at": 1750481616.769068,
"visited_at_str": "2025-06-21 10:53:36",
"bonuses": 400.0,
"history": [
{
"type": "accrual",
"amount": 4000.0,
"description": "Начисление с покупки 200000.0",
"date": "2025-06-19T05:32:55.585589",
"date_str": "2025-06-19 05:32:55",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 4000.0,
"description": "Начисление с покупки 200000.0",
"date": "2025-06-19T06:23:14.417283",
"date_str": "2025-06-19 06:23:14",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 4000.0,
"description": "Начисление с покупки 200000.0",
"date": "2025-06-19T08:00:39.748566",
"date_str": "2025-06-19 08:00:39",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 2000.0,
"description": "Списание бонусов",
"date": "2025-06-19T08:01:01.507246",
"date_str": "2025-06-19 08:01:01",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 2000.0,
"description": "Начисление с покупки 100000.0",
"date": "2025-06-19T09:12:52.946381",
"date_str": "2025-06-19 09:12:52",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 12000.0,
"description": "Списание бонусов",
"date": "2025-06-19T09:13:29.712369",
"date_str": "2025-06-19 09:13:29",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 400.0,
"description": "Начисление с покупки 20000.0",
"date": "2025-06-19T10:02:32.896700",
"date_str": "2025-06-19 10:02:32",
"transaction_type": "bonus"
}
],
"debts": 0.0,
"debt_history": [
{
"type": "accrual",
"amount": 1000.0,
"description": "Добавление долга",
"date": "2025-06-19T05:32:41.286607",
"date_str": "2025-06-19 05:32:41",
"transaction_type": "debt"
},
{
"type": "payment",
"amount": 500.0,
"description": "Погашение долга",
"date": "2025-06-19T05:34:36.511688",
"date_str": "2025-06-19 05:34:36",
"transaction_type": "debt"
},
{
"type": "payment",
"amount": 500.0,
"description": "Погашение долга",
"date": "2025-06-19T08:01:19.526848",
"date_str": "2025-06-19 08:01:19",
"transaction_type": "debt"
}
],
"combined_history": [
{
"type": "accrual",
"amount": 400.0,
"description": "Начисление с покупки 20000.0",
"date": "2025-06-19T10:02:32.896700",
"date_str": "2025-06-19 10:02:32",
"transaction_type": "bonus"
},
{
"type": "deduction",
"amount": 12000.0,
"description": "Списание бонусов",
"date": "2025-06-19T09:13:29.712369",
"date_str": "2025-06-19 09:13:29",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 2000.0,
"description": "Начисление с покупки 100000.0",
"date": "2025-06-19T09:12:52.946381",
"date_str": "2025-06-19 09:12:52",
"transaction_type": "bonus"
},
{
"type": "payment",
"amount": 500.0,
"description": "Погашение долга",
"date": "2025-06-19T08:01:19.526848",
"date_str": "2025-06-19 08:01:19",
"transaction_type": "debt"
},
{
"type": "deduction",
"amount": 2000.0,
"description": "Списание бонусов",
"date": "2025-06-19T08:01:01.507246",
"date_str": "2025-06-19 08:01:01",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 4000.0,
"description": "Начисление с покупки 200000.0",
"date": "2025-06-19T08:00:39.748566",
"date_str": "2025-06-19 08:00:39",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 4000.0,
"description": "Начисление с покупки 200000.0",
"date": "2025-06-19T06:23:14.417283",
"date_str": "2025-06-19 06:23:14",
"transaction_type": "bonus"
},
{
"type": "payment",
"amount": 500.0,
"description": "Погашение долга",
"date": "2025-06-19T05:34:36.511688",
"date_str": "2025-06-19 05:34:36",
"transaction_type": "debt"
},
{
"type": "accrual",
"amount": 4000.0,
"description": "Начисление с покупки 200000.0",
"date": "2025-06-19T05:32:55.585589",
"date_str": "2025-06-19 05:32:55",
"transaction_type": "bonus"
},
{
"type": "accrual",
"amount": 1000.0,
"description": "Добавление долга",
"date": "2025-06-19T05:32:41.286607",
"date_str": "2025-06-19 05:32:41",
"transaction_type": "debt"
}
],
"invoices": [
{
"id": "inv_1750480549510_918",
"date": "2025-06-21T10:35:49.510358+06:00",
"date_str": "2025-06-21 10:35:49",
"items": [
{
"name": "Тестовый",
"quantity": 1,
"price_per_unit": 3000,
"item_total": 3000
},
{
"name": "Тест 2",
"quantity": 25,
"price_per_unit": 300,
"item_total": 7500
}
],
"total_amount": 10500.0
}
]
},
"users": {
"38771": {
"id": "38771",
"telegram_id": 7158968984,
"first_name": "Morshen Group",
"last_name": "",
"username": "morshenkhan",
"photo_url": "https://t.me/i/userpic/320/3hfxqN7yEfO0QBrMCoSZWyk87JniopInqB2VlLYuPLUEcIq_y5T7WziRW_9IN9ku.svg",
"language_code": "ru",
"is_premium": false,
"phone_number": null,
"visited_at": 1750481114.684709,
"visited_at_str": "21.06.2025 10:45",
"bonuses": 0,
"history": [],
"debts": 0,
"debt_history": [],
"invoices": []
},
"id": "users"
},
"organization_info": {
"name": "Название вашей организации",
"phone_numbers": [
"+996 (XXX) XX-XX-XX"
],
"address": "г. Бишкек, ул. Примерная, д. 1",
"links": [
{
"label": "Веб-сайт",
"url": "https://example.com"
}
],
"id": "organization_info"
},
"_organization_details": {
"name": "Название вашей организации",
"phones": [],
"address": "Ваш адрес",
"links": []
}
}