Reading starts here
ChurnAtlas

Amplitude revenue: 3 fields and how they multiply out

Short answer. A plain guide for CS ops analysts sending account revenue events to Amplitude, covering price, quantity, revenue and how the three combine.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 10 min read

  1. Inputs Your product plan, your permissions and the task you want to finish.
  2. Decision Whether the help page matches what you see on your screen.
  3. Next action Do the task on one test account, then record what you changed.

Amplitude has three revenue fields — price, quantity, and revenue — and how you combine them decides what your dashboards actually store. If you send all three together, the API overwrites your revenue value with price times quantity, so pick a shape and stick to it.

Key takeaways

  • Send revenue alone when the amount comes from billing; omit price and quantity so nothing overwrites it.
  • Send price and quantity alone when a catalog price and count are your source of truth; calculate revenue on your side.
  • Sending all three only works when price times quantity equals your booked amount — it breaks on refunds, discounts, and credits.
  • Retry 429s with a backoff loop until the rate limit stops; retry 503s freely, since duplicates aren't a risk.
  • Give every event an idempotent key and reuse it across retries so your own queue can recognize and skip a re-send.

What this post covers

You send account revenue events to Amplitude so health reviews can see money, not just logins. The HTTP V2 API is the path for that. It is also where three fields, price, quantity, and revenue, can quietly disagree with each other. This post walks the multiplication rule, the retry behavior behind a 429 or 503, and the property shapes other tools use so you know what you are carrying across.

The goal is simple: your health dashboards should show revenue that matches the figures your finance team reports. When they do not, the review meeting goes badly, and the fix usually lives in one event payload.

The 3 fields and what they mean

You have three revenue-bearing fields on every event you send. Price is one unit. Quantity is how many units. Revenue is the money on the line. Each is optional in isolation. When all three are sent, the API applies the multiplication rule covered below.

Revenue alone states the total directly. Price and quantity together describe the sale from the unit side. Either shape can be correct. The problem starts when two of them are present and the third contradicts them.

The multiplication rule from the docs is short: if you send all 3 fields of price, quantity, and revenue, then the revenue value is (price x quantity). That sentence has a hidden trap. The API does not read your revenue field as the truth when all three are present. It computes revenue from the other two. Your stored revenue field gets overwritten by the product.

This matters because your health reviews read the stored revenue. If your billing system sent revenue while price and quantity sat next to it, Amplitude computes the product instead. Your dashboards show the product. Finance shows the original figure. Nobody notices until the quarter-end reconciliation, and then the whole revenue trend in the health report gets questioned.

Pick one of three shapes and stick to it. Shape one: send price and quantity only, and calculate revenue on your side. Shape two: send revenue only, with no price and no quantity. Shape three: send all three when you are certain price times quantity equals your booked revenue. Shape three breaks on partial refunds, tiered discounts, and credits. Most CS ops teams are better served by shape two when the amount comes straight from the billing system.

The HTTP V2 API is the route to use. It is the current path for sending data from your server to the endpoint, and it replaces the deprecated HTTP API. If you still have a legacy HTTP call sitting in a cron job somewhere, that call is on a deprecated API and should be migrated to HTTP V2. Move it before the next health review cycle.

How to place each field in the payload

The payload for a revenue event should read the same way every time. Set the event name once. Attach the user or group identifier once. Then place the revenue fields in a fixed order so a reviewer scanning the JSON sees the shape immediately.

Here is a payload shape that avoids the multiplication trap when your amount comes from billing: send event name, user id, timestamp, price absent, quantity absent, revenue present.

Here is a payload shape that works when your source of truth is a catalog price and a count: send event name, user id, timestamp, price present, quantity present, revenue absent. Revenue is then calculated on your side from those two fields, which is what a catalog-driven health metric wants.

Here is the shape that causes tickets: all three present with revenue that disagrees with price times quantity. Do not ship that shape. Pick one of the other two.

If all three fields land on the same event, the product wins. Read it as stated in the HTTP V2 API docs: the revenue value is price multiplied by quantity.

What to do when the billing amount and the unit price disagree

Partial credits are the common case. A customer pays for the annual term, then receives a credit for a service outage. Your billing system reports a net amount lower than the original charge. Your catalog still shows the full-term unit price and quantity for the term as originally sold. Price times quantity equals the gross figure, which no longer matches the net.

When the net amount and the product disagree, send revenue alone. Drop price and quantity from that event. Health reviews care about the money the customer actually paid. Unit economics can live on a separate event where you control the arithmetic yourself.

Illustrative example: a credit that breaks the match

A catalog unit price of 30 times a count of 3 gives 90. Billing then reports a net amount of 65 after a credit. Sending all three fields would store 90, not 65, so this event carries revenue 65 alone. The unit figures travel on a separate event that you calculate yourself.

Before you change the field shape on live traffic, ask your Amplitude admin whether past events stay as recorded or get recomputed on read.

Retries: 429 and 503

Server-side sends fail. The endpoint rate-limits you with a 429. The endpoint returns a 503 when it is unavailable. Your job is handling both without losing revenue events and without double-counting them.

