Searching

Search Fields

We support three types of search fields:

  • Text fields
  • Multiple value fields
  • Range fields

Learn more about working with search results.

Text fieldsAnchorIcon

Text Fields can be searched using 5 operators: Is, IsNot, StartsWith, EndsWith, and Contains. Each search Text Field can't exceed 255 characters. Here is an example searching for customer email on a transaction.

  1. C#
var searchRequest = new TransactionSearchRequest().
    CustomerEmail.Is("john.smith@example.com");

var searchRequest = new TransactionSearchRequest().
    CustomerEmail.IsNot("john.smith@example.com");

var searchRequest = new TransactionSearchRequest().
    CustomerEmail.StartsWith("john.smith");

var searchRequest = new TransactionSearchRequest().
    CustomerEmail.EndsWith("example.com");

var searchRequest = new TransactionSearchRequest().
    CustomerEmail.Contains("smith");

Multiple value fieldsAnchorIcon

Search fields that accept multiple values support two operators: Is and IncludedIn.

  1. C#
var searchRequest = new TransactionSearchRequest()
  .Status.Is(TransactionStatus.AUTHORIZED);

var searchRequest = new TransactionSearchRequest()
  .Status.IncludedIn(TransactionStatus.AUTHORIZED,
    TransactionStatus.SUBMITTED_FOR_SETTLEMENT);

Range fieldsAnchorIcon

Ranges support four operators: Is, Between, GreaterThanOrEqualTo, and LessThanOrEqualTo.

For non-time-based filters, between is inclusive and GreaterThanOrEqualTo and LessThanOrEqualTo are respected as written.

For time-based filters, the lower bound will always be inclusive and the upper bound will always be exclusive, regardless of the range operator used. Additionally, one minute is automatically added to the upper bound.

Example: A search condition of "between 12/17/2015 16:00 and 12/17/2015 17:00" will include transactions created at 12/17/2015 16:00:00 and 12/17/2015 17:00:59 but will not include a transaction created at 12/17/2015 17:01:00.

  1. C#
var searchRequest = new TransactionSearchRequest().
    Amount.Is(15.00M);

var searchRequest = new TransactionSearchRequest().
    Amount.GreaterThanOrEqualTo(10.00M);

var searchRequest = new TransactionSearchRequest().
    Amount.LessThanOrEqualTo(20.00M);

var searchRequest = new TransactionSearchRequest().
    Amount.Between(10.00M, 20.00M);

If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more