Retrieve Ledger Entries

Facades: merchant

Overview

Retrieve a list of ledgers by date range using the merchant facade.

Parameters

ParameterDescription
currencyThe three digit currency string for the ledger to retrieve.
startDateThe first date for the query filter.
endDateThe last date for the query filter.

Example

const oneMonthAgo = new Date();
oneMonthAgo.setDate(oneMonthAgo.getDate() - 30);

const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);

const ledgerEntries = await client.getLedgerEntries(Currency.USD, oneMonthAgo, tomorrow);