For 429, the guidance is direct: keep retrying until the 429 stops. That is a backoff loop, not a single delayed attempt. Read it as written in the HTTP V2 API docs: Amplitude throttles requests for users and devices that exceed 30 events a second, averaged over a rolling 30-second window. When throttled, pause sending events for that user or device for 30 seconds, then retry. Build the loop with an internal attempt cap so a stuck queue does not spin forever; that cap is your own safeguard, not an Amplitude rule. If the cap is reached before the 429 clears, log the event and requeue it for review. Log each attempt so you can see how long the endpoint was limiting you. For a comparison of wait times, see How long to wait after a 429 error: 3 API docs compared.

For 503, the concern is duplication. Amplitude states that retrying a request with a 503 response doesn't risk duplicating events. So a 503 retry is safe on its own. A 429 retry is safe on the rate-limit axis, but your own queue logic still has to guarantee you do not re-send an event you already received a successful response for. Give each event an idempotent key before you send it. Reuse that key on every retry of the same event. Do not mint a fresh key for each attempt. For the queue side, see Customer event deduplication: 3 steps for renewal feeds.

The two codes want different handling. 429 means slow down. 503 means the service was unavailable and the retry is safe. Your retry wrapper should branch on the code, log the branch, and cap total attempts. A revenue event that disappears from the health dashboard because a retry gave up after one attempt is a silent data problem, and silent data problems surface as wrong health scores.

What other tools call these properties

If you are pulling event shapes from other systems before they land in Amplitude, you will meet different vocabulary for the same idea. Knowing the names helps when you map fields.

Mixpanel models an order as an event with a list property. Its example is an Order Completed event with a property called Items, which is a list of objects, each carrying details like name, category, and price. That shape puts the line items inside one event. Amplitude's HTTP V2 shape uses price, quantity, and revenue fields on the event. Flattening a list into a single revenue event means deciding how to represent multiple lines. Sum the revenue, sum the quantity, and drop price, or send one event for each line. Decide once and document it for the health team.

Pendo's track events take properties as attachments. Its help center says you can capture a variety of data as event properties attached to Track Events at Configure Track Events. You can attach account id, plan tier, renewal date, and CSM owner alongside revenue. Keep the three revenue fields in their own lane and put context properties beside them, not inside them.

The mapping table below shows the three-field rule and the retry rules side by side.

Field or code What happens
Price, quantity, revenue all present Revenue stores as price multiplied by quantity
Revenue present, price and quantity absent Multiplication rule does not apply
429 response Retry until the 429 stops
503 response Retrying does not risk duplicating events

Source: Amplitude HTTP V2 API docs.

Building the health review loop

Your health reviews run on account groups. The group key should match the key your CRM uses. For the account side of that join, see Amplitude user records: 5 checks for health scores.

Sequence the events so the review reads chronologically. Invoice paid, then credit issued, then refund, each as its own event with its own revenue amount. Do not net them into one event unless your finance team also nets them. Health conversations go better when the reviewer can see the movement.

Keep the event name stable. Renaming Invoice Paid to Revenue Recognized halfway through the year makes the two periods harder to compare. Pick the name the health team already says out loud and use it for the life of the program.

Attach context that the review will ask for: plan, renewal date, CSM owner, open ticket count. Those properties ride alongside the revenue fields. They just have to be there when the reviewer clicks through.

A checklist before you ship

Pick one revenue shape. Either send revenue alone, or send all three fields only when price times quantity equals your booked amount.

Confirm the endpoint. HTTP V2 is the current path. Retire any legacy HTTP call still running in a scheduled job.

Wrap retries with a branch. 429 gets a backoff loop that runs until the limit lifts. 503 gets a retry that you can fire without worrying about duplicates.

Give every event an idempotent key. Reuse the key across retries of the same event. Never mint a new key for each attempt.

Match the group key to your CRM. Same account id, same spelling, same case. Otherwise records will not line up across systems.

Keep the event name stable. The health team says the name out loud. Use that name, and do not rename it mid-year.

Log the retry branch. When a revenue event goes missing, the log should show which code it hit and how many attempts it took.

Next step for today. Open one revenue event in your current payload and check whether price, quantity, and revenue appear together. If they do, choose one of the shapes described above before the next send.

Related guides: Day 3 retention in Amplitude: 2 counting methods · Email field settings: 4 checks for customer invites.

FAQ

What happens if I send all three fields and they disagree? When all three fields are sent, the API sets revenue to price times quantity. Your stored revenue will not match the amount your billing system reported, and the health dashboard will show the product instead.

Is retrying a 503 safe? Yes. Amplitude states that retrying a request with a 503 response does not risk duplicating events. Your own queue still has to make sure you do not re-send an event that already returned success.

How long should I keep retrying a 429? Keep retrying until the 429 stops, up to an internal attempt cap you set. If the cap is reached first, log the event and requeue it for review.

Choose one approach and document it for the health team.

What if my billing system reports a net amount that does not equal price times quantity? Send revenue alone on that event. Drop price and quantity so nothing overwrites the net. Health reviews read the money the customer actually paid.

Who should I ask about historical events when I change the field shape? Your Amplitude admin. Ask whether past events stay as recorded or get recomputed on read.

Sources

Sources checked

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.