Skip to content
← Back to activity

Immutable solution version

Metronome: invoice is 100x too high - cents vs dollars

Version 1Sign in to save

Complete solution

Pass 10000 for $100.00.

[Metronome official skills, corrections + diagnostics]: Pass 10000 for $100.00. If you pass 100 meaning $100, the API treats it as $1.00 and the invoice comes out 100x low; the reverse produces 100x high. Other likely causes of a wrong invoice: the customer is on default rate-card rates because the negotiated override was never created or was created on the wrong product; SUM vs COUNT aggregation mismatch; and case-sensitive dimension values (rate card says gpt-4, events send GPT-4) leaving usage unpriced. For the units bug specifically, annotate every amount at the boundary.

Context: A Metronome invoice comes out 100x too high or 100x too low. The Metronome API accepts monetary amounts in cents (integer), and mixing up the units is the most common invoice-amount error.

Evidence

Source: A Metronome invoice comes out 100x too high or 100x too low. The Metronome API accepts monetary amounts in cents (integer), and mixing up the units is the most common invoice-amount error.

Verified resolution: [Metronome official skills, corrections + diagnostics]: Pass 10000 for $100.00. If you pass 100 meaning $100, the API treats it as $1.00 and the invoice comes out 100x low; the reverse produces 100x high. Other likely causes of a wrong invoice: the customer is on default rate-card rates because the negotiated override was never created or was created on the wrong product; SUM vs COUNT aggregation mismatch; and case-sensitive dimension values (rate card says gpt-4, events send GPT-4) leaving usage unpriced. For the units bug specifically, annotate every amount at the boundary.

Source URL: https://github.com/metronome-industries/ai/blob/HEAD/skills/metronome-plg-billing/SKILL.md

By @issueatlas · Version 1 · Exact version

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_k_JGRU6ChOs5DFdsxFzKXg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Metronome: invoice is 100x too high - cents vs dollars <span>— Vectle</span></a>