Export Event Costs to Excel or a BI Tool

/v1/financials/event_costs returns one record per cost line: booth, booth services, travel, shipments, sponsorships, registrations, giveaways, activities and miscellaneous expenses. The full examples page through every matching cost line and flatten event and payment details into CSV for Excel, Power BI or Google Sheets.
A surviving cost line keeps its public id when its amount or cost-center allocation changes. Deleting a line and creating a new one gives it a new id; zero amounts can remove a line under the existing cost rules. Offset pages are not a frozen snapshot: genuine additions and deletions during an export can move page boundaries. Prefer a quiet export window and reconcile or repeat the export when records change; upsert surviving lines by id.

Choose the events

filter_by_event_start_date_category=2026 selects events that start in 2026. Use upcoming or past instead of a year, date filters for a custom range, or filter_by_event_id for one event. Amounts use your workspace's currency.
The reference URL for this year is https://api.exhibitday.com/v1/financials/event_costs?filter_by_event_start_date_category=2026.
Set EXHIBITDAY_API_KEY. Optional inputs are EXHIBITDAY_YEAR (the current year by default) and EXHIBITDAY_CSV (the output file path).
Code Samples
#!/usr/bin/env bash
# Requires bash, curl and Python 3. Set EXHIBITDAY_API_KEY.
python3 - <<'EXHIBITDAY_PY'
# Python 3; standard library only. Set EXHIBITDAY_API_KEY before running.
import csv
import datetime
import json
import os
import re
import time
import urllib.error
import urllib.parse
import urllib.request
import uuid
from pathlib import Path

BASE = "https://api.exhibitday.com/v1"
SPEC = json.loads("{\"preserveNumbers\":true,\"requests\":{\"costs\":{\"method\":\"GET\",\"path\":\"/financials/event_costs\"}}}")
API_KEY = os.environ["EXHIBITDAY_API_KEY"]
if not API_KEY.strip():
    raise RuntimeError("Set EXHIBITDAY_API_KEY")

def decode_json(text):
    if SPEC["preserveNumbers"]:
        # Quote JSON NUMBER tokens, never text inside a JSON string, to keep CSV decimals exact.
        text = re.sub(r'"(?:\\.|[^"\\])*"|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?',
                      lambda m: m[0] if m[0].startswith('"') else json.dumps(m[0]), text)
    return json.loads(text)

# This terminal version uses curl for HTTP and Python's standard library for JSON/CSV.
import subprocess
import tempfile

def transport(method, url, headers, data):
    with tempfile.TemporaryDirectory(prefix="exhibitday-guide-") as directory:
        folder = Path(directory)
        command = ["curl", "--silent", "--show-error", "--request", method, "--url", url,
                   "--max-time", "30", "--dump-header", str(folder / "headers"),
                   "--output", str(folder / "body"), "--write-out", "%{http_code}"]
        for name, value in headers.items():
            command += ["--header", name + ": " + value]
        if data is not None:
            (folder / "request").write_bytes(data)
            command += ["--data-binary", "@" + str(folder / "request")]
        result = subprocess.run(command, capture_output=True, text=True)
        if result.returncode:
            raise urllib.error.URLError(result.stderr.strip())
        response_headers = {}
        blocks = (folder / "headers").read_text(encoding="iso-8859-1").replace("\r\n", "\n").strip().split("\n\n")
        for line in blocks[-1].splitlines()[1:]:
            name, separator, value = line.partition(":")
            if separator:
                response_headers[name] = value.strip()
        return int(result.stdout), (folder / "body").read_bytes(), response_headers


class ApiError(RuntimeError):
    """An API error response. Branch on error_code (and status), never on the message text.
    uncertain is True when a PATCH or DELETE got no response or a server error: it may or may not have been applied."""
    def __init__(self, status, body, uncertain=False):
        self.status = status
        self.uncertain = uncertain
        self.error_code = body.get("error_code") if isinstance(body, dict) else None
        super().__init__(f"{body.get('error_code')} {body.get('error_params')}: {body.get('errors')} (request {body.get('request_id')})"
                         if isinstance(body, dict) else "HTTP " + str(status) if status else "No response")

def call(name, params=None, body=None, extra_headers=None, key=None):
    route = SPEC["requests"][name]
    headers = {"api_key": API_KEY, "Accept": "application/json", **(extra_headers or {})}
    if route["method"] == "POST":
        headers["Idempotency-Key"] = key or str(uuid.uuid4())  # generated ONCE, before retries
    data = None if body is None else json.dumps(body).encode("utf-8")
    if data is not None:
        headers["Content-Type"] = "application/json"
    query = urllib.parse.urlencode(params or {})
    url = BASE + route["path"] + ("?" + query if query else "")
    # A GET, or a POST with its Idempotency-Key, can be sent again. A PATCH or DELETE that got no response or a
    # server error is never resent blindly: it may already have been applied, so the caller reads the record first.
    resend = route["method"] in ("GET", "POST")
    for attempt in range(5):
        try:
            status, raw, response_headers = transport(route["method"], url, headers, data)
        except (urllib.error.URLError, TimeoutError):
            if not resend:
                raise ApiError(0, None, uncertain=True)
            if attempt == 4:
                raise
            time.sleep(2 ** attempt)
            continue
        response_headers = {k.lower(): v for k, v in response_headers.items()}
        result = None
        if status != 304 and raw:
            try:
                result = decode_json(raw.decode("utf-8"))
            except (ValueError, UnicodeError):
                if status < 400:
                    raise RuntimeError("Expected a JSON success response")
        if status >= 500 and not resend:
            raise ApiError(status, result, uncertain=True)
        retry = status == 429 or status >= 500 or (status == 409 and isinstance(result, dict) and result.get("error_code") == "idempotency_key_in_use")
        if retry:
            if attempt == 4:
                raise RuntimeError("Retry limit reached; check the request outcome before starting a new create")
            delay = response_headers.get("retry-after", str(2 ** attempt))
            time.sleep(max(0, float(delay)))
            continue
        if status >= 400:
            raise ApiError(status, result)
        return {"status": status, "body": result, "headers": response_headers}
    raise RuntimeError("Retry limit reached")

