1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "invoices": [{
9 "issuer": {
10 "name": "株式会社サンプル商事",
11 "registration_number": "T7123456789012",
12 },
13 "date": "2026-10-28",
14 "buyer": { "name": "株式会社テスト" },
15 "price_basis": "exclusive",
16 "items": [
17 {
18 "description": "コピー用紙",
19 "amount": 1999,
20 "rate": 10,
21 },
22 {
23 "description": "※ お茶",
24 "amount": 1234,
25 "rate": 8,
26 "reduced": True,
27 },
28 ],
29 "totals": [
30 {
31 "rate": 10,
32 "amount": 1999,
33 "tax": 199,
34 },
35 {
36 "rate": 8,
37 "amount": 1234,
38 "tax": 98,
39 },
40 ],
41 }] }
42
43
44run = client.actor("nexus-tools/jp-invoice-check-apify").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51