curl --request POST \
--url https://api.unibee.dev/merchant/metric/event/current_value \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metricCode": "<string>",
"email": "[email protected]",
"externalUserId": "<string>",
"productId": 123,
"userId": 123
}
'{
"code": 123,
"data": {
"currentValue": 123
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}curl --request POST \
--url https://api.unibee.dev/merchant/metric/event/current_value \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metricCode": "<string>",
"email": "[email protected]",
"externalUserId": "<string>",
"productId": 123,
"userId": 123
}
'{
"code": 123,
"data": {
"currentValue": 123
},
"message": "<string>",
"redirect": "<string>",
"requestId": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
MetricCode
Email, UserId, ExternalUserId, or Email provides one of three options
ExternalUserId, UserId, ExternalUserId, or Email provides one of three options
default product will use if productId not specified and subscriptionId is blank
UserId, UserId, ExternalUserId, or Email provides one of three options