GET
/
v1
/
activity
/
businesses
/
{businessId}
/
activities
Fetch business activities
curl --request GET \
  --url https://sandbox.layerfi.com/v1/activity/businesses/{businessId}/activities \
  --header 'Authorization: Bearer <token>'
[
  {
    "type": "Categorize_Transaction_Activity",
    "transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "categorizationMethod": "SMS",
    "categorization": {
      "category": {
        "type": "AccountId",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    },
    "createdAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch activities for

Query Parameters

start_date
string<date-time>

Filter activities by start date. Activities with a start date on or after this date will be included. ISO 8601 date format.

end_date
string<date-time>

Filter activities by end date. Activities with an end date on or before this date will be included. ISO 8601 date format.

sort_order
enum<string>

Sort order for the activities. Defaults to ascending order

Available options:
ASC,
ASCENDING,
DES,
DESC,
DESCENDING

Response

createdAt
string<date-time>
required

Timestamp of when this activity was created.

transactionId
string<uuid>
required

ID of the transaction to categorize in this activity.

categorizationMethod
enum<string>
required

The categorization method for this activity.

Available options:
SMS,
API,
LAYER_AUTO,
LAYER_MANUAL
categorization
object
required

The categorization for the transaction

type
string

Resource type. Value will be 'Categorize_Transaction_Activity'.

Example:

"Categorize_Transaction_Activity"