Rejected events of the last 24 hours, by error code and by hour
Counts from the same log as `listRejectedEvents`. Only the rejected side is here: the number of accepted events per hour is not kept anywhere cheap to read, so there is no accepted-versus-rejected ratio. Needs the `usage:read` permission.
Loading the operation...
What a code would take off a purchase (claims nothing) POST
For a checkout page of your own. The answer is the discount or the bonus credits, or an error with a coupon.* key: coupon.expired, coupon.exhausted, coupon.not_applicable, coupon.currency_mismatch, coupon.already_used and the others in the error key list.
Events refused by POST /v1/events, newest first GET
Every event `POST /v1/events` (or the corrections route) answered `rejected` is kept here, so a developer can see later what went wrong: the `error_code` and the API's `error_message`, the meter code and customer id as sent, the event time and the idempotency key. The properties and the quantity are never kept. The log of a tenant (an environment) holds the last 14 days and at most 10 000 rows, the oldest dropped first. A row is written just after the answer, best effort: it can be a moment late, and a rejection is missing when the database could not take the write or a burst of rejections outran the writer. Needs the `usage:read` permission.