Export expenses
The expenses the same filters would list, as a CSV file or as a PDF on the store’s letterhead. Refused with business_details_required until the store has its business details.
Needs the expenses.read permission (Read Expenses). It is one of the heavier reads, and is counted against a smaller budget of its own: 60 a minute for each key.
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
Query Parameters
The period.
today, yesterday, 7d, 30d, this_week, last_week, this_month, last_month, this_year The first day of a period of your own, as YYYY-MM-DD. With to, in place of range.
Its last day, as YYYY-MM-DD.
The time zone those days are in, as an IANA name. Left out, UTC.
"Europe/Berlin"
Part of a payee, a note or a reference.
Only expenses in this expense category, by its ID.
Only expenses paid this way.
card, bank, crypto, paypal, cash, other A spreadsheet or a document.
csv, pdf Response
The file itself, not a JSON envelope.
The response is of type file.

