RocketKOR

BI Search Recipients

Gather Business Insights (BI) by analyzing one or more Recipient Accounts.

Use this API to search Recipient Accounts based on filters such as the account status, Recipient name, and Recipient contact details. The API returns a queryId that can be used to query the search status and retrieve the results.

Endpoint

POST /v1/search/recipients

Authorization Header

Authorization: Bearer <access_token>

Request Body

businessAccountIds  REQUIRED

string (UUID)

Provide a list of one or more Business Account IDs. Recipient Accounts belonging to these Business Accounts will be included in the search.

  • If you provide a single Business Account ID, it must be the Business Account associated with the request access token.
  • If you provide a Parent Business Account ID, the associated Child Business Accounts will also be included in the search.

fromCreatedAt

string (date), required format: yyyy-mm-dd

Date the Recipient Account was created in RocketKOR. This filter will return Recipient Accounts created on or after this date.

toCreatedAt

string (date), required format: yyyy-mm-dd

Date the Recipient Account was created in RocketKOR. This filter will return Recipient Accounts created on or before this date.

recipientStatus

string enum, values: ACTIVE, SUSPENDED, DELETED

Recipient Account status. The following values are supported:

  • ACTIVE  Recipient Account is active.
  • SUSPENDED  Recipient Account is inactive.
  • DELETED  Recipient Account has been deleted.

recipientType

string enum, values: INDIVIDUAL, BUSINESS

Type of Recipient Account.

firstName

string, max length: 40, min length: 1

Recipient’s first name.

middleName

string, max length: 40, min length: 1

Recipient’s middle name.

lastName

string, max length: 40, min length: 1

Recipient’s last name.

doingAsBusinessName

string, max length: 40, min length: 1

This filter is available for Business Recipient Accounts.

Business operating name. Used by the business in marketing and day-to-day activities.

email

string (email), max length: 320

Recipient’s email address.

phoneNumber

string

format: [+] [country code] [phone number including area code]

Recipient’s phone number. The phone number can be entered in any of the following formats:

  • [+] [country code] [phone number including area code] (example: +14151234)
  • [country code] [phone number including area code] (example: 14151234)
  • [phone number including area code] (example: 4151234)

RocketKOR will convert the phone number to E.164 format (example: +14151234).

resultFormat

string enum, values: CSV, JSON

Type of file used to store the search results.

Returns

Returns a queryId. Use this queryId to query the search status and retrieve the search results.

queryId

string (UUID)

ID representing the search results.

SAMPLE REQUEST

				
					{
  "businessAccountIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "fromCreatedAt": "2023-01-01",
  "toCreatedAt": "2023-01-31",
  "recipientStatus": [
    "ACTIVE"
  ],
  "recipientType": [
    "BUSINESS"
  ],
  "firstName": "Jack",
  "middleName": "Fred",
  "lastName": "Smith",
  "doingAsBusinessName": "ACME Corp.",
  "email": "jsmith@acme.com",
  "phoneNumber": "+14151234",
  "resultFormat": "CSV"
}
				
			

SAMPLE RESPONSE

				
					{
  "queryId": "88fe3238-8b6c-4de7-a77a-05fe43541d56"
}