OurPay accepts usage as immutable events. Instrument the operation in your application, then call the official SDK’s events.ingest method with the customer, an event name, and the values your meter aggregates. These recipes use only @ourpay-dev/sdk or ourpay-sdk:
Give every logical event a stable external_id. Retries with the same ID are deduplicated, which prevents accidental double billing.