Meter usage with events, bill per unit or from prepaid credits.
Send usage events, and SleetPay meters them against your pricing: per unit, graduated or volume tiers, or against prepaid credits.
1. Create a meter
In the dashboard, create a meter that watches an event name (for example llm.call), aggregates a numeric property with sum, max or count (count needs no property), and has a unit label (for example tokens). Pricing is per million units with an optional free allowance per period, and can be flat, graduated or volume tiered. Attach the meter to a product, or use it with a prepaid credits benefit.
Send up to 500 at once by passing an array. properties take up to 50 numeric values. timestamp is optional (ISO 8601 with offset) and defaults to now.
Idempotency is mandatoryResending an event with the same idempotencyKey never double-counts, so retry freely on timeouts. Use a stable id from your own system, such as a request id.
The response lists a status per event. When a prepaid customer has too few credits the API answers 402 with the per-event results.
Atomic, never overdraws (402 with available), and safe to retry with the same idempotencyKey. The recipient is created on first use. Needs credits:write.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SleetPay","colors":{"primary":"#0284c7","light":"#38bdf8","dark":"#0369a1"},"navbar":{"links":[{"href":"https://app.sleetpay.com","label":"Dashboard"}]},"footer":{"socials":{"github":"https://github.com/sleetpay/sleetpay-sdk"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sleet-pay","hasAudioNarration":false,"actualSubdomain":"sleet-pay","customDomains":[],"gitSource":{"type":"github","owner":"sleetpay","repo":"sleetpay-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b0c2754ec30b88fb971d838"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0c2a35f742bc3f27676f2d","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API reference","count":27},{"language":"default","tag":"Guides","count":25},{"language":"default","tag":"SDKs","count":10},{"language":"default","tag":"Customers","count":6},{"language":"default","tag":"Start here","count":5},{"language":"default","tag":"License keys","count":4},{"language":"default","tag":"Subscriptions","count":4},{"language":"default","tag":"Seats","count":3},{"language":"default","tag":"Checkouts","count":2},{"language":"default","tag":"Credits","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/usage","slug":"/guides/usage","pageMetadata":{"title":"Usage-based billing","description":"Meter usage with events, bill per unit or from prepaid credits.","href":"/guides/usage"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Meter usage with events, bill per unit or from prepaid credits.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Send usage events, and SleetPay meters them against your pricing: per unit, graduated or volume tiers, or against `,_jsx(_components.strong,{children:`prepaid credits`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`1-create-a-meter`,children:`1. Create a meter`}),`\n`,_jsxs(_components.p,{children:[`In the dashboard, create a meter that watches an event name (for example `,_jsx(_components.code,{children:`llm.call`}),`), aggregates a numeric property with `,_jsx(_components.code,{children:`sum`}),`, `,_jsx(_components.code,{children:`max`}),` or `,_jsx(_components.code,{children:`count`}),` (`,_jsx(_components.code,{children:`count`}),` needs no property), and has a unit label (for example `,_jsx(_components.code,{children:`tokens`}),`). Pricing is per million units with an optional free allowance per period, and can be flat, graduated or volume tiered. Attach the meter to a product, or use it with a prepaid credits benefit.`]}),`\n`,_jsx(Heading,{level:`2`,id:`2-send-events`,children:`2. Send events`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sleetpay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`events`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ingest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"llm.call\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` externalCustomerId:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` properties:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tokens:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1200`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` idempotencyKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` requestId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// required`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Send up to 500 at once by passing an array. `,_jsx(_components.code,{children:`properties`}),` take up to 50 numeric values. `,_jsx(_components.code,{children:`timestamp`}),` is optional (ISO 8601 with offset) and defaults to now.`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Idempotency is mandatory`})}),_jsxs(_components.p,{children:[`Resending an event with the same `,_jsx(_components.code,{children:`idempotencyKey`}),` never double-counts, so retry freely on timeouts. Use a stable id from your own system, such as a request id.`]})]}),`\n`,_jsxs(_components.p,{children:[`The response lists a `,_jsx(_components.code,{children:`status`}),` per event. When a prepaid customer has too few credits the API answers `,_jsx(_components.code,{children:`402`}),` with the per-event results.`]}),`\n`,_jsx(Heading,{level:`2`,id:`3-read-balances`,children:`3. Read balances`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`balances`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sleetpay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`credits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`balance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// [{ unitLabel: \"tokens\", units: 48800 }]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Or read `,_jsx(_components.code,{children:`active_meters`}),` from `,_jsx(_components.a,{href:`/guides/customers`,children:_jsx(_components.code,{children:`customers.state`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`transfer-credits`,children:`Transfer credits`}),`\n`,_jsx(_components.p,{children:`A team admin handing a teammate part of a pack:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sleetpay`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`credits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`transfer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`from:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` adminId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`to:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` teammateId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`units:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`idempotencyKey:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"xfer_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Atomic, never overdraws (`,_jsx(_components.code,{children:`402`}),` with `,_jsx(_components.code,{children:`available`}),`), and safe to retry with the same `,_jsx(_components.code,{children:`idempotencyKey`}),`. The recipient is created on first use. Needs `,_jsx(_components.code,{children:`credits:write`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/api-reference/introduction`,children:`API reference`}),`, `,_jsx(_components.a,{href:`/api-reference/introduction`,children:`API reference`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Usage-based billing","description":"Meter usage with events, bill per unit or from prepaid credits.","href":"/guides/usage"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Create a meter","slug":"1-create-a-meter","depth":2,"children":[]},{"title":"2. Send events","slug":"2-send-events","depth":2,"children":[]},{"title":"3. Read balances","slug":"3-read-balances","depth":2,"children":[]},{"title":"Transfer credits","slug":"transfer-credits","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"sleet-pay","siteName":"SleetPay","title":"Usage-based billing - SleetPay","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-29T13:32:47.870Z","originalFileLocation":"guides/usage.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Meter usage with events, bill per unit or from prepaid credits.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SleetPay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sleet-pay/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sleet-pay/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sleet-pay/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/sleet-pay/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Usage-based billing - SleetPay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Meter usage with events, bill per unit or from prepaid credits.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SleetPay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://sleet-pay.mintlify.app/guides/usage\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sleet-pay.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Usage-based+billing\u0026amp;description=Meter+usage+with+events%2C+bill+per+unit+or+from+prepaid+credits.\u0026amp;theme=db04a7fb96ca5885df864163\u0026amp;signature=20fc2c1fab6e88af5640d26dcc6575cec444cd2a185d3c9bffb50a06509ae802\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Usage-based billing - SleetPay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Meter usage with events, bill per unit or from prepaid credits.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sleet-pay.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Usage-based+billing\u0026amp;description=Meter+usage+with+events%2C+bill+per+unit+or+from+prepaid+credits.\u0026amp;theme=db04a7fb96ca5885df864163\u0026amp;signature=20fc2c1fab6e88af5640d26dcc6575cec444cd2a185d3c9bffb50a06509ae802\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/sleet-pay/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SleetPay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0284c7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://sleet-pay.mintlify.app/guides/usage\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/usage.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://sleet-pay.mintlify.app/#organization\",\"name\":\"SleetPay\",\"url\":\"https://sleet-pay.mintlify.app\"},{\"@type\":\"WebSite\",\"@id\":\"https://sleet-pay.mintlify.app#website\",\"name\":\"SleetPay\",\"url\":\"https://sleet-pay.mintlify.app\",\"publisher\":{\"@id\":\"https://sleet-pay.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://sleet-pay.mintlify.app/guides/usage#webpage\",\"url\":\"https://sleet-pay.mintlify.app/guides/usage\",\"name\":\"Usage-based billing\",\"description\":\"Meter usage with events, bill per unit or from prepaid credits.\",\"dateModified\":\"2026-11-29T13:32:47.870Z\",\"isPartOf\":{\"@id\":\"https://sleet-pay.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://sleet-pay.mintlify.app/guides/usage#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://sleet-pay.mintlify.app/guides/usage#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://sleet-pay.mintlify.app/guides/checkout\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Usage-based billing\",\"item\":\"https://sleet-pay.mintlify.app/guides/usage\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://sleet-pay.mintlify.app/guides/usage#article\",\"headline\":\"Usage-based billing\",\"name\":\"Usage-based billing\",\"description\":\"Meter usage with events, bill per unit or from prepaid credits.\",\"url\":\"https://sleet-pay.mintlify.app/guides/usage\",\"mainEntityOfPage\":{\"@id\":\"https://sleet-pay.mintlify.app/guides/usage#webpage\"},\"dateModified\":\"2026-11-29T13:32:47.870Z\",\"publisher\":{\"@id\":\"https://sleet-pay.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://sleet-pay.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SleetPay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SleetPay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/usage.md","siteName":"SleetPay","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Start here","pages":[{"title":"SleetPay documentation","mode":"wide","href":""},{"title":"Getting started","href":"/getting-started"},{"title":"Set up SleetPay with an AI agent","href":"/guides/agents"},{"title":"Authentication","href":"/guides/authentication"},{"title":"Going live","href":"/guides/going-live"}]},{"group":"Guides","pages":[{"title":"Accept a payment","href":"/guides/checkout"},{"title":"Customers and entitlements","href":"/guides/customers"},{"title":"Subscriptions","description":"Lifecycle, pause and resume, cancellation, plan changes and the events to listen for.","href":"/guides/subscriptions"},{"title":"Usage-based billing","href":"/guides/usage"},{"title":"Seats","description":"Per-seat billing, assigning seats to people and checking access.","href":"/guides/seats"},{"title":"License keys","href":"/guides/license-keys"},{"title":"Customer portal","href":"/guides/portal"},{"title":"Webhooks","href":"/guides/webhooks"},{"title":"OAuth apps","href":"/guides/oauth"},{"title":"Errors, limits and pagination","href":"/guides/errors"}]}]},{"tab":"SDKs","pages":[{"title":"SDKs","href":"/sdks/typescript"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Usage-based billing - SleetPay","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}