File size: 7,794 Bytes
d9aa1de
 
 
 
 
 
 
 
 
 
 
9b240bb
 
49e2c73
e0b893e
 
 
 
 
 
178ff97
 
037ee73
 
 
 
 
 
aff7f9c
 
 
 
 
 
 
 
b95a86a
 
4255c95
 
 
 
 
 
b95a86a
 
9bf8b94
 
 
 
 
 
4796e9b
 
 
 
 
 
 
 
49e2c73
 
 
 
 
 
 
 
d68637c
 
e0b893e
 
a78211e
c55391e
 
 
 
 
 
178ff97
 
bca78fc
 
 
 
 
 
64e2e03
 
a78211e
 
 
 
 
 
b95a86a
 
c55391e
 
178ff97
d68637c
 
 
 
 
 
 
 
49e2c73
 
 
 
 
 
 
 
4796e9b
 
 
 
 
 
 
 
b95a86a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aff7f9c
 
 
 
 
 
 
 
64e2e03
 
 
 
 
 
 
 
178ff97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb960b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178ff97
d9aa1de
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
    "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": 1750480598.86679,
        "visited_at_str": "2025-06-21 10:36:38",
        "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
            }
        ]
    }
}