Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.
Meter chuyển đổi các sự kiện thô thành số lượng có thể tính phí. Chúng lọc sự kiện và áp dụng các hàm tổng hợp (Count, Sum, Max, Last) để tính mức sử dụng cho từng khách hàng.
Tài nguyên API
View Meter API References
Create Meter
Tạo meter theo lập trình qua API.
List Meters
Truy xuất tất cả meter trong tài khoản của bạn.
Get Meter
Lấy chi tiết cho một meter cụ thể theo ID.
Archive Meter
Lưu trữ một meter để ngừng theo dõi sử dụng.
Unarchive Meter
Khôi phục một meter đã lưu trữ để tiếp tục theo dõi.
Tạo một Công tơ
1
Basic Information
string
bắt buộc
Tên mô tả cho meter (ví dụ: “API Requests”, “Token Usage”).
string
bắt buộc
Tên sự kiện chính xác cần khớp (phân biệt chữ hoa chữ thường). Ví dụ: api.call, image.generated.
2
Aggregation
string
bắt buộc
Chọn cách các sự kiện được tổng hợp:
Count: Tổng số sự kiện (lệnh gọi API, lượt tải lên)
Sum: Tổng các giá trị số (token, byte)
Max: Giá trị cao nhất trong kỳ (số người dùng cao nhất)
Last: Giá trị gần đây nhất
string
Khóa metadata cần tổng hợp (bắt buộc đối với Sum, Max và Last). Ví dụ: tokens, bytes, duration_ms.
string
bắt buộc
Nhãn đơn vị dùng cho hóa đơn và báo cáo. Ví dụ: calls, tokens, GB, hours.
3
Filtering (Optional)
Thêm điều kiện để lọc các sự kiện được tính:
Logic AND: Tất cả các điều kiện phải khớp
Logic OR: Bất kỳ điều kiện nào cũng có thể khớp
Các toán tử so sánh hiện có: bằng, khác, lớn hơn, lớn hơn hoặc bằng, nhỏ hơn, nhỏ hơn hoặc bằng, chứa, không chứa.Bật tính năng lọc, chọn logic, sau đó thêm điều kiện với khóa thuộc tính, toán tử so sánh và giá trị.
4
Create
Xem lại cấu hình và nhấp vào Create Meter.
Xem Phân tích
Bảng điều khiển meter hiển thị:
Overview: Tổng mức sử dụng và xu hướng sử dụng theo thời gian
Events: Các sự kiện riêng lẻ đã nhận và metadata của chúng
Customers: Tổng mức sử dụng và các khoản phí theo từng khách hàng
Thanh toán bằng tín chỉ thay vì tiền tệ
Theo mặc định, meter tính phí khách hàng theo từng đơn vị bằng đô la (hoặc loại tiền tệ bạn đã cấu hình). Thay vào đó, bạn có thể cấu hình meter để trừ vào số dư credit của khách hàng, nhờ đó mức sử dụng sẽ tiêu thụ credit thay vì tạo ra khoản phí bằng tiền.
Tính năng khấu trừ dựa trên credit yêu cầu một Credit Entitlement được gắn với cùng một product. Trước tiên, hãy tạo credit entitlement, sau đó liên kết entitlement đó với meter.
Khi nào nên dùng khấu trừ theo tín chỉ
Scenario
Standard (currency)
Credit-based
Định giá đơn giản theo từng đơn vị ($0.01/lần gọi)
✅ Phù hợp nhất
Chi phí không cần thiết
Gói credit trả trước (mua 10K token, sử dụng theo thời gian)
❌ Không thể thể hiện
✅ Phù hợp nhất
Mức sử dụng đi kèm subscription (gói Pro bao gồm 100K lượt gọi)
Có thể thực hiện qua ngưỡng miễn phí
✅ Tốt hơn: credit được chuyển tiếp, hết hạn và hiển thị trong portal
Product có nhiều meter dùng chung một credit pool
❌ Mỗi meter tính phí riêng
✅ Tất cả meter đều trừ từ một số dư
Cấu hình đồng hồ để khấu trừ tín chỉ
1
Create a Credit Entitlement
Trước tiên, hãy tạo credit entitlement trong Products → Credits. Xác định đơn vị (ví dụ: “API Calls”, “Tokens”), độ chính xác và các cài đặt vòng đời (hết hạn, chuyển tiếp, overage).Xem Hướng dẫn Thanh toán theo tín chỉ để biết hướng dẫn chi tiết.
2
Create or Edit a Usage-Based Product
Vào sản phẩm tính phí theo mức sử dụng và mở phần cấu hình Meter.
3
Add a Meter
Nhấp nút + để đính kèm một đồng hồ. Cấu hình tên sự kiện, kiểu tổng hợp và đơn vị đo như thường lệ.
4
Enable 'Bill Usage in Credits'
Bật Bill usage in Credits trong cấu hình meter để hiển thị các cài đặt credit:
Toggle 'Bill usage in Credits' to switch from currency-based to credit-based deduction.
string
bắt buộc
Chọn credit entitlement mà meter này sẽ trừ vào.
number
bắt buộc
Số đơn vị sử dụng cần thiết để khấu trừ 1 tín chỉ. Ví dụ:
1 = mỗi sự kiện đồng hồ khấu trừ 1 tín chỉ
100 = 100 sự kiện đồng hồ khấu trừ 1 tín chỉ
1000 = 1.000 cuộc gọi API tiêu thụ 1 tín chỉ
5
Free Threshold and Credits
Free Threshold áp dụng cho các meter được tính phí bằng tiền, không áp dụng cho các meter được tính phí bằng credit. Khi meter tính phí bằng credit, mọi đơn vị đều được tính vào khoản khấu trừ credit.Ví dụ: Với meter-units-per-credit là 1, khách hàng thực hiện 2,500 lệnh gọi API sẽ bị khấu trừ 2,500 credit.
Cách khấu trừ tín chỉ hoạt động
Sau khi được cấu hình, quy trình khấu trừ chạy tự động:
Sự kiện được gửi đến — Ứng dụng của bạn gửi các sự kiện sử dụng thông qua Event Ingestion API.
Meter tổng hợp — Các sự kiện được tổng hợp theo cấu hình meter của bạn (Count, Sum, Max, Last).
Background worker xử lý — Mỗi phút, một worker lấy các sự kiện mới kể từ checkpoint gần nhất.
Credit được khấu trừ — Mức sử dụng đã tổng hợp được chuyển đổi thành credit bằng rate meter_units_per_credit và được khấu trừ theo thứ tự FIFO (các khoản cấp credit hết hạn sớm nhất được sử dụng trước).
Overage được theo dõi — Nếu số dư chạm mức 0, mức sử dụng tiếp theo sẽ được ghi nhận là overage và được xử lý theo hành vi đã cấu hình (được miễn khi reset, tính phí ở hóa đơn tiếp theo hoặc chuyển tiếp dưới dạng thâm hụt). Dodo Payments không chặn mức sử dụng khi số dư cạn kiệt. Để dừng quyền truy cập khi số dư bằng 0, hãy kiểm tra số dư trong ứng dụng của bạn.
Khấu trừ credit chạy không đồng bộ (khoảng mỗi 1 phút). Có thể có một khoảng trễ ngắn giữa lúc tiếp nhận sự kiện và lúc khấu trừ vào số dư. Hãy thiết kế ứng dụng để xử lý độ trễ này và không dựa vào việc kiểm tra số dư theo thời gian thực để kiểm soát quyền truy cập cho từng request.
Nhiều đồng hồ, một pool tín chỉ
Bạn có thể liên kết nhiều meter trên cùng một product với cùng một credit entitlement. Tất cả meter đều trừ từ một số dư dùng chung.Ví dụ: Một nền tảng AI có hai meter:
text.generation — 1 credit cho mỗi 1.000 token
image.generation — 10 credit cho mỗi hình ảnh
Cả hai khấu trừ từ cùng pool “AI Credits”. Khách hàng thấy một số dư thống nhất trong cổng của họ.
Sử dụng các tỷ lệ meter_units_per_credit khác nhau giữa các đồng hồ để biểu đạt chi phí tương đối. Các hoạt động tốn kém (tạo hình ảnh) tiêu thụ ít đơn vị đồng hồ trên mỗi tín chỉ hơn các hoạt động rẻ hơn (hoàn thành văn bản).
List Customer Ledger
Xem toàn bộ lịch sử khấu trừ tín chỉ cho một khách hàng.
Get Customer Balance
Kiểm tra số dư tín chỉ hiện tại của khách hàng qua API.
Khắc phục sự cố
Events not appearing
Tên sự kiện phải khớp chính xác (phân biệt chữ hoa chữ thường)
Kiểm tra để đảm bảo bộ lọc meter không loại trừ các sự kiện
Xác minh ID khách hàng tồn tại trong tài khoản của bạn
Tạm thời tắt bộ lọc để kiểm tra
Aggregation not working
Xác minh Over Property khớp chính xác với khóa metadata
Sử dụng số, không phải chuỗi: tokens: 150 chứ không phải tokens: "150"
Bao gồm các thuộc tính bắt buộc trong tất cả sự kiện
Filters not working
Khớp chính xác chữ hoa chữ thường
Sử dụng toán tử phù hợp với kiểu dữ liệu
Đảm bảo sự kiện bao gồm các thuộc tính được lọc
Wrong usage totals
Kiểm tra tab Events để đếm số sự kiện thực tế đã nhận
Xác minh loại tổng hợp (Count hay Sum)
Đảm bảo các giá trị là số đối với Sum và Max
Bước tiếp theo
Send Events
Bắt đầu gửi sự kiện sử dụng từ ứng dụng của bạn đến các đồng hồ.
View Blueprints
Sử dụng các cấu hình đồng hồ dựng sẵn cho các trường hợp phổ biến.
Lần sửa đổi cuối 26 tháng 9, 2026
Trang này có hữu ích không?
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Dodo Payments Documentation","description":"Documentation for Dodo Payments — the all-in-one payments, billing, and merchant of record platform for SaaS, AI, and digital products.","colors":{"primary":"#779812","light":"#C6FE1E","dark":"#166534"},"logo":{"light":"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/light.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=23f7a052f7ecb9d6570b7c95ee359a97","dark":"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/dark.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=cd6c20238a54526436f21c43fee51b26"},"favicon":"https://mintcdn.com/dodopayments/doYQc9oUE-WNz0cs/favicon.svg?fit=max\u0026auto=format\u0026n=doYQc9oUE-WNz0cs\u0026q=85\u0026s=271c6cc8ce7d6bf4d7f2b9cca029e004","background":{"color":{"light":"#FFFFFF","dark":"#0D0D0D"}},"navbar":{"links":[{"icon":"link","href":"https://docs.dodopayments.com/llms-full.txt","label":"llms-full.txt"},{"icon":"discord","href":"https://discord.gg/bYqAp4ayYh","label":"Community"},{"icon":"house","href":"https://app.dodopayments.com/","label":"Dashboard"}]},"footer":{"socials":{"x":"https://x.com/dodopayments","linkedin":"https://linkedin.com/company/dodopayments","website":"https://dodopayments.com","discord":"https://discord.gg/bYqAp4ayYh","github":"https://github.com/dodopayments","instagram":"https://www.instagram.com/dodo.payments","facebook":"https://www.facebook.com/profile.php?id=61565515607280"}},"seo":{"metatags":{"og:site_name":"Dodo Payments Documentation","twitter:card":"summary_large_image"},"indexing":"navigable"},"fonts":{"heading":{"family":"ApfelGrotezk","weight":400,"source":"fonts/ApfelGrotezk-Regular.woff2","format":"woff2"},"body":{"family":"Inter","weight":400,"source":"fonts/Inter-Variable.woff2","format":"woff2"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","cursor"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"ar","href":"ar/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"id","href":"id/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"ko","href":"ko/introduction"},{"language":"pt-BR","href":"pt-BR/introduction"},{"language":"vi","href":"vi/introduction"},{"language":"cn","href":"cn/introduction"},{"language":"hi","href":"hi/introduction"},{"language":"it","href":"it/introduction"},{"language":"sv","href":"sv/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dodopayments","hasAudioNarration":false,"actualSubdomain":"dodopayments","customDomains":["docs.dodopayments.com"],"gitSource":{"type":"github","owner":"dodopayments","repo":"dodo-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af61516aad23a11c9aa58ca","clientVersion":"0.0.4142","searchFilterCounts":[{"language":"en","tag":"API Reference","count":181},{"language":"en","tag":"Docs","count":178},{"language":"ar","tag":"Docs","count":153},{"language":"cn","tag":"Docs","count":153},{"language":"de","tag":"Docs","count":153},{"language":"es","tag":"Docs","count":153},{"language":"fr","tag":"Docs","count":153},{"language":"hi","tag":"Docs","count":153},{"language":"id","tag":"Docs","count":153},{"language":"it","tag":"Docs","count":153},{"language":"ja","tag":"Docs","count":153},{"language":"ko","tag":"Docs","count":153},{"language":"pt-BR","tag":"Docs","count":153},{"language":"sv","tag":"Docs","count":153},{"language":"vi","tag":"Docs","count":153},{"language":"ar","tag":"API Reference","count":151},{"language":"cn","tag":"API Reference","count":151},{"language":"de","tag":"API Reference","count":151},{"language":"es","tag":"API Reference","count":151},{"language":"fr","tag":"API Reference","count":151},{"language":"hi","tag":"API Reference","count":151},{"language":"id","tag":"API Reference","count":151},{"language":"it","tag":"API Reference","count":151},{"language":"ja","tag":"API Reference","count":151},{"language":"ko","tag":"API Reference","count":151},{"language":"pt-BR","tag":"API Reference","count":151},{"language":"sv","tag":"API Reference","count":151},{"language":"vi","tag":"API Reference","count":151},{"language":"en","tag":"Features","count":87},{"language":"ar","tag":"Features","count":81},{"language":"cn","tag":"Features","count":81},{"language":"de","tag":"Features","count":81},{"language":"es","tag":"Features","count":81},{"language":"fr","tag":"Features","count":81},{"language":"hi","tag":"Features","count":81},{"language":"id","tag":"Features","count":81},{"language":"it","tag":"Features","count":81},{"language":"ja","tag":"Features","count":81},{"language":"ko","tag":"Features","count":81},{"language":"pt-BR","tag":"Features","count":81},{"language":"sv","tag":"Features","count":81},{"language":"vi","tag":"Features","count":81},{"language":"en","tag":"Integrate","count":75},{"language":"en","tag":"Changelog","count":66},{"language":"ar","tag":"Changelog","count":65},{"language":"cn","tag":"Changelog","count":65},{"language":"de","tag":"Changelog","count":65},{"language":"es","tag":"Changelog","count":65},{"language":"fr","tag":"Changelog","count":65},{"language":"hi","tag":"Changelog","count":65},{"language":"id","tag":"Changelog","count":65},{"language":"it","tag":"Changelog","count":65},{"language":"ja","tag":"Changelog","count":65},{"language":"ko","tag":"Changelog","count":65},{"language":"pt-BR","tag":"Changelog","count":65},{"language":"sv","tag":"Changelog","count":65},{"language":"vi","tag":"Changelog","count":65},{"language":"ar","tag":"Integrate","count":59},{"language":"cn","tag":"Integrate","count":59},{"language":"de","tag":"Integrate","count":59},{"language":"es","tag":"Integrate","count":59},{"language":"fr","tag":"Integrate","count":59},{"language":"hi","tag":"Integrate","count":59},{"language":"id","tag":"Integrate","count":59},{"language":"it","tag":"Integrate","count":59},{"language":"ja","tag":"Integrate","count":59},{"language":"ko","tag":"Integrate","count":59},{"language":"pt-BR","tag":"Integrate","count":59},{"language":"sv","tag":"Integrate","count":59},{"language":"vi","tag":"Integrate","count":59},{"language":"en","tag":"External Integrations","count":33},{"language":"ar","tag":"External Integrations","count":30},{"language":"cn","tag":"External Integrations","count":30},{"language":"de","tag":"External Integrations","count":30},{"language":"es","tag":"External Integrations","count":30},{"language":"fr","tag":"External Integrations","count":30},{"language":"hi","tag":"External Integrations","count":30},{"language":"id","tag":"External Integrations","count":30},{"language":"it","tag":"External Integrations","count":30},{"language":"ja","tag":"External Integrations","count":30},{"language":"ko","tag":"External Integrations","count":30},{"language":"pt-BR","tag":"External Integrations","count":30},{"language":"sv","tag":"External Integrations","count":30},{"language":"vi","tag":"External Integrations","count":30},{"language":"en","tag":"Webhooks","count":24},{"language":"ar","tag":"Webhooks","count":23},{"language":"cn","tag":"Webhooks","count":23},{"language":"de","tag":"Webhooks","count":23},{"language":"es","tag":"Webhooks","count":23},{"language":"fr","tag":"Webhooks","count":23},{"language":"hi","tag":"Webhooks","count":23},{"language":"id","tag":"Webhooks","count":23},{"language":"it","tag":"Webhooks","count":23},{"language":"ja","tag":"Webhooks","count":23},{"language":"ko","tag":"Webhooks","count":23},{"language":"pt-BR","tag":"Webhooks","count":23},{"language":"sv","tag":"Webhooks","count":23},{"language":"vi","tag":"Webhooks","count":23},{"language":"en","tag":"Guides","count":22},{"language":"ar","tag":"Guides","count":22},{"language":"cn","tag":"Guides","count":22},{"language":"de","tag":"Guides","count":22},{"language":"es","tag":"Guides","count":22},{"language":"fr","tag":"Guides","count":22},{"language":"hi","tag":"Guides","count":22},{"language":"id","tag":"Guides","count":22},{"language":"it","tag":"Guides","count":22},{"language":"ja","tag":"Guides","count":22},{"language":"ko","tag":"Guides","count":22},{"language":"pt-BR","tag":"Guides","count":22},{"language":"sv","tag":"Guides","count":22},{"language":"vi","tag":"Guides","count":22},{"language":"en","tag":"Entitlements","count":20},{"language":"ar","tag":"Entitlements","count":20},{"language":"cn","tag":"Entitlements","count":20},{"language":"de","tag":"Entitlements","count":20},{"language":"es","tag":"Entitlements","count":20},{"language":"fr","tag":"Entitlements","count":20},{"language":"hi","tag":"Entitlements","count":20},{"language":"id","tag":"Entitlements","count":20},{"language":"it","tag":"Entitlements","count":20},{"language":"ja","tag":"Entitlements","count":20},{"language":"ko","tag":"Entitlements","count":20},{"language":"pt-BR","tag":"Entitlements","count":20},{"language":"sv","tag":"Entitlements","count":20},{"language":"vi","tag":"Entitlements","count":20},{"language":"en","tag":"Invoices","count":17},{"language":"ar","tag":"Customers","count":16},{"language":"cn","tag":"Customers","count":16},{"language":"de","tag":"Customers","count":16},{"language":"es","tag":"Customers","count":16},{"language":"fr","tag":"Customers","count":16},{"language":"hi","tag":"Customers","count":16},{"language":"id","tag":"Customers","count":16},{"language":"it","tag":"Customers","count":16},{"language":"ja","tag":"Customers","count":16},{"language":"ko","tag":"Customers","count":16},{"language":"pt-BR","tag":"Customers","count":16},{"language":"sv","tag":"Customers","count":16},{"language":"vi","tag":"Customers","count":16}]},"assistantConfig":{"deflection":{"enabled":false,"email":"support@dodopayments.com","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"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":"workos-onboarding","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"#content-area{max-width:60rem}h1,h2,h3,h4,h5,h6{letter-spacing:0.05em!important}.welcome-page .card-group{margin:3rem auto 8rem;max-width:70rem;padding-left:1.25rem;padding-right:1.25rem}.welcome-page .card-group .card{padding:1rem}.welcome-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:20vh;text-align:center;margin-top:3rem;margin-bottom:2.5rem}.welcome-hero h1{font-size:2.5rem;font-weight:700;margin-bottom:1rem;line-height:1.2;color:#fff}.welcome-hero p{font-size:1.25rem;max-width:600px;margin:0 auto}.welcome-hero h1{color:rgb(41 42 37 / 1)}.dark .welcome-hero h1{color:rgb(255 255 255 / 1)}.welcome-hero p{color:rgb(83 85 79 / 1)}.dark .welcome-hero p{color:rgb(162 164 158 / 1)}"}],"page":{"pagePath":"vi/features/usage-based-billing/meters","slug":"/vi/features/usage-based-billing/meters","pageMetadata":{"sidebarTitle":"Công tơ","title":"Công tơ","description":"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.","icon":"sliders","keywords":["Dodo Payments","đồng hồ đo sử dụng","đo lường","theo dõi tiêu thụ","tổng hợp"],"href":"/vi/features/usage-based-billing/meters"},"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: \"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.\"\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`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,Frame,Heading,Info,Mermaid,OptimizedImage,ParamField,Step,Steps,Table,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Mermaid)_missingMdxReference(`Mermaid`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Meter chuyển đổi các sự kiện thô thành số lượng có thể tính phí. Chúng lọc sự kiện và áp dụng các hàm tổng hợp (Count, Sum, Max, Last) để tính mức sử dụng cho từng khách hàng.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=f9d85a463fba231437151db3d4a2052a`,alt:`Giao diện tạo đồng hồ đo hiển thị tên sự kiện, loại tổng hợp và các tùy chọn lọc`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`2324`,width:`2324`,\"data-og-height\":`1600`,height:`1600`,\"data-path\":`images/usage-based/UBB-2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?w=280\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=18fdbbf75ab4df7ede6c45f6e248b783 280w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?w=560\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=e404194a942a1276de7148f9b8eff36d 560w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?w=840\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=1bec71463cb2e00acd0841b9968f2b7e 840w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=746ef8eb5f8bb76a355122d8253e9cba 1100w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=8f10a20590e5c9056b9c7f285b827217 1650w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=a503c04b328416b03f7e20dc6c4c0a28 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`tài-nguyên-api`,children:`Tài nguyên API`}),`\n`,_jsx(AccordionGroup,{children:_jsx(Accordion,{title:`View Meter API References`,id:`view-meter-api-references`,children:_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Create Meter`,icon:`plus`,href:`/api-reference/meters/create-meter`,children:_jsx(_components.p,{children:`Tạo meter theo lập trình qua API.`})}),_jsx(Card,{title:`List Meters`,icon:`list`,href:`/api-reference/meters/get-meters`,children:_jsx(_components.p,{children:`Truy xuất tất cả meter trong tài khoản của bạn.`})}),_jsx(Card,{title:`Get Meter`,icon:`eye`,href:`/api-reference/meters/retrieve-meter`,children:_jsx(_components.p,{children:`Lấy chi tiết cho một meter cụ thể theo ID.`})}),_jsx(Card,{title:`Archive Meter`,icon:`arrow-rotate-right`,href:`/api-reference/meters/archive-meter`,children:_jsx(_components.p,{children:`Lưu trữ một meter để ngừng theo dõi sử dụng.`})}),_jsx(Card,{title:`Unarchive Meter`,icon:`arrow-rotate-left`,href:`/api-reference/meters/unarchive-meter`,children:_jsx(_components.p,{children:`Khôi phục một meter đã lưu trữ để tiếp tục theo dõi.`})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tạo-một-công-tơ`,children:`Tạo một Công tơ`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Basic Information`,children:[_jsx(ParamField,{path:`Meter Name`,type:`string`,required:true,id:`param-meter-name`,children:_jsx(_components.p,{children:`Tên mô tả cho meter (ví dụ: “API Requests”, “Token Usage”).`})}),_jsx(ParamField,{path:`Event Name`,type:`string`,required:true,id:`param-event-name`,children:_jsxs(_components.p,{children:[`Tên sự kiện chính xác cần khớp (phân biệt chữ hoa chữ thường). Ví dụ: `,_jsx(_components.code,{children:`api.call`}),`, `,_jsx(_components.code,{children:`image.generated`}),`.`]})})]}),_jsxs(Step,{title:`Aggregation`,children:[_jsxs(ParamField,{path:`Aggregation Type`,type:`string`,required:true,id:`param-aggregation-type`,children:[_jsx(_components.p,{children:`Chọn cách các sự kiện được tổng hợp:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Count`}),`: Tổng số sự kiện (lệnh gọi API, lượt tải lên)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sum`}),`: Tổng các giá trị số (token, byte)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Max`}),`: Giá trị cao nhất trong kỳ (số người dùng cao nhất)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Last`}),`: Giá trị gần đây nhất`]}),`\n`]})]}),_jsx(ParamField,{path:`Over Property`,type:`string`,id:`param-over-property`,children:_jsxs(_components.p,{children:[`Khóa metadata cần tổng hợp (bắt buộc đối với Sum, Max và Last). Ví dụ: `,_jsx(_components.code,{children:`tokens`}),`, `,_jsx(_components.code,{children:`bytes`}),`, `,_jsx(_components.code,{children:`duration_ms`}),`.`]})}),_jsx(ParamField,{path:`Measurement Unit`,type:`string`,required:true,id:`param-measurement-unit`,children:_jsxs(_components.p,{children:[`Nhãn đơn vị dùng cho hóa đơn và báo cáo. Ví dụ: `,_jsx(_components.code,{children:`calls`}),`, `,_jsx(_components.code,{children:`tokens`}),`, `,_jsx(_components.code,{children:`GB`}),`, `,_jsx(_components.code,{children:`hours`}),`.`]})})]}),_jsxs(Step,{title:`Filtering (Optional)`,children:[_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=ce231b0559d31723bc12c22cd9ff9d64`,alt:`Giao diện lọc sự kiện với logic AND/OR và các toán tử so sánh`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`1558`,width:`1558`,\"data-og-height\":`942`,height:`942`,\"data-path\":`images/usage-based/UBB-3.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?w=280\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=2cd814d88c0043f59bd0809f62a70932 280w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?w=560\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=6346cf2daf9635f53f9280701b1fefc2 560w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?w=840\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=d5b459ab63581aa80b9ddcd6a2d9be25 840w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?w=1100\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=95c547968201d65d65981b0dc6271c0a 1100w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?w=1650\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=52e270bd88d839ea0c148fcfadbbf7dd 1650w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-3.png?w=2500\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=f737d26f50ab2a4cc45cc03927936d4e 2500w`})}),_jsx(_components.p,{children:`Thêm điều kiện để lọc các sự kiện được tính:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Logic AND`}),`: Tất cả các điều kiện phải khớp`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Logic OR`}),`: Bất kỳ điều kiện nào cũng có thể khớp`]}),`\n`]}),_jsx(_components.p,{children:`Các toán tử so sánh hiện có: bằng, khác, lớn hơn, lớn hơn hoặc bằng, nhỏ hơn, nhỏ hơn hoặc bằng, chứa, không chứa.`}),_jsx(_components.p,{children:`Bật tính năng lọc, chọn logic, sau đó thêm điều kiện với khóa thuộc tính, toán tử so sánh và giá trị.`})]}),_jsx(Step,{title:`Create`,children:_jsxs(_components.p,{children:[`Xem lại cấu hình và nhấp vào `,_jsx(_components.strong,{children:`Create Meter`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`xem-phân-tích`,children:`Xem Phân tích`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=7fb86a266b5aa84f281b680601bd998e`,alt:`Bảng điều khiển phân tích meter hiển thị tổng quan về mức sử dụng, sự kiện và dữ liệu khách hàng`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`1536`,width:`1536`,\"data-og-height\":`1252`,height:`1252`,\"data-path\":`images/usage-based/UBB-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=23a2bbb81a88052bec92772f03254690 280w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=b9ebba13d62c1e5e0470097382319a8c 560w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=2cb2348f913ebdc8175d07c533553d74 840w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=84b14f137b8f737d8e269cb9c2213915 1100w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=9059aafa1890c7a834a0acbd2a115567 1650w, https://mintcdn.com/dodopayments/w9oVTi6CzZMAOQA3/images/usage-based/UBB-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=w9oVTi6CzZMAOQA3\u0026q=85\u0026s=7a1008d882d31dc4699b07353c4121f6 2500w`})}),`\n`,_jsx(_components.p,{children:`Bảng điều khiển meter hiển thị:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Overview`}),`: Tổng mức sử dụng và xu hướng sử dụng theo thời gian`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Events`}),`: Các sự kiện riêng lẻ đã nhận và metadata của chúng`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Customers`}),`: Tổng mức sử dụng và các khoản phí theo từng khách hàng`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`thanh-toán-bằng-tín-chỉ-thay-vì-tiền-tệ`,children:`Thanh toán bằng tín chỉ thay vì tiền tệ`}),`\n`,_jsx(_components.p,{children:`Theo mặc định, meter tính phí khách hàng theo từng đơn vị bằng đô la (hoặc loại tiền tệ bạn đã cấu hình). Thay vào đó, bạn có thể cấu hình meter để trừ vào số dư credit của khách hàng, nhờ đó mức sử dụng sẽ tiêu thụ credit thay vì tạo ra khoản phí bằng tiền.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Tính năng khấu trừ dựa trên credit yêu cầu một `,_jsx(_components.a,{href:`/features/credit-based-billing`,children:`Credit Entitlement`}),` được gắn với cùng một product. Trước tiên, hãy tạo credit entitlement, sau đó liên kết entitlement đó với meter.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`khi-nào-nên-dùng-khấu-trừ-theo-tín-chỉ`,children:`Khi nào nên dùng khấu trừ theo tín chỉ`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Scenario`}),_jsx(_components.th,{children:`Standard (currency)`}),_jsx(_components.th,{children:`Credit-based`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Định giá đơn giản theo từng đơn vị ($0.01/lần gọi)`}),_jsx(_components.td,{children:`✅ Phù hợp nhất`}),_jsx(_components.td,{children:`Chi phí không cần thiết`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Gói credit trả trước (mua 10K token, sử dụng theo thời gian)`}),_jsx(_components.td,{children:`❌ Không thể thể hiện`}),_jsx(_components.td,{children:`✅ Phù hợp nhất`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Mức sử dụng đi kèm subscription (gói Pro bao gồm 100K lượt gọi)`}),_jsx(_components.td,{children:`Có thể thực hiện qua ngưỡng miễn phí`}),_jsx(_components.td,{children:`✅ Tốt hơn: credit được chuyển tiếp, hết hạn và hiển thị trong portal`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Product có nhiều meter dùng chung một credit pool`}),_jsx(_components.td,{children:`❌ Mỗi meter tính phí riêng`}),_jsx(_components.td,{children:`✅ Tất cả meter đều trừ từ một số dư`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cấu-hình-đồng-hồ-để-khấu-trừ-tín-chỉ`,children:`Cấu hình đồng hồ để khấu trừ tín chỉ`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Create a Credit Entitlement`,children:[_jsxs(_components.p,{children:[`Trước tiên, hãy tạo credit entitlement trong `,_jsx(_components.strong,{children:`Products → Credits`}),`. Xác định đơn vị (ví dụ: “API Calls”, “Tokens”), độ chính xác và các cài đặt vòng đời (hết hạn, chuyển tiếp, overage).`]}),_jsxs(_components.p,{children:[`Xem `,_jsx(_components.a,{href:`/features/credit-based-billing`,children:`Hướng dẫn Thanh toán theo tín chỉ`}),` để biết hướng dẫn chi tiết.`]})]}),_jsx(Step,{title:`Create or Edit a Usage-Based Product`,children:_jsxs(_components.p,{children:[`Vào sản phẩm tính phí theo mức sử dụng và mở phần cấu hình `,_jsx(_components.strong,{children:`Meter`}),`.`]})}),_jsx(Step,{title:`Add a Meter`,children:_jsxs(_components.p,{children:[`Nhấp nút `,_jsx(_components.strong,{children:`+`}),` để đính kèm một đồng hồ. Cấu hình tên sự kiện, kiểu tổng hợp và đơn vị đo như thường lệ.`]})}),_jsxs(Step,{title:`Enable 'Bill Usage in Credits'`,children:[_jsxs(_components.p,{children:[`Bật `,_jsx(_components.strong,{children:`Bill usage in Credits`}),` trong cấu hình meter để hiển thị các cài đặt credit:`]}),_jsx(Frame,{caption:`Toggle 'Bill usage in Credits' to switch from currency-based to credit-based deduction.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=b4ef2fe5079cbf3bb39eb3814f101cbd`,alt:`Cấu hình đồng hồ đo với tùy chọn bật Tính phí sử dụng trong Tín dụng`,style:{maxHeight:`500px`,width:`auto`},\"data-og-width\":`2880`,width:`2880`,\"data-og-height\":`2282`,height:`2282`,\"data-path\":`images/CBB/Desktop - Attach Credit - UBB-5.jpg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?w=280\u0026fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=0f765142d0ca9ab3916a4f01d4ca170e 280w, https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?w=560\u0026fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=6bf59eadfa5cd6c865d0ac90e760854b 560w, https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?w=840\u0026fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=a995ab0ab4952c8cfd90279c2d6bf472 840w, https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?w=1100\u0026fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=7971d02b844038a9978418b23c7b8071 1100w, https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?w=1650\u0026fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=c69a3883012f141c59228a0fb3a7655f 1650w, https://mintcdn.com/dodopayments/ibNfoFRyCIGyt3pO/images/CBB/Desktop%20-%20Attach%20Credit%20-%20UBB-5.jpg?w=2500\u0026fit=max\u0026auto=format\u0026n=ibNfoFRyCIGyt3pO\u0026q=85\u0026s=68e2d8094dbec7704060f0a28ea10a2f 2500w`})}),_jsx(ParamField,{path:`Credit Entitlement`,type:`string`,required:true,id:`param-credit-entitlement`,children:_jsx(_components.p,{children:`Chọn credit entitlement mà meter này sẽ trừ vào.`})}),_jsxs(ParamField,{path:`Meter units per credit`,type:`number`,required:true,id:`param-meter-units-per-credit`,children:[_jsx(_components.p,{children:`Số đơn vị sử dụng cần thiết để khấu trừ 1 tín chỉ. Ví dụ:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1`}),` = mỗi sự kiện đồng hồ khấu trừ 1 tín chỉ`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`100`}),` = 100 sự kiện đồng hồ khấu trừ 1 tín chỉ`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`1000`}),` = 1.000 cuộc gọi API tiêu thụ 1 tín chỉ`]}),`\n`]})]})]}),_jsxs(Step,{title:`Free Threshold and Credits`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Free Threshold`}),` áp dụng cho các meter được tính phí bằng tiền, không áp dụng cho các meter được tính phí bằng credit. Khi meter tính phí bằng credit, mọi đơn vị đều được tính vào khoản khấu trừ credit.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Ví dụ`}),`: Với meter-units-per-credit là 1, khách hàng thực hiện 2,500 lệnh gọi API sẽ bị khấu trừ 2,500 credit.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`cách-khấu-trừ-tín-chỉ-hoạt-động`,children:`Cách khấu trừ tín chỉ hoạt động`}),`\n`,_jsx(_components.p,{children:`Sau khi được cấu hình, quy trình khấu trừ chạy tự động:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sự kiện được gửi đến`}),` — Ứng dụng của bạn gửi các sự kiện sử dụng thông qua `,_jsx(_components.a,{href:`/features/usage-based-billing/event-ingestion`,children:`Event Ingestion API`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Meter tổng hợp`}),` — Các sự kiện được tổng hợp theo cấu hình meter của bạn (Count, Sum, Max, Last).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Background worker xử lý`}),` — Mỗi phút, một worker lấy các sự kiện mới kể từ checkpoint gần nhất.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Credit được khấu trừ`}),` — Mức sử dụng đã tổng hợp được chuyển đổi thành credit bằng rate `,_jsx(_components.code,{children:`meter_units_per_credit`}),` và được khấu trừ theo thứ tự FIFO (các khoản cấp credit hết hạn sớm nhất được sử dụng trước).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Overage được theo dõi`}),` — Nếu số dư chạm mức 0, mức sử dụng tiếp theo sẽ được ghi nhận là overage và được xử lý theo hành vi đã cấu hình (được miễn khi reset, tính phí ở hóa đơn tiếp theo hoặc chuyển tiếp dưới dạng thâm hụt). Dodo Payments không chặn mức sử dụng khi số dư cạn kiệt. Để dừng quyền truy cập khi số dư bằng 0, hãy kiểm tra số dư trong ứng dụng của bạn.`]}),`\n`]}),`\n`,_jsx(Mermaid,{chart:`flowchart LR\n A[Usage Event] --> B[Meter Aggregation]\n B --> C{Credits Available?}\n C -->|Yes| D[Deduct from Balance]\n C -->|No| E{Overage Enabled?}\n E -->|Yes| F[Track Overage]\n E -->|No| G[Your App Enforces Limits]\n D --> H[Update Ledger]\n F --> H`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Khấu trừ credit chạy không đồng bộ (khoảng mỗi 1 phút). Có thể có một khoảng trễ ngắn giữa lúc tiếp nhận sự kiện và lúc khấu trừ vào số dư. Hãy thiết kế ứng dụng để xử lý độ trễ này và không dựa vào việc kiểm tra số dư theo thời gian thực để kiểm soát quyền truy cập cho từng request.`})}),`\n`,_jsx(Heading,{level:`3`,id:`nhiều-đồng-hồ-một-pool-tín-chỉ`,children:`Nhiều đồng hồ, một pool tín chỉ`}),`\n`,_jsx(_components.p,{children:`Bạn có thể liên kết nhiều meter trên cùng một product với cùng một credit entitlement. Tất cả meter đều trừ từ một số dư dùng chung.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Ví dụ`}),`: Một nền tảng AI có hai meter:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`text.generation`}),` — 1 credit cho mỗi 1.000 token`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`image.generation`}),` — 10 credit cho mỗi hình ảnh`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Cả hai khấu trừ từ cùng pool “AI Credits”. Khách hàng thấy một số dư thống nhất trong cổng của họ.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Sử dụng các tỷ lệ `,_jsx(_components.code,{children:`meter_units_per_credit`}),` khác nhau giữa các đồng hồ để biểu đạt chi phí tương đối. Các hoạt động tốn kém (tạo hình ảnh) tiêu thụ ít đơn vị đồng hồ trên mỗi tín chỉ hơn các hoạt động rẻ hơn (hoàn thành văn bản).`]})}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`List Customer Ledger`,icon:`scroll`,href:`/api-reference/credit-entitlements/list-customer-ledger`,children:_jsx(_components.p,{children:`Xem toàn bộ lịch sử khấu trừ tín chỉ cho một khách hàng.`})}),_jsx(Card,{title:`Get Customer Balance`,icon:`wallet`,href:`/api-reference/credit-entitlements/get-customer-balance`,children:_jsx(_components.p,{children:`Kiểm tra số dư tín chỉ hiện tại của khách hàng qua API.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`khắc-phục-sự-cố`,children:`Khắc phục sự cố`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Events not appearing`,id:`events-not-appearing`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Tên sự kiện phải khớp chính xác (phân biệt chữ hoa chữ thường)`}),`\n`,_jsx(_components.li,{children:`Kiểm tra để đảm bảo bộ lọc meter không loại trừ các sự kiện`}),`\n`,_jsx(_components.li,{children:`Xác minh ID khách hàng tồn tại trong tài khoản của bạn`}),`\n`,_jsx(_components.li,{children:`Tạm thời tắt bộ lọc để kiểm tra`}),`\n`]})}),_jsx(Accordion,{title:`Aggregation not working`,id:`aggregation-not-working`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Xác minh Over Property khớp chính xác với khóa metadata`}),`\n`,_jsxs(_components.li,{children:[`Sử dụng số, không phải chuỗi: `,_jsx(_components.code,{children:`tokens: 150`}),` chứ không phải `,_jsx(_components.code,{children:`tokens: \"150\"`})]}),`\n`,_jsx(_components.li,{children:`Bao gồm các thuộc tính bắt buộc trong tất cả sự kiện`}),`\n`]})}),_jsx(Accordion,{title:`Filters not working`,id:`filters-not-working`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Khớp chính xác chữ hoa chữ thường`}),`\n`,_jsx(_components.li,{children:`Sử dụng toán tử phù hợp với kiểu dữ liệu`}),`\n`,_jsx(_components.li,{children:`Đảm bảo sự kiện bao gồm các thuộc tính được lọc`}),`\n`]})}),_jsx(Accordion,{title:`Wrong usage totals`,id:`wrong-usage-totals`,children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Kiểm tra tab Events để đếm số sự kiện thực tế đã nhận`}),`\n`,_jsx(_components.li,{children:`Xác minh loại tổng hợp (Count hay Sum)`}),`\n`,_jsx(_components.li,{children:`Đảm bảo các giá trị là số đối với Sum và Max`}),`\n`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`bước-tiếp-theo`,children:`Bước tiếp theo`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Send Events`,icon:`bolt`,href:`/features/usage-based-billing/event-ingestion`,children:_jsx(_components.p,{children:`Bắt đầu gửi sự kiện sử dụng từ ứng dụng của bạn đến các đồng hồ.`})}),_jsx(Card,{title:`View Blueprints`,icon:`copy`,href:`/features/usage-based-billing/ingestion-blueprints`,children:_jsx(_components.p,{children:`Sử dụng các cấu hình đồng hồ dựng sẵn cho các trường hợp phổ biế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":{"sidebarTitle":"Công tơ","title":"Công tơ","description":"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.","icon":"sliders","keywords":["Dodo Payments","đồng hồ đo sử dụng","đo lường","theo dõi tiêu thụ","tổng hợp"],"href":"/vi/features/usage-based-billing/meters"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Tài nguyên API","slug":"tài-nguyên-api","depth":2,"children":[]},{"title":"Tạo một Công tơ","slug":"tạo-một-công-tơ","depth":2,"children":[]},{"title":"Xem Phân tích","slug":"xem-phân-tích","depth":2,"children":[]},{"title":"Thanh toán bằng tín chỉ thay vì tiền tệ","slug":"thanh-toán-bằng-tín-chỉ-thay-vì-tiền-tệ","depth":2,"children":[{"title":"Khi nào nên dùng khấu trừ theo tín chỉ","slug":"khi-nào-nên-dùng-khấu-trừ-theo-tín-chỉ","depth":3,"children":[]},{"title":"Cấu hình đồng hồ để khấu trừ tín chỉ","slug":"cấu-hình-đồng-hồ-để-khấu-trừ-tín-chỉ","depth":3,"children":[]},{"title":"Cách khấu trừ tín chỉ hoạt động","slug":"cách-khấu-trừ-tín-chỉ-hoạt-động","depth":3,"children":[]},{"title":"Nhiều đồng hồ, một pool tín chỉ","slug":"nhiều-đồng-hồ-một-pool-tín-chỉ","depth":3,"children":[]}]},{"title":"Khắc phục sự cố","slug":"khắc-phục-sự-cố","depth":2,"children":[]},{"title":"Bước tiếp theo","slug":"bước-tiếp-theo","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dodopayments/0ee82a08f7b65bcb/seo.js","/_mintlify/custom/dodopayments/6f88c9bbee313616/assistant-loader.js"],"subdomain":"dodopayments","siteName":"Dodo Payments Documentation","title":"Công tơ - Dodo Payments Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/features/usage-based-billing/meters","matchLevel":1},"es":{"href":"/es/features/usage-based-billing/meters","matchLevel":1},"ar":{"href":"/ar/features/usage-based-billing/meters","matchLevel":1},"fr":{"href":"/fr/features/usage-based-billing/meters","matchLevel":1},"de":{"href":"/de/features/usage-based-billing/meters","matchLevel":1},"id":{"href":"/id/features/usage-based-billing/meters","matchLevel":1},"ja":{"href":"/ja/features/usage-based-billing/meters","matchLevel":1},"ko":{"href":"/ko/features/usage-based-billing/meters","matchLevel":1},"pt-BR":{"href":"/pt-BR/features/usage-based-billing/meters","matchLevel":1},"vi":{"href":"/vi/features/usage-based-billing/meters","matchLevel":0},"cn":{"href":"/cn/features/usage-based-billing/meters","matchLevel":1},"hi":{"href":"/hi/features/usage-based-billing/meters","matchLevel":1},"it":{"href":"/it/features/usage-based-billing/meters","matchLevel":1},"sv":{"href":"/sv/features/usage-based-billing/meters","matchLevel":1}}},"lastModified":"2026-09-26T16:06:26.899Z","gitLastModified":"2026-09-26T16:03:47.000Z","originalFileLocation":"vi/features/usage-based-billing/meters.mdx","locale":"vi"},"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=\"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Công tơ - Dodo Payments Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dodopayments.mintlify.site/_mintlify/api/og/v2?division=Usage+Based+Billing\u0026amp;title=C%C3%B4ng+t%C6%A1\u0026amp;description=Chuy%E1%BB%83n+%C4%91%E1%BB%95i+c%C3%A1c+s%E1%BB%B1+ki%E1%BB%87n+s%E1%BB%AD+d%E1%BB%A5ng+th%C3%B4+th%C3%A0nh+c%C3%A1c+s%E1%BB%91+l%C6%B0%E1%BB%A3ng+c%C3%B3+th%E1%BB%83+t%C3%ADnh+ph%C3%AD+v%E1%BB%9Bi+vi%E1%BB%87c+t%E1%BB%95ng+h%E1%BB%A3p+v%C3%A0+l%E1%BB%8Dc.\u0026amp;theme=fcc3a546490e883f7462a320\u0026amp;signature=50d82a1f0c4e863d81170cb7ebec545a15bb15f2f120194028bf3697838762ec\">\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=\"Công tơ - Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dodopayments.mintlify.site/_mintlify/api/og/v2?division=Usage+Based+Billing\u0026amp;title=C%C3%B4ng+t%C6%A1\u0026amp;description=Chuy%E1%BB%83n+%C4%91%E1%BB%95i+c%C3%A1c+s%E1%BB%B1+ki%E1%BB%87n+s%E1%BB%AD+d%E1%BB%A5ng+th%C3%B4+th%C3%A0nh+c%C3%A1c+s%E1%BB%91+l%C6%B0%E1%BB%A3ng+c%C3%B3+th%E1%BB%83+t%C3%ADnh+ph%C3%AD+v%E1%BB%9Bi+vi%E1%BB%87c+t%E1%BB%95ng+h%E1%BB%A3p+v%C3%A0+l%E1%BB%8Dc.\u0026amp;theme=fcc3a546490e883f7462a320\u0026amp;signature=50d82a1f0c4e863d81170cb7ebec545a15bb15f2f120194028bf3697838762ec\">\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=\"/mintlify-assets/_mintlify/favicons/dodopayments/KuV_TozyHuGHOyyc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dodo Payments Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#779812\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/vi/features/usage-based-billing/meters.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.dodopayments.com/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.dodopayments.com/es/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://docs.dodopayments.com/ar/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.dodopayments.com/fr/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.dodopayments.com/de/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://docs.dodopayments.com/id/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.dodopayments.com/ja/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.dodopayments.com/ko/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.dodopayments.com/pt-BR/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.dodopayments.com/cn/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://docs.dodopayments.com/hi/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://docs.dodopayments.com/it/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"sv\" href=\"https://docs.dodopayments.com/sv/features/usage-based-billing/meters\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.dodopayments.com/features/usage-based-billing/meters\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dodopayments.com/#organization\",\"name\":\"Dodo Payments Documentation\",\"url\":\"https://docs.dodopayments.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dodopayments/nM_mJfYkri-OpC5M/logo/light.svg?fit=max\u0026auto=format\u0026n=nM_mJfYkri-OpC5M\u0026q=85\u0026s=23f7a052f7ecb9d6570b7c95ee359a97\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dodopayments.com#website\",\"name\":\"Dodo Payments Documentation\",\"url\":\"https://docs.dodopayments.com\",\"publisher\":{\"@id\":\"https://docs.dodopayments.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters#webpage\",\"url\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters\",\"name\":\"Công tơ\",\"description\":\"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.\",\"dateModified\":\"2026-09-26T16:03:47.000Z\",\"isPartOf\":{\"@id\":\"https://docs.dodopayments.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://docs.dodopayments.com/vi/features/products\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Usage Based Billing\",\"item\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Công tơ\",\"item\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters#article\",\"headline\":\"Công tơ\",\"name\":\"Công tơ\",\"description\":\"Chuyển đổi các sự kiện sử dụng thô thành các số lượng có thể tính phí với việc tổng hợp và lọc.\",\"url\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dodopayments.com/vi/features/usage-based-billing/meters#webpage\"},\"dateModified\":\"2026-09-26T16:03:47.000Z\",\"keywords\":\"Dodo Payments, đồng hồ đo sử dụng, đo lường, theo dõi tiêu thụ, tổng hợp\",\"publisher\":{\"@id\":\"https://docs.dodopayments.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dodopayments.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dodo Payments Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dodo Payments Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/vi/features/usage-based-billing/meters.md","siteName":"Dodo Payments Documentation","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/features/usage-based-billing/meters"}]},{"language":"es","pages":[{"title":"es","href":"/es/features/usage-based-billing/meters"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/features/usage-based-billing/meters"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/features/usage-based-billing/meters"}]},{"language":"de","pages":[{"title":"de","href":"/de/features/usage-based-billing/meters"}]},{"language":"id","pages":[{"title":"id","href":"/id/features/usage-based-billing/meters"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/features/usage-based-billing/meters"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/features/usage-based-billing/meters"}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/features/usage-based-billing/meters"}]},{"language":"vi","tabs":[{"tab":"Docs","icon":"book","groups":[{"group":"Getting Started","pages":[{"title":"Welcome to Dodo Payments","sidebarTitle":"Introduction","icon":"rocket","href":"/vi/introduction"},{"title":"Xây dựng với AI Coding Agents","sidebarTitle":"AI Coding Agents","icon":"robot","href":"/vi/developer-resources/build-with-ai-coding-agents"},{"title":"Di chuyển sang Dodo Payments","icon":"arrow-right-arrow-left","href":"/vi/migrate-to-dodo"},{"title":"Xác minh tài khoản","icon":"id-card","href":"/vi/miscellaneous/verification-process"}]},{"group":"Features","pages":[{"sidebarTitle":"Sản phẩm","title":"Sản phẩm","icon":"box","href":"/vi/features/products"},{"sidebarTitle":"Product Collections","title":"Product Collections","icon":"layer-group","href":"/vi/features/product-collections"},{"sidebarTitle":"Thanh toán một lần","title":"Thanh toán một lần","icon":"credit-card","href":"/vi/features/one-time-payment-products"},{"group":"Subscriptions","icon":"infinity","pages":[{"sidebarTitle":"Subscriptions","title":"Subscriptions","icon":"repeat","href":"/vi/features/subscription"},{"sidebarTitle":"Add-ons","title":"Add-ons for Subscriptions","icon":"puzzle","href":"/vi/features/addons"},{"title":"On-Demand Subscriptions","icon":"bolt","href":"/vi/developer-resources/ondemand-subscriptions"}]},{"group":"Usage Based Billing","icon":"arrow-trend-up","pages":[{"sidebarTitle":"Giới thiệu","title":"Thanh toán dựa trên mức sử dụng","description":"Tính phí khách hàng dựa trên những gì họ thực sự sử dụng với việc đo lường linh hoạt và thanh toán tự động.","icon":"box","href":"/vi/features/usage-based-billing/introduction"},{"sidebarTitle":"Công tơ","title":"Công tơ","icon":"sliders","href":"/vi/features/usage-based-billing/meters"},{"sidebarTitle":"Tiếp Nhận Sự Kiện","title":"Tiếp Nhận Sự Kiện","description":"Gửi các sự kiện sử dụng từ ứng dụng của bạn để theo dõi mức tiêu thụ của khách hàng và hỗ trợ lập hóa đơn.","icon":"bolt","href":"/vi/features/usage-based-billing/event-ingestion"},{"group":"Ingestion Blueprints","icon":"copy","pages":[{"sidebarTitle":"Giới thiệu","title":"Mô hình thu thập dữ liệu","icon":"box","href":"/vi/features/usage-based-billing/ingestion-blueprints"},{"title":"LLM Blueprint","icon":"brain-circuit","href":"/vi/developer-resources/ingestion-blueprints/llm"},{"title":"API Gateway Blueprint","icon":"cloud","href":"/vi/developer-resources/ingestion-blueprints/api-gateway"},{"title":"Kế Hoạch Lưu Trữ Đối Tượng","icon":"box-archive","href":"/vi/developer-resources/ingestion-blueprints/object-storage"},{"title":"Stream Blueprint","icon":"tower-broadcast","href":"/vi/developer-resources/ingestion-blueprints/stream"},{"title":"Mẫu Thời Gian","icon":"clock","href":"/vi/developer-resources/ingestion-blueprints/time-range"}]}]},{"sidebarTitle":"Credit-Based Billing","title":"Credit-Based Billing","icon":"coins","tag":"NEW","href":"/vi/features/credit-based-billing"},{"sidebarTitle":"Thanh Toán Theo Số Ghế","title":"Thanh Toán Theo Số Ghế","icon":"users","href":"/vi/features/seat-based-billing"},{"sidebarTitle":"Thanh Toán Lai","title":"Mô Hình Thanh Toán Lai","icon":"layer-group","href":"/vi/features/hybrid-billing"},{"title":"Upsells \u0026 Downsells","icon":"arrow-up-right-dots","href":"/vi/features/upsells-and-downsells"},{"group":"Customers","icon":"user-group","pages":[{"title":"Customer Management","icon":"user-group","href":"/vi/features/customers"},{"sidebarTitle":"Cổng Thông Tin Khách Hàng","title":"Cổng Thông Tin Khách Hàng","icon":"id-card","href":"/vi/features/customer-portal"},{"title":"Customer Wallets","icon":"wallet","tag":"NEW","href":"/vi/features/customer-wallet"},{"sidebarTitle":"Email đã gửi","title":"Nhật ký email khách hàng","icon":"envelope","tag":"NEW","href":"/vi/features/email-logs"},{"sidebarTitle":"Danh sách chặn khách hàng","title":"Danh sách chặn khách hàng","icon":"user-slash","tag":"NEW","href":"/vi/features/customer-blocklist"}]},{"sidebarTitle":"Giảm giá","title":"Giảm giá","icon":"percent","href":"/vi/features/discount-codes"},{"group":"Recovery","icon":"rotate","tag":"NEW","pages":[{"sidebarTitle":"Tổng quan","title":"Khôi phục Doanh thu","icon":"rotate","href":"/vi/features/recovery/overview"},{"sidebarTitle":"Khôi Phục Giỏ Hàng Bỏ Rơi","title":"Khôi Phục Giỏ Hàng Bỏ Rơi","icon":"cart-shopping","href":"/vi/features/recovery/abandoned-cart-recovery"},{"sidebarTitle":"Thu hồi Đăng ký","title":"Thu hồi Đăng ký","icon":"repeat","href":"/vi/features/recovery/subscription-dunning"},{"sidebarTitle":"Quá trình Lặp lại Thanh toán Đăng ký","title":"Quá trình Lặp lại Thanh toán Đăng ký","icon":"arrow-rotate-right","href":"/vi/features/recovery/payment-retries"},{"sidebarTitle":"Thử lại thủ công","title":"Thử lại thanh toán thủ công","icon":"hand-pointer","tag":"NEW","href":"/vi/features/recovery/manual-retry"}]},{"group":"Transactions","icon":"credit-card","pages":[{"title":"Thanh toán","icon":"money-bill-transfer","href":"/vi/features/transactions/payments"},{"title":"Hoàn tiền","icon":"rotate-left","href":"/vi/features/transactions/refunds"},{"title":"Disputes","icon":"circle-exclamation","href":"/vi/features/transactions/disputes"}]},{"group":"Entitlements","icon":"gift","tag":"NEW","pages":[{"title":"Giới Thiệu","sidebarTitle":"Giới Thiệu","icon":"box-archive","href":"/vi/features/entitlements/introduction"},{"title":"License Keys","icon":"key","href":"/vi/features/license-keys"},{"title":"Digital Product Delivery","sidebarTitle":"Digital Products","icon":"download","href":"/vi/features/digital-product-delivery"},{"title":"Quyền cấp Feature Flag","sidebarTitle":"Feature Flags","icon":"flag","tag":"NEW","href":"/vi/features/entitlements/feature-flags"},{"title":"Quyền lợi trên Discord","sidebarTitle":"Discord","icon":"discord","href":"/vi/features/entitlements/discord"},{"title":"Quyền lợi GitHub","sidebarTitle":"GitHub","icon":"github","href":"/vi/features/entitlements/github"},{"title":"Quyền truy cập Telegram","sidebarTitle":"Telegram","icon":"telegram","href":"/vi/features/entitlements/telegram"},{"title":"Framer Entitlement","sidebarTitle":"Framer","icon":"puzzle-piece","href":"/vi/features/entitlements/framer"},{"title":"Quyền hạn Notion","sidebarTitle":"Notion","icon":"book","href":"/vi/features/entitlements/notion"}]},{"group":"Payouts and Balances","icon":"wallet","pages":[{"title":"Quy trình Thanh toán","icon":"money-bill","href":"/vi/features/payouts/payout-structure"},{"title":"Số dư","icon":"file-invoice-dollar","href":"/vi/features/account-summary-payout-wallet"}]},{"group":"Account Management","icon":"user","pages":[{"sidebarTitle":"Lưu trữ doanh nghiệp","title":"Lưu trữ doanh nghiệp","icon":"box-archive","tag":"NEW","href":"/vi/features/archive-business"},{"title":"Cài đặt Đa Thương Hiệu","icon":"building-columns","href":"/vi/features/multi-brands"},{"title":"Quản lý Hóa Đơn","icon":"file-invoice-dollar","href":"/vi/features/invoice-generation"},{"title":"Thành viên trong nhóm","icon":"user-gear","href":"/vi/features/team"},{"title":"Tùy chọn liên lạc","sidebarTitle":"Tùy chọn liên lạc","icon":"bell","tag":"NEW","href":"/vi/features/communication-preferences"},{"title":"Tài Khoản Của Tôi","icon":"user-gear","href":"/vi/miscellaneous/accounts"}]},{"group":"Pricing","icon":"dollar-sign","pages":[{"sidebarTitle":"Giá Bao Gồm Thuế","title":"Giá Bao Gồm Thuế","icon":"file-invoice","href":"/vi/features/tax-inclusive-pricing"},{"sidebarTitle":"Trả Theo Ý Muốn","title":"Giá Trả Theo Ý Muốn","icon":"dollar-sign","href":"/vi/features/pay-what-you-want"},{"title":"Thanh Toán B2B","icon":"money-bills","href":"/vi/features/b2b-payments"},{"title":"Định Giá Địa Phương","sidebarTitle":"Định Giá Địa Phương","icon":"earth-americas","href":"/vi/features/localized-pricing"},{"sidebarTitle":"Sức mua tương đương","title":"Purchasing Power Parity","tag":"NEW","icon":"money-bill-trend-up","href":"/vi/features/purchasing-power-parity"},{"sidebarTitle":"Charm Pricing","title":"Charm Pricing","tag":"NEW","icon":"tag","href":"/vi/features/charm-pricing"}]},{"sidebarTitle":"Thanh toán","title":"Tính năng Thanh toán","icon":"cart-shopping","href":"/vi/features/checkout"},{"sidebarTitle":"Thiết kế","title":"Tùy chỉnh Thiết kế \u0026 Chủ đề","icon":"palette","tag":"NEW","href":"/vi/features/design"},{"group":"Payment Methods","icon":"money-bill-wave","pages":[{"title":"Payment Methods","sidebarTitle":"Overview","icon":"layer-group","href":"/vi/features/payment-methods"},{"title":"Thẻ tín dụng \u0026 thẻ ghi nợ","sidebarTitle":"Thẻ","icon":"credit-card","href":"/vi/features/payment-methods/cards"},{"title":"Ví điện tử","sidebarTitle":"Ví điện tử","icon":"wallet","href":"/vi/features/payment-methods/digital-wallets"},{"title":"Mua Trước Trả Sau (BNPL)","sidebarTitle":"BNPL","icon":"calendar-days","href":"/vi/features/payment-methods/bnpl"},{"title":"ACH Direct Debit","sidebarTitle":"ACH Direct Debit","icon":"building-columns","href":"/vi/features/payment-methods/ach"},{"title":"Phương thức thanh toán tại India","sidebarTitle":"India","icon":"indian-rupee-sign","href":"/vi/features/payment-methods/india"},{"title":"Phương thức thanh toán tại châu Âu","sidebarTitle":"Châu Âu","icon":"euro-sign","href":"/vi/features/payment-methods/europe"},{"title":"Phương Thức Thanh Toán Hàn Quốc","sidebarTitle":"Hàn Quốc","icon":"won-sign","href":"/vi/features/payment-methods/south-korea"},{"title":"Phương thức thanh toán tại Châu Á - Thái Bình Dương","sidebarTitle":"Châu Á - Thái Bình Dương","icon":"earth-asia","href":"/vi/features/payment-methods/asia-pacific"},{"title":"Pix","sidebarTitle":"Pix","icon":"brazilian-real-sign","href":"/vi/features/payment-methods/pix"},{"title":"Stablecoins","sidebarTitle":"Stablecoins","icon":"dollar-sign","href":"/vi/features/payment-methods/stablecoins"},{"title":"WeChat Pay","sidebarTitle":"WeChat Pay","icon":"comment-dollar","href":"/vi/features/payment-methods/wechat"}]},{"title":"Phân tích của bên thứ ba","sidebarTitle":"Phân tích của bên thứ ba","icon":"chart-line","tag":"NEW","href":"/vi/features/analytics"},{"sidebarTitle":"Tiền Tệ Thích Ứng","title":"Tiền Tệ Thích Ứng","icon":"money-bill-transfer","href":"/vi/features/adaptive-currency"},{"group":"BYOP","icon":"shuffle","tag":"BETA","pages":[{"title":"Mang Theo Bộ Xử Lý Của Bạn (BYOP)","sidebarTitle":"Tổng Quan","tag":"BETA","icon":"boxes-stacked","href":"/vi/features/byop"},{"title":"Stripe - Kết nối \u0026 Raw Card API Access","sidebarTitle":"Stripe","icon":"stripe","href":"/vi/features/byop/stripe"},{"title":"Adyen - Truy cập API Kết nối \u0026 Raw Card","sidebarTitle":"Adyen","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/adyen.svg","href":"/vi/features/byop/adyen"}]},{"title":"Cửa hàng trực tuyến","icon":"store","href":"/vi/features/storefront"},{"title":"Đối tác","icon":"users-line","href":"/vi/features/affiliates"},{"title":"Moderation API","icon":"shield-check","tag":"NEW","href":"/vi/features/moderation"},{"title":"Bán hàng hóa kỹ thuật số trên iOS","icon":"mobile","href":"/vi/features/appstore-digital-goods"},{"title":"Phân tích Bảng điều khiển","sidebarTitle":"Phân tích Bảng điều khiển","icon":"chart-line","href":"/vi/features/analytics-and-reporting"},{"title":"Báo cáo","sidebarTitle":"Báo cáo","icon":"file-invoice","href":"/vi/features/reports"}]},{"group":"Integrate","pages":[{"group":"SDKs","icon":"box-open","pages":[{"sidebarTitle":"Tổng quan","title":"SDK chính thức","icon":"box","href":"/vi/developer-resources/dodo-payments-sdks"},{"title":"TypeScript","icon":"js","href":"/vi/developer-resources/sdks/typescript"},{"title":"Python","icon":"python","href":"/vi/developer-resources/sdks/python"},{"title":"Go","icon":"golang","href":"/vi/developer-resources/sdks/go"},{"title":"Ruby","icon":"gem","href":"/vi/developer-resources/sdks/ruby"},{"title":"Java","icon":"java","href":"/vi/developer-resources/sdks/java"},{"title":"Kotlin","icon":"k","href":"/vi/developer-resources/sdks/kotlin"},{"title":"PHP","icon":"php","href":"/vi/developer-resources/sdks/php"},{"title":"C#","icon":"c","href":"/vi/developer-resources/sdks/csharp"},{"title":"Rust","icon":"rust","href":"/vi/developer-resources/sdks/rust"}]},{"group":"Mobile Checkout SDKs","icon":"mobile","pages":[{"title":"Mobile Integration Guide","sidebarTitle":"Integration Guide","icon":"mobile","href":"/vi/developer-resources/mobile-integration"},{"title":"Android","sidebarTitle":"Android","tag":"NEW","icon":"android","href":"/vi/developer-resources/sdks/android"},{"title":"iOS","sidebarTitle":"iOS","tag":"NEW","icon":"apple","href":"/vi/developer-resources/sdks/ios"},{"title":"React Native","sidebarTitle":"React Native","tag":"NEW","icon":"react","href":"/vi/developer-resources/sdks/react-native"},{"title":"Flutter","sidebarTitle":"Flutter","tag":"NEW","icon":"layer-group","href":"/vi/developer-resources/sdks/flutter"}]},{"group":"Framework Adaptors","icon":"frame","pages":[{"sidebarTitle":"Tổng quan","title":"Tổng quan về các bộ chuyển đổi Framework","icon":"box","href":"/vi/developer-resources/framework-adaptors"},{"title":"Next.js Adaptor","icon":"code-merge","href":"/vi/developer-resources/nextjs-adaptor"},{"title":"Adaptor Better Auth","icon":"code-merge","href":"/vi/developer-resources/better-auth-adaptor"},{"title":"Thành phần Convex","icon":"code-merge","href":"/vi/developer-resources/convex-component"},{"title":"Bộ chuyển đổi TanStack","icon":"code-merge","href":"/vi/developer-resources/tanstack-adaptor"},{"title":"Bộ chuyển đổi Nuxt","icon":"code-merge","href":"/vi/developer-resources/nuxt-adaptor"},{"title":"Express Adaptor","icon":"code-merge","href":"/vi/developer-resources/express-adaptor"},{"title":"Astro Adaptor","icon":"code-merge","href":"/vi/developer-resources/astro-adaptor"},{"title":"SvelteKit Adaptor","icon":"code-merge","href":"/vi/developer-resources/sveltekit-adaptor"},{"title":"Hono Adaptor","icon":"code-merge","href":"/vi/developer-resources/hono-adaptor"},{"title":"Bộ điều hợp Remix","icon":"code-merge","href":"/vi/developer-resources/remix-adaptor"},{"title":"Bộ chuyển đổi Fastify","icon":"code-merge","href":"/vi/developer-resources/fastify-adaptor"},{"title":"Bun Adaptor","icon":"code-merge","href":"/vi/developer-resources/bun-adaptor"}]},{"group":"Webhooks","icon":"webhook","pages":[{"sidebarTitle":"Overview","title":"Webhooks","icon":"webhook","href":"/vi/developer-resources/webhooks"},{"title":"Hướng dẫn về Webhook Events","icon":"bell","href":"/vi/developer-resources/webhooks/intents/webhook-events-guide"},{"group":"Webhook Payloads","icon":"code","pages":[{"title":"Thanh toán","icon":"credit-card","href":"/vi/developer-resources/webhooks/intents/payment"},{"sidebarTitle":"Gói đăng ký","title":"Webhook của gói đăng ký","icon":"repeat","href":"/vi/developer-resources/webhooks/intents/subscription"},{"title":"Hoàn tiền","icon":"rotate-left","href":"/vi/developer-resources/webhooks/intents/refund"},{"sidebarTitle":"Tranh chấp","title":"Webhook Tranh chấp","icon":"circle-exclamation","href":"/vi/developer-resources/webhooks/intents/dispute"},{"title":"Khóa Bản Quyền","icon":"key","href":"/vi/developer-resources/webhooks/intents/license-key"},{"title":"Trao Quyền","icon":"gift","href":"/vi/developer-resources/webhooks/intents/entitlement-grant"},{"sidebarTitle":"Thanh toán dựa trên credit","title":"Webhook Thanh toán dựa trên credit","icon":"coins","href":"/vi/developer-resources/webhooks/intents/credit"},{"title":"Khôi phục","icon":"rotate","href":"/vi/developer-resources/webhooks/intents/recovery"},{"sidebarTitle":"Chi trả","title":"Webhook chi trả","icon":"money-bill-transfer","href":"/vi/developer-resources/webhooks/intents/payout"}]},{"group":"Deploy to Cloud","icon":"rocket","pages":[{"title":"Vercel Functions","icon":"triangle","href":"/vi/developer-resources/webhooks/examples/vercel-example"},{"title":"Cloudflare Workers","icon":"cloud","href":"/vi/developer-resources/webhooks/examples/cloudflare-example"},{"title":"Supabase Edge Functions","icon":"bolt","href":"/vi/developer-resources/webhooks/examples/supabase-example"},{"title":"Netlify Functions","icon":"diamond","href":"/vi/developer-resources/webhooks/examples/netlify-example"}]}]},{"group":"Testing \u0026 Demo Tools","icon":"flask","pages":[{"title":"Chế độ Kiểm Tra vs Chế độ Trực Tiếp","icon":"toggle-on","href":"/vi/miscellaneous/test-mode-vs-live-mode"},{"title":"Testing Process","icon":"flask","href":"/vi/miscellaneous/testing-process"},{"title":"Sản phẩm Demo Atlas","icon":"palette","href":"/vi/features/atlas-demo-website"}]},{"group":"Boilerplates","icon":"box-open","pages":[{"sidebarTitle":"Expo","title":"Mẫu Expo","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/expo.svg","tag":"NEW","href":"/vi/developer-resources/expo-boilerplate"},{"sidebarTitle":"Supabase","title":"Boilerplate Supabase","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/supabase.svg","href":"/vi/developer-resources/supabase-boilerplate"},{"sidebarTitle":"Figma Plugin","title":"Plugin Figma","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/figma.svg","href":"/vi/integrations/figma-plugin"},{"sidebarTitle":"Next.js","title":"Next.js Minimal Boilerplate","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/nextjs.svg","href":"/vi/developer-resources/nextjs-boilerplate"},{"sidebarTitle":"Astro","title":"Astro Minimal Boilerplate","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/astro.svg","href":"/vi/developer-resources/astro-boilerplate"},{"sidebarTitle":"FastAPI","title":"Mẫu FastAPI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dodopayments/images/logos/fastapi.svg","tag":"NEW","href":"/vi/developer-resources/fastapi-boilerplate"},{"sidebarTitle":"Go","title":"Go Boilerplate","icon":"golang","tag":"NEW","href":"/vi/developer-resources/go-boilerplate"}]},{"title":"Dodo CLI","icon":"terminal","tag":"NEW","href":"/vi/developer-resources/sdks/cli"},{"title":"Overlay Checkout","icon":"cart-shopping","href":"/vi/developer-resources/overlay-checkout"},{"title":"Thanh toán Inline","icon":"credit-card","href":"/vi/developer-resources/inline-checkout"},{"title":"Billing SDK","icon":"boxes-stacked","href":"/vi/developer-resources/billingsdk"},{"title":"Dodo Payments MCP Server","icon":"server","href":"/vi/developer-resources/mcp-server"},{"title":"Agent Skills","icon":"wand-magic-sparkles","href":"/vi/developer-resources/agent-skills"},{"sidebarTitle":"Đồng bộ cơ sở dữ liệu","title":"Đồng bộ với cơ sở dữ liệu của bạn","icon":"database","href":"/vi/developer-resources/dodo-sync"},{"sidebarTitle":"Di chuyển đăng ký","title":"Di chuyển đăng ký sang Dodo Payments","icon":"file-import","href":"/vi/miscellaneous/subscription-migration"}]},{"group":"Merchant of Record","pages":[{"sidebarTitle":"MoR là gì?","title":"Giới thiệu","icon":"building-columns","href":"/vi/features/mor-introduction"},{"title":"MoR vs PG","icon":"scale-balanced","href":"/vi/features/mor-vs-pg"},{"title":"Các quốc gia đủ điều kiện để chấp nhận merchant","icon":"globe","href":"/vi/miscellaneous/accepted-countries-and-territories"},{"title":"Chính sách Đánh giá \u0026 Giám sát","icon":"magnifying-glass","href":"/vi/miscellaneous/review-monitoring-policy"},{"sidebarTitle":"Bypass of App Store Fees","title":"Bỏ qua phí App Store \u0026 Play Store bằng Dodo Payments","icon":"shield-check","href":"/vi/features/bypassing-app-store-fees"}]},{"group":"Miscellaneous","pages":[{"group":"Support Channels","icon":"headset","pages":[{"title":"Trợ Giúp và Hỗ Trợ","icon":"headset","href":"/vi/miscellaneous/help-support"},{"title":"Yêu cầu Tính năng và Lịch trình","icon":"lightbulb","href":"/vi/features/feature-request"}]},{"title":"Ứng dụng Di động \u0026 Máy tính để bàn","icon":"mobile","href":"/vi/features/mobile-app"},{"title":"Chính Sách Báo Cáo Bảo Mật","icon":"shield","href":"/vi/miscellaneous/security-policy"}]}]},{"tab":"Guides","icon":"compass","pages":[{"title":"Guides","href":"/vi/developer-resources/integration-guide"}]},{"tab":"API Reference","icon":"rectangle-code","pages":[{"title":"API Reference","href":"/vi/api-reference/introduction"}]},{"tab":"External Integrations","icon":"plug","pages":[{"title":"External Integrations","href":"/vi/integrations/introduction"}]},{"tab":"Changelog","icon":"calendar-days","pages":[{"title":"Changelog","href":"/vi/changelog/introduction"}]},{"tab":"Community Projects","icon":"users","pages":[{"title":"Community Projects","href":"/vi/community/overview"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/features/usage-based-billing/meters"}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/features/usage-based-billing/meters"}]},{"language":"it","pages":[{"title":"it","href":"/it/features/usage-based-billing/meters"}]},{"language":"sv","pages":[{"title":"sv","href":"/sv/features/usage-based-billing/meters"}]}]},"basePath":"","title":"Công tơ - Dodo Payments Documentation","buildId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","deploymentId":"dpl_G2Qd45vZZ7MkBiGF9yYx8ZsbbKXX","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DL7q6v_h.js","DynamicMarkdown-CaSwclgK.js","zoom-image-lightbox-BLUesUNd.js","lightbox-handle-r17bVUz3.js"]}