---
title: "POST /v2/connections/billing/anycost/validate_billing_drop"
method: POST
path: "/v2/connections/billing/anycost/validate_billing_drop"
tags: ["anycost_stream"]
---

# POST /v2/connections/billing/anycost/validate_billing_drop

`POST /v2/connections/billing/anycost/validate_billing_drop`

Validate a single AnyCost Stream Connection Billing Drop.
Note: An uncompressed request body larger than 5 MB will result in a 413 Request Entity Too Large response

## Headers

- `cloudzero-idempotency-key` string
- `cloudzero-test-key` string

## Request body

- AnycostStreamConnectionBillingDrop
  - `month` string — ISO 8601 datetime string (e.g., 2023-10-26T14:27:46+00:00)
  - `operation` 'replace_drop' | 'replace_hourly' | 'sum' — The type of operation to perform on the data. - `replace_drop`: Replace the data with the new data. - `replace_hourly`: Replace the data that have overlapping hours with the new data - `sum`: Append data to the existing data If no prior data exists, a new drop with `data` will be created
  - `data` CbfRow[], required
    - `lineitem/id` string
    - `lineitem/type` 'Usage' | 'Tax' | 'Support' | 'Purchase' | 'CommittedUsePurchase' | 'Discount' | 'Credit' | 'Fee' | 'Adjustment'
    - `lineitem/description` string
    - `time/usage_start` string, required — ISO 8601 datetime string (e.g., 2023-10-26T14:27:46+00:00)
    - `time/usage_end` string — ISO 8601 datetime string (e.g., 2023-10-26T14:27:46+00:00)
    - `resource/id` string
    - `resource/service` string
    - `resource/account` string
    - `resource/region` string
    - `resource/usage_family` string
    - `action/operation` string
    - `action/usage_type` string
    - `action/region` string
    - `action/account` string
    - `usage/amount` string
    - `usage/units` string
    - `cost/cost` string, required — String representation of a dollar amount
    - `cost/discounted_cost` string — String representation of a dollar amount
    - `cost/amortized_cost` string — String representation of a dollar amount
    - `cost/discounted_amortized_cost` string — String representation of a dollar amount
    - `cost/on_demand_cost` string — String representation of a dollar amount
    - `bill/invoice_id` string
    - `k8s/cluster` string
    - `k8s/namespace` string
    - `k8s/deployment` string
    - `k8s/labels` string

## Response `200`

Successful Operation

- object
  - `connection` AnycostStreamConnectionValidateBillingDropSummary
    - `is_valid` boolean
    - `errors` string[]

## Other responses

- `400` — Bad Request Error
- `403` — Forbidden
- `413` — Request Entity Too Large Error

---

[API](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources.md) · [All operations](https://skmtc.dev/cloudzero/apis/cloudzero-api-v2-resources/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudzero/cloudzero-api-v2-resources/revisions/fd805a0e75e5/schema)
