Meter an event
Changed onMeter an event
Request
- Base URLhttps://api.revenium.io/meter
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"transactionId": "123e4567-e89b-12d3-a456-426614174000",
"subscriberCredentialId": "The credential associated with the event. Visible on the subscriber credentials in page in the Revenium platform."
}Response
API response successfully metered
Example response
{
"object": "metering",
"label": "Metering Response",
"created": "2025-03-02T15:04:05Z",
"updated": "2025-03-02T15:04:06Z",
"id": "abc123",
"signature": "signature123"
}Changes
- breaking
the request property
became required - breaking
the
request property type changed fromobjecttostring - breaking
removed the required property
from the response with the status - warning
removed the request property
- info
added the new optional request property
- info
the
request property default valueUNKNOWNwas removed - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
added the required property
to the response with the status
- breaking
- breaking
the
request property type changed fromstringtoobject - breaking
removed the required property
from the response with the status - warning
removed the request property
- info
added the new optional request property
- info
the request property
became optional - info
the
request property default valueUNKNOWNwas added - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
to the response with the status
- breaking