Skip to content
HisarPay
  • Product
  • Published:
  • Reading time: 6 min read
  • Türkçe oku

Getting payment records into your books: which file holds what

What your bookkeeper needs at month end sits in three files, and each answers a different question. Pick the wrong one and a network fee ends up in revenue, or a late-night payment lands in the wrong month. Here is what the columns mean, how dates and rates work, and how to have the files arrive by themselves.

On this page
  1. Three files, three questions
  2. CSV, Excel or PDF
  3. Dates are in UTC
  4. Which rate, which dollar value
  5. Where commission and network fee appear
  6. Have them arrive every month
  7. Match it with exchange and bank
  8. Frequently asked questions

Three files, three questions

FileWhereWhat it answers
InvoicesInvoices pageWhat did I sell? Order id, status, dollar price, coin, amount asked and paid, payment date
WithdrawalsBalance & withdrawals → WithdrawalsWhere did I send it? Amount, fee, destination, TxID, note
Balance historyBalance & withdrawals → Balance historyHow did my balance move? Type, coin, signed amount, balance after

The Export button on each page asks for a period, a format and the language of the column headers. The invoice file lists requests, so unpaid and expired ones are in it too; filter by status. The money itself is in the balance history. Its rows are typed: payment, withdrawal, a refunded withdrawal that failed, an amount released after review, an adjustment or a referral reward. A payment held for review shows up only once it is released.

CSV, Excel or PDF

  • CSV is for importing into accounting software. It is comma separated, UTF-8. If your Excel expects semicolons, use Data → From Text/CSV and choose the comma.
  • Excel is for filtering and checking. Amounts are written as text with a decimal point, so convert them to numbers before you sum a column.
  • PDF is for reading and filing. Ids, payment addresses and notes are left out, and each coin gets a total at the end.

CSV and Excel hold at most 10,000 rows, a PDF at most 2,000, and they keep the newest; a PDF that was cut off says so on every page. If you get exactly that many, split the period and export again. Files stay available for 7 days, so download them to your own archive.

Dates are in UTC

Every date column is UTC, and so are the days you pick in the dashboard. A payment at 01:30 on 1 December in Istanbul reads 22:30 on 30 November; one at 20:00 on 30 November in New York reads 01:00 on 1 December. Through the API you can shift the range to your own month. The start is included, the end is not.

The invoice file is filtered by creation date. An invoice made on 30 November and paid on 1 December is in the November file, with December in its paid column. If you close periods by the day money arrived, work from the balance history.

Which rate, which dollar value

Amount (USD) in the invoice file is the price. It is empty on invoices you priced in a coin. There is no rate column. Two rates are on record, and they are not the same thing:

  • The locked rate (rate_usd), fixed when the customer picked a coin. It decided how many TRX the invoice asked for.
  • The dollar value of the payment (usd_value), at the market rate when each payment became final. It stands next to the amount on the invoice in the dashboard, and in the payments list of the API.

For USDT both are one dollar. For TRX they can differ a little. Ask your accountant which one belongs in your books and stay with it. Our article on the rate lock explains where the gap comes from.

Where commission and network fee appear

A Payment row in the balance history is net. Network fee and commission are already off, and there is no separate line for them. Take a $250 USDT invoice on which you bear the commission:

RecordValue
Invoices: Amount (USD)250.00
Invoices: Paid251 USDT
Network fee1 USDT
Commission (0.4%)1 USDT
Balance history: Payment+249 USDT

The gap between paid and net is network fee plus commission. The network fee is 1 USDT, once per USDT invoice, and nothing on TRX; the rest is commission. If payment e-mails are on, each one itemises amount, network fee, commission and what was added. Withdrawals split the same way. Take out 200 USDT and the withdrawal file shows amount 200, fee 1, while the balance history has one row of −201.

Mark your refundsA refund is a withdrawal too. Put the order number in the Note field when you send it; it comes back in the Note column of the CSV and Excel files and keeps refunds apart from payouts to yourself. The steps are in our article on refunds.

Have them arrive every month

Create a live key with nothing but the reports scope. It cannot issue invoices, read balances or withdraw, which makes it the right key for a bookkeeping server. Fill in its IP allowlist and give it an end date if you like. This script downloads one month:

Monthly export (Python)Python
import os
from hisarpay import HisarPay

client = HisarPay(os.environ["HISARPAY_REPORTS_KEY"])

for kind in ("invoices", "withdrawals", "balance_transactions"):
    report = client.reports.create_and_wait({
        "kind": kind,
        "format": "csv",
        "lang": "en",
        "from": "2026-11-01T00:00:00Z",  # UTC
        "to": "2026-12-01T00:00:00Z",
    })
    if report["status"] != "ready":
        raise SystemExit(f"{kind}: {report['status']}")
    file = client.reports.download(report["id"])
    with open(f"2026-11-{kind}.csv", "wb") as fh:
        fh.write(file["data"])

Up to three reports can be in progress, so asking one after another is fine. With a test key, withdrawals and balance history come back empty, because test mode has no balance. Other options are in the reports guide.

Match it with exchange and bank

  1. Add the period’s rows to the opening balance, for each coin separately. You should arrive at the balance on the newest row, which is at the top of the file.
  2. Find the TxID of every completed withdrawal among the deposits of your wallet or exchange account. What arrived there is the amount; the fee is separate.
  3. Sales and trading fees on an exchange are not in HisarPay’s records. Add that statement.
  4. Match the bank line with the sale. The chain is complete: invoice, net entry, withdrawal, sale, bank.

HisarPay does not issue tax invoices and gives no tax or legal advice. The PDF receipt on the payment page documents a payment and does not replace your invoice. Ask your accountant how to keep these records.

Frequently asked questions

Do test payments end up in live files?
No. Live and test records are separate; a file exported in live mode holds real payments only.
How do I match the reference in the balance history to an invoice?
On payment rows the reference is the id of the payment. Read the invoice through the API and the same id is in its payments list, next to the TxID.
What if a month has more than 10,000 rows?
Split it into halves or weeks. Each file holds the records of its own range, and together they make up the month.
How is crypto income taxed?
We do not advise on that. Give the files to your accountant and ask which rate and which date to use.
  • #Accounting
  • #Reports
  • #CSV
  • #Reconciliation

Try crypto payments in test mode

No setup or monthly fees. Experiment as much as you like in test mode and go live when you are ready.

More guides that go well with this one.