cURL
curl --request POST \
--url https://us.api.flexprice.io/v1/activity \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"actions": [
"<string>"
],
"actor_id": "<string>",
"actor_types": [
"<string>"
],
"cursor": "<string>",
"customer_id": "<string>",
"end_time": "2023-11-07T05:31:56Z",
"entity_id": "<string>",
"entity_type": "<string>",
"expand": [
"<string>"
],
"limit": 123,
"request_id": "<string>",
"start_time": "2023-11-07T05:31:56Z"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.activity.list_activity()
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.activity.listActivity({});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Activity.ListActivity(ctx, types.ListActivityRequest{})
if err != nil {
log.Fatal(err)
}
if res.ListActivityResponse != nil {
// handle response
}
}{
"items": [
{
"action": "<string>",
"actor": {
"id": "<string>",
"label": "<string>",
"type": "<string>"
},
"customer_id": "<string>",
"entity": {
"id": "<string>",
"label": "<string>",
"type": "<string>"
},
"id": "<string>",
"ip": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"request_id": "<string>",
"source": "<string>",
"state": {},
"user_agent": "<string>"
}
],
"pagination": {
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
}
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Activity
List activity
Use when you need the audit trail of changes to billing entities: who changed what, when, from where. Filter by entity, customer, actor, action or request; pages are newest first.
POST
/
activity
cURL
curl --request POST \
--url https://us.api.flexprice.io/v1/activity \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"actions": [
"<string>"
],
"actor_id": "<string>",
"actor_types": [
"<string>"
],
"cursor": "<string>",
"customer_id": "<string>",
"end_time": "2023-11-07T05:31:56Z",
"entity_id": "<string>",
"entity_type": "<string>",
"expand": [
"<string>"
],
"limit": 123,
"request_id": "<string>",
"start_time": "2023-11-07T05:31:56Z"
}
'from flexprice import Flexprice
with Flexprice(
api_key_auth="<YOUR_API_KEY_HERE>",
) as f_client:
res = f_client.activity.list_activity()
# Handle response
print(res)import { Flexprice } from "@flexprice/sdk";
const flexprice = new Flexprice({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await flexprice.activity.listActivity({});
console.log(result);
}
run();package main
import(
"context"
flexprice "github.com/flexprice/go-sdk/v2"
"github.com/flexprice/go-sdk/v2/models/types"
"log"
)
func main() {
ctx := context.Background()
s := flexprice.New(
flexprice.WithSecurity("<YOUR_API_KEY_HERE>"),
)
res, err := s.Activity.ListActivity(ctx, types.ListActivityRequest{})
if err != nil {
log.Fatal(err)
}
if res.ListActivityResponse != nil {
// handle response
}
}{
"items": [
{
"action": "<string>",
"actor": {
"id": "<string>",
"label": "<string>",
"type": "<string>"
},
"customer_id": "<string>",
"entity": {
"id": "<string>",
"label": "<string>",
"type": "<string>"
},
"id": "<string>",
"ip": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"request_id": "<string>",
"source": "<string>",
"state": {},
"user_agent": "<string>"
}
],
"pagination": {
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
}
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}{
"code": "http_client_error",
"http_status_code": 123,
"message": "<string>"
}Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
Filters

