Update Plan Meter
Updates the included credits, pricing strategy, unit price or per-country prices of a meter attached to a plan.
403 PRODUCT_NOT_ENABLED.credits, pricing_strategy, price_per_credit, country_prices. The same currency rules as Attach Meter to Plan apply. If the meter has been archived (INACTIVE) the metered price is frozen and this call returns 400 PLAN_METER_NOT_FOUND until the meter is reactivated.
PACKAGE/TIERED config is attach-time onlypackage_size, package_price, package_country_prices and tiers cannot be sent to this endpoint — any request containing one of them is rejected with 400 PLAN_METER_PRICING_CONFIG_UNSUPPORTED, regardless of the metered price’s current pricing_strategy. Switching pricing_strategy itself is validated against the metered price’s existing config for the target strategy; an unsupported switch is rejected rather than silently applied. To change a PACKAGE/TIERED config, attach a new meter instead — see the Usage-Based Billing guide.status: INACTIVE), or set credits high enough that no overage is billed.Authorizations
Headers
The account_id found in your Yuno Dashboard (UUID). Required — omitting it returns 400 BAD_REQUEST ("Invalid x-account-code header.").
Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is retried due to network issues or timeouts. Optional, as on the rest of the Yuno API.
Path Parameters
The unique identifier of the plan.
The unique identifier of the meter attached to the plan.
Body
Units included in the plan per billing cycle — the allowance a subscriber can consume before any usage is billed. Must be >= 0. 0 means every unit is billed.
How usage beyond credits is priced: PER_UNIT (billable units × price_per_credit), PACKAGE (bundles of N units, partial bundle counts as a full one) or TIERED (graduated tiers, each band at its own rate).
PER_UNIT, PACKAGE, TIERED Optional explicit per-country price per unit. One entry per country — a repeated country is rejected with 400 INVALID_PARAMETERS. A country not listed falls back to price_per_credit.
Response
200
The unique identifier of the metered price (the plan-meter relation).
Units included in the plan per billing cycle.
PER_UNIT, PACKAGE, TIERED null when inherited from the meter's default_price (USD plans).
Set by Yuno on creation.
Set by Yuno on every update.