Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Marketplace
    • Getting started
      • Partner profile
      • Product
      • Version
      • Subscription plan
      • Subscription
        • Creating a Linux-based product image
        • Creating a Linux-based BareMetal product
        • Creating a product for Managed Service for Kubernetes
      • Billing of products based on publisher metrics
      • Trial period
      • Cloud Apps product form field reference
      • Calculated expressions in a Cloud Apps product configuration
    • Access management
    • Getting started
    • Access management
    • Audit Trails events

In this article:

  • Development and testing recommendations
  • Integration testing
  1. Partners
  2. Concepts
  3. Billing of products based on publisher metrics

Billing of products based on publisher metrics

Written by
Yandex Cloud
Updated at May 5, 2025
View in Markdown
  • Development and testing recommendations
  • Integration testing

Marketplace provides an API to account for product consumption so that products can track consumption and invoice Yandex Cloud users through Yandex Cloud Billing. Integration with the API is required for any product that uses one or more pricing plans with custom metrics to account for consumption events.

Based on the metrics you set, an application (product) should register consumption events and send this data using the consumption metering API. You can send one or more consumption events per request.

For the specification of the service plan-based billing API, see Marketplace Metering API: REST reference.

Development and testing recommendationsDevelopment and testing recommendations

  • To authenticate your app, use the service account with the marketplace.meteringAgent role.
  • To create a pricing plan for a product with custom metrics, submit a request in the Marketplace partner's account. Use the skuId assigned to the plan to send product consumption records.
  • During installation, your application must verify the user has enough permissions to work with it and that sending consumption events is possible. To do this, send the write request with the validateOnly: true parameter.
  • The application should take into account that an attempt to send consumption events may fail.
  • Before you list your product, we recommend testing its integration with the API using the demo product ID and SKU: productId: f2e4tmlj4qqciunhr7e6 and skuId: dn272e8979uvek5cnuhk. For examples of working with the API, see How to get started with Marketplace Metering API.

Integration testingIntegration testing

For code examples and a test server you can use to check the Metering API integration, see this Github repository.

Was the article helpful?

Previous
Creating a product for Managed Service for Kubernetes
Next
Trial period
© 2026 Direct Cursus Technology L.L.C.