LogoLogo
  • Getting Started
  • Sources
    • Overview
    • Data Ingestion
  • Transaction Matching
    • Overview
    • Matching Rules
  • Reconciliation
    • Overview
    • Payment Flows
  • INTEGRATION GUIDES
    • Payment Service Providers
      • How-to Guide: Generating Amazon Pay’s Payments Report
      • How-to Guide: Generating Braintree’s Transaction Report
      • How-to Guide: Generating Braintree API Credentials
      • How-to Guide: Generating Checkout's Settlement Reports
      • How-to Guide: Generating Checkout.com API Token
      • How-to Guide: Generating Klarna’s Settlements Report
      • How-to Guide: Generating Klarna’s SFTP Credentials
      • How-to Guide: Generating Method's API Key
      • How-to Guide: Generating PayPal’s Activity Report
      • How-to Guide: Generating PayPal API Credentials
      • How-to Guide: Generating Recurly’s Transactions Report
      • How-to Guide: Generating Stripe’s Payout Reconciliation Report
      • How-to Guide: Exporting Stripe Invoices
      • Generating & using Stripe API key
      • How-to Guide: Generating Worldpay's Settlement Report
      • How-to Guide: Generating Vitesse API Token
      • How-to Guide: Generating Adyen's API Token
      • How-to Guide: Generating Ramp API Credentials
    • Banks
      • How-to Guide: Generating Mercury’s API Token
      • How-to Guide: Generating Wells Fargo’s Account Activity Report
      • How-to Guide: Connect Bank of America CashPro to Ledge
    • ERPs & Platforms
      • How-to Guide: Set Up the Ledge Integration on NetSuite
      • How-to Guide: Connect NetSuite to Ledge (without installing a bundle)
      • How-to Guide: Connect Sage Intacct to Ledge
      • How-to Guide: Generating Shopify API token
    • Databases & Data Warehouses
      • How-to Guide: Locating The Required Details to Connect Snowflake
      • How-to Guide: Locating The Required Details to Connect Postgres
      • How-to Guide: Locating The Required Details to Connect Microsoft SQL Server
  • API Reference
    • Getting Started
    • Fundamentals
      • Authentication
      • Fine-Grained Permissions
      • Pagination
      • Status Codes
      • Error Handling
    • Sources
    • Transactions
      • Querying
  • Changelog
    • 2024
      • Fall Product Releases
      • Spring Product Releases
Powered by GitBook
On this page
  • SearchQuery
  • SearchFilter
  1. API Reference
  2. Transactions

Querying

Ledge uses a simple composable typed filter.

SearchQuery

{
  "path": "string",
  "search": {}
}
Attribute
Definition

path string

Name of transaction field to apply the query to

search SearchFilter

Search filter to apply, see below.

SearchFilter

The SearchFilter object can be any one of the following:

Text filter

{
  "type": "string",
  "value": "string"|[],
  "exact" : true,
}

Attribute
Definition

type string

One of the following values: string, boolean, number, money, date. For the text filter, this is a constant string.

value string | string[]

The text or texts to search for.

Boolean filter

{
  "type": "boolean",
  "value" : true
}
Attribute
Definition

type string

One of the following values: string, boolean, number, money, date.For the boolean filter, this is a constant boolean.

value boolean

The filter value to apply.

Date filter

{
  "type": "date",
  "value" : {}
}
Attribute
Definition

type string

One of the following values: string, boolean, number, money, date. For the number filter, this is a constant number.

value NumberRange

A NumberRange filter (see below). All numbers in millseconds.

Number filter

{
  "type": "number",
  "value" : 0|[]|{}
}
Attribute
Definition

type string

One of the following values: string, boolean, number, money, date. For the number filter, this is a constant number.

value number | number[] | NumberExpression | NumberRange

The filter value to apply, which can be a single value, multiple values, or more specific filters (see below).

Money filter

{
  "type": "money"
  "currencies" : [],
  "value" : []
}
Attribute
Definition

type string

One of the following values: string, boolean, number, money, date. For the money filter, this is a constant money.

currencies string

A collection of ISO 4217 currency code. optional

value number | number[] | NumberExpression | NumberRange

The filter value to apply, which can be a single value, multiple values, or more specific filters (see below).

NumberExpression

{
  "operator": "string",
  "value": 0
}
Attribute
Definition

operator string

One of the following operator values: ne, ge, gt, le, lt.

value number

The filter value to apply.

NumberRange

{
  "start": 0,
  "end": 0,
  "includeStart": true,
  "includeEnd": true,
}
Attribute
Definition

start number

The minimum value in the range.

end number

The maximum value in the range.

includeStart boolean

Is inclusive on the lower bound. optional

includeEnd boolean

Is inclusive on the upper bound. optional

PreviousTransactionsNext2024

Last updated 4 months ago