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
- Organization
platform - Permission
platform:customer_accounts_view
Parameters
| Parameter | What it does |
|---|---|
platformOrgIdpath, uuidrequired | Your platform's organization id. platformOrgId is the platform response's org_id. |
customerOrgIdpath, uuidrequired | customerOrgId is the customer response's org_id. |
beforequery, date-time | Return items older than this ISO-8601 timestamp. Pass next_before from the previous page. |
limitquery, integer | How many items to return. 1 to 200, default 50 |
Response 200
Audit trail for the organization
| Field | What it does |
|---|---|
itemsActivityEvent[]required | Records in this page. |
items[].idstring (uuid)required | Identifier of this record. |
items[].occurred_atstring (date-time)required | When the activity happened, as an ISO-8601 timestamp. |
items[].actor_typeenumrequired | Whether a person, an API key, or the system did this. One of: user, staff, system, partner, api_key. One of |
items[].actor_idstringrequired | Id of the person, API key, or system that did this. |
items[].actor_namestringrequired | Name of whoever did this. |
items[].on_behalfbooleanrequired | Performed by Payezy staff or a platform partner on the customer's behalf |
items[].via_platform_namestring | Set when a platform did this, either in view-as or with a customer key that platform minted |
items[].actionstringrequired | What happened, such as payment.created or customer.updated. |
items[].resource_typestringrequired | Kind of record this activity is about, such as a payment or a customer. |
items[].resource_idstringrequired | Id of the record this activity is about. |
items[].reasonstringrequired | Why 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. |