Payezydevelopers
Sandbox

API reference / Act as a platform

List a customer's activity

GET/v1/platforms/{platformOrgId}/customers/{customerOrgId}/activity

Acts on a linked customer with the platform's own key or team (platform:customer_accounts_view). Same as GET /v1/orgs/{orgId}/activity.

Before you call it

  • Organizationplatform
  • Permissionplatform:customer_accounts_view

Parameters

ParameterWhat it does
platformOrgIdpath, uuidrequiredYour platform's organization id. platformOrgId is the platform response's org_id.
customerOrgIdpath, uuidrequiredcustomerOrgId is the customer response's org_id.
beforequery, date-timeReturn items older than this ISO-8601 timestamp. Pass next_before from the previous page.
limitquery, integerHow many items to return.

1 to 200, default 50

Response 200

Audit trail for the organization

FieldWhat it does
itemsActivityEvent[]requiredRecords in this page.
items[].idstring (uuid)requiredIdentifier of this record.
items[].occurred_atstring (date-time)requiredWhen the activity happened, as an ISO-8601 timestamp.
items[].actor_typeenumrequiredWhether a person, an API key, or the system did this. One of: user, staff, system, partner, api_key.

One of user staff system partner api_key

items[].actor_idstringrequiredId of the person, API key, or system that did this.
items[].actor_namestringrequiredName of whoever did this.
items[].on_behalfbooleanrequiredPerformed by Payezy staff or a platform partner on the customer's behalf
items[].via_platform_namestringSet when a platform did this, either in view-as or with a customer key that platform minted
items[].actionstringrequiredWhat happened, such as payment.created or customer.updated.
items[].resource_typestringrequiredKind of record this activity is about, such as a payment or a customer.
items[].resource_idstringrequiredId of the record this activity is about.
items[].reasonstringrequiredWhy this happened, or why the change is being made.
next_beforestring (date-time)Pass this value as the before query parameter to load the next page of older items.