Skip to main content
GET
/
merchant
/
metric
/
user
/
history
/
metric_by_invoice
Query User History Limit Metric By Invoice (History Query Mode, limit_metered and limit_recurring only)
curl --request GET \
  --url https://api.unibee.dev/merchant/metric/user/history/metric_by_invoice \
  --header 'Authorization: Bearer <token>'
{
  "code": 123,
  "data": {
    "userHistoryMetric": {
      "invoiceId": "<string>",
      "limitStats": [
        {
          "maxEventId": 123,
          "metricLimit": {
            "MerchantId": 123,
            "MetricId": 123,
            "PlanLimits": [
              {
                "createTime": 123,
                "gmtModify": 123,
                "id": 123,
                "merchantId": 123,
                "merchantMetric": {
                  "aggregationProperty": "<string>",
                  "aggregationType": 123,
                  "archived": true,
                  "code": "<string>",
                  "createTime": 123,
                  "gmtModify": 123,
                  "id": 123,
                  "merchantId": 123,
                  "metaData": {},
                  "metricDescription": "<string>",
                  "metricName": "<string>",
                  "type": 123,
                  "unit": "<string>"
                },
                "metricId": 123,
                "metricLimit": 123,
                "planId": 123,
                "quantity": 123
              }
            ],
            "TotalLimit": 123,
            "UserId": 123,
            "aggregationProperty": "<string>",
            "aggregationType": 123,
            "code": "<string>",
            "metricName": "<string>",
            "quotaAdjustments": [
              {
                "adjustmentTime": 123,
                "id": 123,
                "merchantMemberEmail": "<string>",
                "merchantMemberId": 123,
                "previousPeriodLimit": 123,
                "previousPeriodUsed": 123,
                "quotaAmount": 123,
                "quotaType": "<string>",
                "reason": "<string>"
              }
            ],
            "type": 123
          },
          "minEventId": 123,
          "totalLimit": 123,
          "usedValue": 123
        }
      ]
    }
  },
  "merchantId": 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.

Query Parameters

invoiceId
string<string>
required

The unique id of invoice

Response

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