GET
/
usage
/
{id}
curl --request GET \
  --url https://api.sulu.sh/v0/usage/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "usageEvent",
  "idempotencyKey": "<string>",
  "customerId": "<string>",
  "description": "<string>",
  "merchantId": "<string>",
  "consumerId": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "properties": [
    {
      "billableMetricId": "<string>",
      "quantity": 123,
      "price": "<string>"
    }
  ],
  "metadata": {},
  "billing": {
    "price": 123,
    "billingEventId": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier for a usage event

Response

200
application/json
Usage event details

The response is of type object.