1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "quote": {
9 "schema_version": "1.0",
10 "quote_id": "SQ-001",
11 "currency": "USD",
12 "items": [{
13 "line_id": "A",
14 "quantity": "3",
15 "quantity_unit": "carton",
16 "units_per_carton": "24",
17 "unit_price": "1.20",
18 "price_unit": "piece",
19 "quoted_line_total": "86.40",
20 "moq_quantity": "48",
21 "moq_unit": "piece",
22 }],
23 "quoted_subtotal": "86.40",
24 "charges": [{
25 "id": "F",
26 "type": "freight",
27 "amount": "20.00",
28 "currency": "USD",
29 }],
30 "quoted_grand_total": "106.40",
31 "packages": [{
32 "package_id": "P1",
33 "package_count": 3,
34 "length": "40",
35 "width": "30",
36 "height": "25",
37 "dimension_unit": "cm",
38 "gross_weight": "9",
39 "net_weight": "8",
40 "weight_unit": "kg",
41 "quoted_cbm": "0.090000",
42 }],
43 "quoted_cbm": "0.09",
44 } }
45
46
47run = client.actor("bewildering_tapestry/supplier-quote-validator").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54