Billing catalog promotion
billing.catalog.v1.CatalogPromotionService/ExportCatalog (34-billing-catalog.md, Promoting a catalog between instances; API Surface; billing-svc docs/questions.md, P113). The whole catalog as one document keyed by key, never by id: { pontive_document: "billing-catalog/v1", event_types, meters, products, features, pricing_units, rate_cards, packages, catalog_rules } (api-route-review D47), every list in key order, written as billing-svc wrote it. Needs sys:billing:read, and answers while billing is off, as every read does.
BearerAuthAuthorization<token>Access token as "Bearer "
A billing-catalog/v1 document
application/json- response
curl -X GET 'https://api.us.pontive.com/v1/billing/catalog'{}billing.catalog.v1.CatalogPromotionService/ImportCatalog (34-billing-catalog.md, Promoting a catalog between instances; API Surface; billing-svc docs/questions.md, P113). Body { document, dry_run, effective_at }: document is a billing-catalog/v1 document, passed to billing-svc byte for byte; dry_run is true when omitted, and returns the plan without applying it; with dry_run false the plan is applied in one transaction; effective_at (RFC 3339, default now) is when changed rates start. Answers the catalog_import_plan: dry_run, effective_at, created, changed, unchanged, absent (each { kind, key, fields }) and conflicts ({ kind, key, field, message }). An apply with conflicts is import_conflict, 409, with one details entry per conflict (field ..), and applies nothing. The body may be up to 6 MiB (an import document is at most 5 MB). Needs sys:billing:manage.
BearerAuthAuthorization<token>Access token as "Bearer "
X-Idempotency-Key?stringIdempotency key, read on an apply only
A catalog_import_plan object
application/json- response
id?stringID is its prefixed id.
object?stringObject names the kind: customer, invoice, contract, …
curl -X POST 'https://api.us.pontive.com/v1/billing/catalog/import'{ "id": "string", "object": "string"}