LogoLogo
WarpStream.comSlackDiscordContact UsCreate Account
  • Overview
    • Introduction
    • Architecture
      • Service Discovery
      • Write Path
      • Read Path
      • Life of a Request (Simplified)
    • Change Log
  • Getting Started
    • Install the WarpStream Agent / CLI
    • Run the Demo
    • "Hello World" for Apache Kafka
  • BYOC
    • Run the Agents Locally
    • Deploy the Agents
      • Object Storage Configuration
      • Kubernetes Known Issues
      • Rolling Restarts and Upgrades
    • Infrastructure as Code
      • Terraform Provider
      • Helm charts
      • Terraform Modules
    • Monitoring
      • Pre-made Datadog Dashboard
      • Pre-made Grafana Dashboard
      • Important Metrics and Logs
      • Recommended List of Alerts
      • Monitoring Consumer Groups
      • Hosted Prometheus Endpoint
    • Client Configuration
      • Tuning for Performance
      • Configure Clients to Eliminate AZ Networking Costs
        • Force Interzone Load Balancing
      • Configuring Kafka Client ID Features
      • Known Issues
    • Authentication
      • SASL Authentication
      • Mutual TLS (mTLS)
      • Basic Authentication
    • Advanced Agent Deployment Options
      • Agent Roles
      • Agent Groups
      • Protect Data in Motion with TLS Encryption
      • Low Latency Clusters
      • Network Architecture Considerations
      • Agent Configuration Reference
      • Reducing Infrastructure Costs
      • Client Configuration Auto-tuning
    • Hosted Metadata Endpoint
    • Managed Data Pipelines
      • Cookbooks
    • Schema Registry
      • WarpStream BYOC Schema Registry
      • Schema Validation
      • WarpStream Schema Linking
    • Port Forwarding (K8s)
    • Orbit
    • Enable SAML Single Sign-on (SSO)
    • Trusted Domains
    • Diagnostics
      • GoMaxProcs
      • Small Files
  • Reference
    • ACLs
    • Billing
      • Direct billing
      • AWS Marketplace
    • Benchmarking
    • Compression
    • Protocol and Feature Support
      • Kafka vs WarpStream Configuration Reference
      • Compacted topics
    • Secrets Overview
    • Security and Privacy Considerations
    • API Reference
      • API Keys
        • Create
        • Delete
        • List
      • Virtual Clusters
        • Create
        • Delete
        • Describe
        • List
        • DescribeConfiguration
        • UpdateConfiguration
      • Virtual Clusters Credentials
        • Create
        • Delete
        • List
      • Monitoring
        • Describe All Consumer Groups
      • Pipelines
        • List Pipelines
        • Create Pipeline
        • Delete Pipeline
        • Describe Pipeline
        • Create Pipeline Configuration
        • Change Pipeline State
      • Invoices
        • Get Pending Invoice
        • Get Past Invoice
    • CLI Reference
      • warpstream agent
      • warpstream demo
      • warpstream cli
      • warpstream cli-beta
        • benchmark-consumer
        • benchmark-producer
        • console-consumer
        • console-producer
        • consumer-group-lag
        • diagnose-record
        • file-reader
        • file-scrubber
      • warpstream playground
    • Integrations
      • Arroyo
      • AWS Lambda Triggers
      • ClickHouse
      • Debezium
      • Decodable
      • DeltaStream
      • docker-compose
      • DuckDB
      • ElastiFlow
      • Estuary
      • Fly.io
      • Imply
      • InfluxDB
      • Kestra
      • Materialize
      • MinIO
      • MirrorMaker
      • MotherDuck
      • Ockam
      • OpenTelemetry Collector
      • ParadeDB
      • Parquet
      • Quix Streams
      • Railway
      • Redpanda Console
      • RisingWave
      • Rockset
      • ShadowTraffic
      • SQLite
      • Streambased
      • Streamlit
      • Timeplus
      • Tinybird
      • Upsolver
    • Partitions Auto-Scaler (beta)
    • Serverless Clusters
Powered by GitBook
On this page
  • CURL Example:
  • Response Body (JSON):

Was this helpful?

  1. Reference
  2. API Reference
  3. Invoices

Get Pending Invoice

GET /api/v1/billing/invoices/get_pending_invoice

CURL Example:

curl https://api.warpstream.com/api/v1/billing/invoices/get_pending_invoice \
    -H 'warpstream-api-key: XXXXXXXXXX' \
    -H 'Content-Type: application/json'

Response Body (JSON):

{
    "date_from": "YYYY-MM-DD",
    "date_to": "YYYY-MM-DD",
    "tenants": [
        {
            "tenant_id": "ti_xxx",
            "workspaces": [
                {
                    "workspace_id": "wi_xxx",
                    "clusters": [
                        {
                            "virtual_cluster_id": "vci_xxx",
                            "charges": [
                                {
                                    "product": "Cluster minutes",
                                    "unit_price": 0.23148,
                                    "quantity": 2340,
                                    "total": 5.42
                                }
                            ],
                            "total": 5.42
                        },
                        {
                            "virtual_cluster_id": "vci_xxx",
                            "charges": [
                                {
                                    "product": "Cluster minutes",
                                    "unit_price": 0.23148,
                                    "quantity": 2340,
                                    "total": 5.42
                                },
                                {
                                    "product": "Uncompressed GiB written",
                                    "unit_price": 1,
                                    "quantity": 110.25601800903678,
                                    "total": 1.1
                                },
                                {
                                    "product": "GiB minutes",
                                    "unit_price": 0.00000463,
                                    "quantity": 1343.727466603741,
                                    "total": 0
                                }
                            ],
                            "total": 6.52
                        }
                    ],
                    "total": 11.94
                }
            ],
            "total": 11.94
        },
        {
            "tenant_id": "ti_xxx",
            "workspaces": [
                {
                    "workspace_id": "wi_xxx",
                    "clusters": [
                        {
                            "virtual_cluster_id": "vci_xxx",
                            "charges": [
                                {
                                    "product": "Cluster minutes",
                                    "unit_price": 0.23148,
                                    "quantity": 4680,
                                    "total": 10.83
                                },
                                {
                                    "product": "GiB minutes",
                                    "unit_price": 0.00000463,
                                    "quantity": 1.094845407642424,
                                    "total": 0
                                }
                            ],
                            "total": 10.83
                        }
                    ],
                    "total": 10.83
                }
            ],
            "total": 10.83
        }
    ],
  "account_charges": [
    // Negative charges for commit credits and free credits will appear here, aggregated by "product"
    // Support charges will also appear here
    ],
    "total": 22.77
}

PreviousInvoicesNextGet Past Invoice

Last updated 22 days ago

Was this helpful?