curl --request POST \
--url https://api.unibee.top/merchant/metric/event/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"aggregationUniqueId": "<string>",
"aggregationValue": 123,
"email": "account@unibee.dev",
"externalEventId": "<string>",
"externalUserId": "<string>",
"metricCode": "<string>",
"metricProperties": {},
"productId": 123,
"userId": 123
}'
{
"code": 123,
"data": {
"merchantMetricEvent": {
"aggregationPropertyData": "<string>",
"aggregationPropertyInt": 123,
"aggregationPropertyString": "<string>",
"chargeInvoiceId": "<string>",
"createTime": 123,
"eventCharge": {
"chargeAmount": 123,
"chargePricing": {
"chargeType": 123,
"graduatedAmounts": [
{
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
}
],
"metricId": 123,
"standardAmount": 123,
"standardStartValue": 123
},
"currency": "<string>",
"currentValue": 123,
"graduatedStep": {
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
},
"planId": 123,
"totalChargeAmount": 123,
"unitAmount": 123
},
"externalEventId": "<string>",
"id": 123,
"merchantId": 123,
"metricId": 123,
"metricLimit": 123,
"subscriptionIds": "<string>",
"subscriptionPeriodEnd": 123,
"subscriptionPeriodStart": 123,
"used": 123,
"userId": 123
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
curl --request POST \
--url https://api.unibee.top/merchant/metric/event/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"aggregationUniqueId": "<string>",
"aggregationValue": 123,
"email": "account@unibee.dev",
"externalEventId": "<string>",
"externalUserId": "<string>",
"metricCode": "<string>",
"metricProperties": {},
"productId": 123,
"userId": 123
}'
{
"code": 123,
"data": {
"merchantMetricEvent": {
"aggregationPropertyData": "<string>",
"aggregationPropertyInt": 123,
"aggregationPropertyString": "<string>",
"chargeInvoiceId": "<string>",
"createTime": 123,
"eventCharge": {
"chargeAmount": 123,
"chargePricing": {
"chargeType": 123,
"graduatedAmounts": [
{
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
}
],
"metricId": 123,
"standardAmount": 123,
"standardStartValue": 123
},
"currency": "<string>",
"currentValue": 123,
"graduatedStep": {
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
},
"planId": 123,
"totalChargeAmount": 123,
"unitAmount": 123
},
"externalEventId": "<string>",
"id": 123,
"merchantId": 123,
"metricId": 123,
"metricLimit": 123,
"subscriptionIds": "<string>",
"subscriptionPeriodEnd": 123,
"subscriptionPeriodStart": 123,
"used": 123,
"userId": 123
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
curl --request POST \
--url https://api.unibee.top/merchant/metric/event/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"aggregationUniqueId": "<string>",
"aggregationValue": 123,
"email": "account@unibee.dev",
"externalEventId": "<string>",
"externalUserId": "<string>",
"metricCode": "<string>",
"metricProperties": {},
"productId": 123,
"userId": 123
}'
{
"code": 123,
"data": {
"merchantMetricEvent": {
"aggregationPropertyData": "<string>",
"aggregationPropertyInt": 123,
"aggregationPropertyString": "<string>",
"chargeInvoiceId": "<string>",
"createTime": 123,
"eventCharge": {
"chargeAmount": 123,
"chargePricing": {
"chargeType": 123,
"graduatedAmounts": [
{
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
}
],
"metricId": 123,
"standardAmount": 123,
"standardStartValue": 123
},
"currency": "<string>",
"currentValue": 123,
"graduatedStep": {
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
},
"planId": 123,
"totalChargeAmount": 123,
"unitAmount": 123
},
"externalEventId": "<string>",
"id": 123,
"merchantId": 123,
"metricId": 123,
"metricLimit": 123,
"subscriptionIds": "<string>",
"subscriptionPeriodEnd": 123,
"subscriptionPeriodStart": 123,
"used": 123,
"userId": 123
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
curl --request POST \
--url https://api.unibee.top/merchant/metric/event/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"aggregationUniqueId": "<string>",
"aggregationValue": 123,
"email": "account@unibee.dev",
"externalEventId": "<string>",
"externalUserId": "<string>",
"metricCode": "<string>",
"metricProperties": {},
"productId": 123,
"userId": 123
}'
{
"code": 123,
"data": {
"merchantMetricEvent": {
"aggregationPropertyData": "<string>",
"aggregationPropertyInt": 123,
"aggregationPropertyString": "<string>",
"chargeInvoiceId": "<string>",
"createTime": 123,
"eventCharge": {
"chargeAmount": 123,
"chargePricing": {
"chargeType": 123,
"graduatedAmounts": [
{
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
}
],
"metricId": 123,
"standardAmount": 123,
"standardStartValue": 123
},
"currency": "<string>",
"currentValue": 123,
"graduatedStep": {
"endValue": 123,
"flatAmount": 123,
"perAmount": 123,
"startValue": 123
},
"planId": 123,
"totalChargeAmount": 123,
"unitAmount": 123
},
"externalEventId": "<string>",
"id": 123,
"merchantId": 123,
"metricId": 123,
"metricLimit": 123,
"subscriptionIds": "<string>",
"subscriptionPeriodEnd": 123,
"subscriptionPeriodStart": 123,
"used": 123,
"userId": 123
}
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}