The unit21_id and previously_existed fields are being deprecated and will no longer be returned in the response body for this endpoint after September 30, 2023. These fields should be ignored. More information.
Creates a new event, sending event data in the request body.
Two objects are required: general_data and either transaction_data or action_data. general_data requires the fields: event_id, event_type, and event_time. transaction_data requires only the field amount.
If we receive a request to create an event with an event_id that already exists in our system, we treat it as an upsert and perform an update on the existing event. It is not possible to update general_data.event_id once the event has been created. All other values can be overwritten.