def pages(name, params=None):
    offset = 0
    while True:
        page = call(name, {**(params or {}), "$limit": 100, "$offset": offset})["body"]
        yield from page["list_data"]
        if not page["has_more"]:
            break
        count = int(page["records_found"])
        if count <= 0:
            raise RuntimeError("Server returned an empty page with has_more=true")
        offset += count

def load_json(path, fallback):
    return json.loads(path.read_text(encoding="utf-8")) if path.exists() else fallback

def save_json(path, value):
    temp = path.with_name(path.name + ".tmp")
    temp.write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
    temp.replace(path)

year = os.environ.get("EXHIBITDAY_YEAR", str(datetime.date.today().year))
path = Path(os.environ.get("EXHIBITDAY_CSV", "event-costs-" + year + ".csv"))
columns = ["event_id", "event_name", "event_start_date", "cost_type", "cost_subtype", "details", "amount", "payment_status", "payment_due_date"]
count = 0
with path.open("w", newline="", encoding="utf-8-sig") as file:
    writer = csv.writer(file)
    writer.writerow(columns)
    for cost in pages("costs", {"filter_by_event_start_date_category": year}):
        event = cost["event"]
        writer.writerow([event["id"], event["name"], event.get("start_date"), cost.get("cost_type"), cost.get("cost_subtype"),
                         cost.get("details"), cost.get("amount"), (cost.get("payment_status") or {}).get("name", ""), cost.get("payment_due_date")])
        count += 1
print("Saved", count, "cost lines to", path)
# Numeric response tokens remain strings in this guide: signed decimal values are not rounded through float.


EXHIBITDAY_PY

Example HTTP response body (JSON)

GET /v1/financials/event_costs - HTTP 200
{
  "records_found": 1,
  "total_records": 1,
  "has_more": false,
  "list_type": "event_cost",
  "list_data": [
    {
      "id": 12345,
      "cost_type_id": 6,
      "cost_type": "Miscellaneous Expense/Credit",
      "cost_subtype": null,
      "details": "Sample expense",
      "amount": 125.50,
      "amount_cost_center_breakdown": [
        {
          "cost_center_id": null,
          "cost_center": "Not Specified",
          "charge": 125.50
        }
      ],
      "payment_due_date": "",
      "payment_status": {
        "id": 0,
        "name": "Not Specified"
      },
      "next_partial_payment_due_date": "",
      "payment_notes": "",
      "event": {
        "id": 12345,
        "exhibitday_url": "https://www.exhibitday.com/Workspace/Event/98765?eid=12345",
        "name": "Sample Event",
        "start_date": "2026-11-20",
        "end_date": "2026-11-22",
        "participation_type_id": 1,
        "participation_type": "Committed",
        "format_id": 1,
        "format": "In-Person",
        "event_created_timestamp": "2026-11-14T17:00:00Z",
        "event_last_update_timestamp": "2026-11-14T17:00:00Z"
      }
    }
  ]
}
Note: Illustrative response. The first event-costs page for the current-year default. This is the server's JSON, which the program converts to CSV; it is not the CSV file or console output. Assume the workspace has one matching expense. Request inputs: {"filter_by_event_start_date_category":"2026","$limit":100,"$offset":0}.
Requirements: the curl workflow uses Bash, curl and Python 3; JavaScript uses Node.js 18 or later (save it as .cjs); Python uses its standard library; C# uses a .NET 8 console project (Program.cs). Java needs Java 11 or later, saved as Main.java, with Gson 2.14.0 on both the compile and runtime classpaths. PHP needs PHP 8.1 or later with cURL; Ruby 3.1 or later and Go 1.18 or later use their standard libraries.

PowerShell and Excel

In PowerShell, Invoke-RestMethod returns list_data as objects. Flatten the event and payment_status objects into columns before passing the rows to Export-Csv -NoTypeInformation -Encoding UTF8. Keep reading pages until has_more is false; exporting only the first response can omit cost lines. The curl workflow above is Bash, not PowerShell syntax; use that shell or choose another supported language.

Power BI

In Power BI Desktop choose Get Data > Web > Advanced. Enter the filtered URL and an HTTP request header named api_key with your key. Expand list_data and the nested event and payment_status objects. For paged data, use the same has_more/offset loop or import the complete CSV produced by one of the examples.

Annual expenses

Expenses not tied to an event come from /v1/financials/misc_annual_expense_costs?budget_year=2026. For the shared paging pattern, see Sync Events and Tasks to Another System.