Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Marketplace
    • Getting started
      • Partner profile
      • Product
      • Version
      • Service plan
      • Subscription
        • Creating a Linux-based product image
        • Creating a product for Managed Service for Kubernetes
      • Billing of products based on publisher metrics
      • Trial period
    • Access management
    • 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
  • 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
© 2025 Direct Cursus Technology L.L.C.