Skip to main content
POST
/
merchant
/
metric
/
event
/
current_value
Merchant Metric Event Current Value
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
metricCode
string<string>
required

MetricCode

email
string<string>

Email, UserId, ExternalUserId, or Email provides one of three options

externalUserId
string<string>

ExternalUserId, UserId, ExternalUserId, or Email provides one of three options

productId
integer<int64>

default product will use if productId not specified and subscriptionId is blank

userId
integer<int64>

UserId, UserId, ExternalUserId, or Email provides one of three options

Response

200 - application/json
code
integer<int>
data
object
message
string<string>
redirect
string<string>
requestId
string<string>