1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "invoice": {
9 "id": "FF-2026-0042",
10 "typeCode": "380",
11 "issueDate": "2026-03-14",
12 "dueDate": "2026-04-13",
13 "currency": "EUR",
14 "buyerReference": "SERVEXEC-2026",
15 "purchaseOrderReference": "PO-91177",
16 "deliveryDate": "2026-03-12",
17 "paymentTerms": "Net 30 days from invoice date.",
18 "payeeIban": "FR7630006000011234567890189",
19 "notes": [{
20 "content": "Services delivered under framework agreement FA-2025-11.",
21 "subjectCode": "AAI",
22 }],
23 "seller": {
24 "name": "Atelier Numerique SARL",
25 "vatId": "FR40303265045",
26 "legalRegistrationId": "30326504500011",
27 "address": {
28 "line1": "12 rue de la Fonderie",
29 "postcode": "31000",
30 "city": "Toulouse",
31 "countryCode": "FR",
32 },
33 "contact": {
34 "name": "Claire Moreau",
35 "email": "billing@atelier-numerique.example",
36 "phone": "+33 5 61 00 00 00",
37 },
38 },
39 "buyer": {
40 "name": "Nordwind Logistik GmbH",
41 "vatId": "DE811907980",
42 "address": {
43 "line1": "Speicherstrasse 8",
44 "postcode": "20457",
45 "city": "Hamburg",
46 "countryCode": "DE",
47 },
48 },
49 "lines": [{
50 "id": "1",
51 "name": "Integration engineering",
52 "description": "API integration sprint, 3 weeks",
53 "sellerAssignedId": "SVC-INT",
54 "quantity": "112.5",
55 "unitCode": "HUR",
56 "netPrice": "95.00",
57 "vat": {
58 "categoryCode": "S",
59 "ratePercent": "20.00",
60 },
61 }],
62 } }
63
64
65run = client.actor("savagnic/facturforge").call(run_input=run_input)
66
67
68print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
69for item in client.dataset(run.default_dataset_id).iterate_items():
70 print(item)
71
72