Facades: merchant
Overview
Retrieve a list of ledgers by date range using the merchant facade.
Parameters
| Parameter | Description |
|---|---|
| currency | The three digit currency string for the ledger to retrieve. |
| startDate | The first date for the query filter. |
| endDate | The 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);