# Ingest business events via ActiveGate

**URL:** <https://community.dynatrace.com/t/ingest-business-events-via-activegate/42128>\
**Category:** Dynatrace Tips\
**Tags:** activegate, business-events\
**Created:** [October 17, 2023, 3:47pm UTC](https://community.dynatrace.com/t/ingest-business-events-via-activegate/42128 "2023-10-17T15:47:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [October 17, 2023, 3:47pm UTC](https://community.dynatrace.com/t/ingest-business-events-via-activegate/42128/1 "2023-10-17T15:47:33Z")

</div>

In our most recent [Dynatrace App Developer Office Hours](https://community.dynatrace.com/category/events) we got a question where I am following up now:

Is it possible to ingest business events via ActiveGate?

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [October 17, 2023, 3:54pm UTC](https://community.dynatrace.com/t/ingest-business-events-via-activegate/42128/2 "2023-10-17T15:54:50Z")

</div>

Yes, it is possible to ingest business events via an active gate. I have just verified it in one of my environments.

Steps:

- create an [OAuth client via myaccount](https://www.dynatrace.com/support/help/dynatrace-api/basics/dynatrace-api-authentication/account-api-authentication)&nbsp;with scopes&nbsp;storage:events:write storage:buckets:read
- request a [bearer token from dynatrace SSO](https://www.dynatrace.com/support/help/shortlink/account-api-authentication#request-a-token)
- make the call

Here just a business example I copy and pasted [from help](https://www.dynatrace.com/support/help/platform-modules/business-analytics/ba-api-ingest#request-pure-json-single-event)

Please note to adjust the URL from the snippet. Also I am ignoring the SSL check with --insecure parameter

```markup
curl --insecure --location --request POST 'https://activeGateIP or URL>:9999/e/<environment id>/api/v2/bizevents/ingest' \
--header 'Authorization: Bearer <bearer token>' \
--header 'Content-Type: application/json' \
--data-raw '{
   "id":"2",
   "paymentType":"paypal",
   "plannedDeliveryDate":"01.01.2024",
   "event.type":"com.bizevent.single",
   "event.provider":"custom.curl",
   "total":234,
   "customer":{
      "firstName":"John",
      "lastName":"Doe"
   },
   "orderItemsProductIDs":[
      "PR-102002002",
      "QZ-123232"
   ]
}'

```

FYI&nbsp;[@Nick-Montana](https://community.dynatrace.com/user/48870)

Best,  
Sini

---

<div class="post-metadata">

**Author:** ![Nick-Montana](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nick-montana/32/2051_2.png) [@Nick-Montana](https://community.dynatrace.com/u/Nick-Montana)\
**Post date:** [October 23, 2023, 1:26am UTC](https://community.dynatrace.com/t/ingest-business-events-via-activegate/42128/3 "2023-10-23T01:26:11Z")

</div>

Thanks for the confirmation!
