Ingest Event
Ingest a raw metering event. The event is published to the meter-events PubSub topic for processing by the meters service.
Authorizations
API key authentication
Body
- Option 1
- Option 2
CloudEvents type. Must match an eventType configured on a BillableMetric.
Event source URI identifying the application.
Customer or entity ID this event relates to. Required unless externalSubject is provided.
Event payload containing the metering data.
Your own customer identifier, matched against the customer's externalId. Fallback for when the Paygentic customer ID is not known — prefer subject when it is. Events reported before the customer exists are linked retroactively once a customer with this externalId is created. Resolution is eventually consistent: after an externalId is removed or reassigned, events may resolve to the previous customer for up to one hour. If subject is also provided, subject takes precedence and externalSubject is recorded but not used for resolution.
255^[a-zA-Z0-9_-]+$Organization/merchant ID. Defaults to the authenticated user's organization. Platform users can specify a different organization.
Event timestamp. Defaults to server time if not provided.
User-provided deduplication key. If not provided, a unique key is generated.
Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
255^[a-zA-Z0-9_-]+$Response
Event accepted for processing
Server-generated event ID.
event Resolved customer ID. Absent when the event was reported with an externalSubject that does not match a customer yet.
The merchant's own customer identifier the event was reported with.
Optional external identifier for cross-referencing with external systems. Alphanumeric characters, hyphens, and underscores only.
255^[a-zA-Z0-9_-]+$