-
Notifications
You must be signed in to change notification settings - Fork 9
EE-2366: Add Member Events page #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Conversation
Streeter8
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few things we can touch up, but this is looking good otherwise!
| [ | ||
| { | ||
| "account_id": 100, | ||
| "event_timestamp": "@D:2025-12-02T11:23:47", | ||
| "event_type_id": 300, | ||
| "event_monetary_value": 8.0, | ||
| "inserted_at": "@D:2025-12-02T11:23:47" | ||
| "mailing_id": null, | ||
| "member_id": 555, | ||
| }, | ||
| { | ||
| "account_id": 100, | ||
| "event_timestamp": "@D:2025-12-02T11:23:47", | ||
| "event_type_id": 300, | ||
| "event_monetary_value": 2.0, | ||
| "inserted_at": "@D:2025-12-02T11:23:47" | ||
| "mailing_id": null, | ||
| "member_id": 444, | ||
| } | ||
| ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An adjustment to the sample request body to show different variations of the accepted request format
| [ | |
| { | |
| "account_id": 100, | |
| "event_timestamp": "@D:2025-12-02T11:23:47", | |
| "event_type_id": 300, | |
| "event_monetary_value": 8.0, | |
| "inserted_at": "@D:2025-12-02T11:23:47" | |
| "mailing_id": null, | |
| "member_id": 555, | |
| }, | |
| { | |
| "account_id": 100, | |
| "event_timestamp": "@D:2025-12-02T11:23:47", | |
| "event_type_id": 300, | |
| "event_monetary_value": 2.0, | |
| "inserted_at": "@D:2025-12-02T11:23:47" | |
| "mailing_id": null, | |
| "member_id": 444, | |
| } | |
| ] | |
| [ | |
| { | |
| "event_timestamp": "@D:2025-12-02T11:23:47", | |
| "event_type_id": 300, | |
| "event_monetary_value": null, | |
| "mailing_id": null, | |
| "member_id": 555, | |
| }, | |
| { | |
| "event_timestamp": "@D:2025-12-02T11:23:47", | |
| "event_type": "Purchased Tickets", | |
| "event_monetary_value": 2.0, | |
| "mailing_id": 201, | |
| "email": "emma@myemma.com", | |
| } | |
| ] |
| "account_id": 100, | ||
| "created_at": "@D:2025-11-24T10:23:10", | ||
| "display_name": "Visited Website", | ||
| "event_type": "visited_website", | ||
| "event_type_id": 300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
account_idis interpreted from the urlcreated_atis set on DB writeevent_type_idis generated by the db
Since these values are not taken from the request body, we should remove them from the sample request body
| "account_id": 100, | |
| "created_at": "@D:2025-11-24T10:23:10", | |
| "display_name": "Visited Website", | |
| "event_type": "visited_website", | |
| "event_type_id": 300 | |
| "display_name": "Visited Website", | |
| "event_type": "visited_website", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Streeter8 This is the example response body, not request body.
Theese are the params described for this endpoint.
<td class="field-body">
<ul class="first simple">
<li><strong>event_type</strong> (<em>string</em>) – Required. The type of the event.</li>
<li><strong>display_name</strong> (<em>string</em>) – Required. A name for displaying the event in the UI.</li>
</ul>
</td>
And then this is the sample response:
{
"account_id": 100,
"created_at": "@D:2025-11-24T10:23:10",
"display_name": "Visited Website",
"event_type": "visited_website",
"event_type_id": 300
}
EE-2366 Add Member Events page
The response data was checked against Postman.
Screenshots from Emma API
Slack Post