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 '{
  "email": "account@unibee.dev",
  "externalUserId": "<string>",
  "metricCode": "<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>
default:account@unibee.dev

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

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

userId
integer

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

Response

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