A task finishing and a task becoming billable are different state changes. If your AI product charges for accepted work, keep those changes separate from the start.

An HTTP success code proves that a request returned. It does not prove that an image met the brief, a lead met the qualification rules or a support request was resolved.

Define the event before choosing the meter

Start with the customer-visible unit. Is it a conversation, an accepted document, a qualification or a completed procedure? Decide whether revisions, retries and follow-up questions belong to the same unit.

Vendor policies demonstrate why this matters. Fin distinguishes configured Procedure handoffs from escalations. Zendesk's current resolution tiers distinguish a contained conversation from a verified resolution. These are different acceptance rules, not interchangeable names for any successful response. [1,2]

Your own rule needs a version. When the rule changes, a historical charge should still be explainable under the version that produced it.

Separate delivery, acceptance and billing

One proposed state model is:

attempted -> delivered -> pending_review -> accepted -> billed | | v v rejected reversed -> credited 

This is a design example, not a protocol. Some products can accept synchronously; others need a customer response or review window. Reversal may also happen before billing, in which case no credit is needed because no charge was finalised.

Store raw delivery facts separately from the decision that makes them billable. A model's success flag can be evidence, but should not silently become the billing authority.

A minimal example record could look like this:

{ "unit_id": "synthetic-job-014", "rule_version": "accepted-brief-v1", "delivery_state": "delivered", "acceptance_state": "pending_review", "evidence_ref": "restricted-evidence-reference", "billing_state": "not_emitted" } 

Keep customer information out of public logs and billing payloads. A restricted evidence reference is usually a better starting point than copying a whole conversation into the meter.

Deduplicate the business unit, not only the callback

A retry can have a new transport event ID while referring to the same customer-visible job. Deduplicating the callback alone will miss that duplicate.

Keep a durable uniqueness rule for the billable unit and the applicable charge type. Record every attempted billing emission, then reconcile it with the processor's result. Use a reliable queue or outbox so a failed network response does not leave you guessing whether to emit again.

Stripe's meter-event API accepts an identifier and documents uniqueness within a rolling period of at least 24 hours, primarily for accidental retries. That is useful protection. It is not lifetime protection against billing the same business unit again next week. [3]

The durable ledger remains your responsibility.

Model reversals as new facts

Do not rewrite history by deleting an accepted event when later evidence changes the result. Record a reversal that references the original decision, the reason and the adjustment needed.

Fin's policy describes deducting a resolution charge if the customer returns to the same conversation seeking further assistance, including across billing periods. Your product may choose another rule, but it should be explicit and supported by the ledger. [1]

Test at least these cases:

  • The delivery callback arrives twice.
  • Review accepts a task after an invoice period closes.
  • An accepted task is reversed before billing.
  • A billed task is reversed after invoicing.
  • A rule changes while an older task is still under review.
  • A customer disputes a unit whose evidence is no longer available.

Decide the business policy before encoding the transition. Do not invent a refund policy in a background worker.

Count the costs that never become revenue

If the customer pays only for accepted work, upstream services can still charge for failed attempts. Retell's documentation meters active services and describes transfer scenarios where telephony billing outlasts the AI agent's participation. [4]

Track cost against every attempt, not only accepted jobs. Include retries, external tools, review and later credits when analysing contribution margin. A high acceptance rate can still hide an expensive tail of difficult jobs.

No particular margin or price is implied by this design. The point is to preserve the evidence needed to calculate it.

Run a shadow invoice before collecting money

Replay synthetic or consented records under the proposed rule. Give the customer a sample invoice with reasons and evidence references. Compare the count against a manual review.

If the two disagree, investigate whether the acceptance rule, event identity or review process is ambiguous. Do not solve a contract problem by adding more code around it.

A useful outcome meter is a small accounting system. It needs a definition, a durable record, reversals and reconciliation. The counter is the easy part.

Sources

[1] Fin outcome definitions and reversal rule: https://www.intercom.com/help/en/articles/8205718-fin-ai-agent-outcomes

[2] Zendesk resolution tiers: https://support.zendesk.com/hc/en-us/articles/9570369117338-About-automated-resolution-tiers

[3] Stripe meter-event identifier semantics: https://docs.stripe.com/api/billing/meter-event/create

[4] Retell usage billing: https://docs.retellai.com/accounts/billing-exceptions

Checked 24 November 2026. State names and implementation patterns above are proposed examples. Vendor policies have product and account limits; consult the applicable contract before using them to determine a real bill.