timestamp
property of the event, which represents when the action took place for billing purposes and is important in order to place the usage in a specific billing period. To account for reporting delays, your system can report events to the Orb API up to 12 hours after the timestamp
, which is called the grace period for event reporting. This is especially important towards the end of a billing cycle, because a pending invoice might still be subject to changes for 12 hours after the end of the period and will not be finalized until the grace period has passed. The grace period is configurable at an account-wide level.
PUT
verb on event resources. For a given event ID (which is the same as an event’s idempotency_key
) this endpoint can be used to change any part of the event, excluding its timestamp
and associated customer ID. As with timeframe-based amendments, Orb never deletes the original event, but it is marked as archived and not used for billing purposes.
A single-event amendment is ideal in cases where there is a specific dispute (e.g. a transaction needs to be reversed). In cases where the status of a resource changes over time, Orb recommends sending an additional usage event rather than amending the existing one in order to maintain both pieces of state.