{"components":{"schemas":{"api_handler_billing.Object":{"properties":{"id":{"description":"ID is its prefixed id.","example":"cust_1a2b3c4d","type":"string"},"object":{"description":"Object names the kind: customer, invoice, contract, …","example":"customer","type":"string"}},"type":"object"},"apierr.ErrBody":{"properties":{"code":{"description":"Code is the spec's machine-readable code for this error, in snake\ncase: a domain code such as seat_limit_reached where the refusal has\none, otherwise a generic one such as permission_denied, not_found,\nconflict, invalid_request or service_unavailable.","example":"permission_denied","type":"string"},"details":{"description":"Details are per-field findings, present only on a refusal that has\nthem, e.g. a 422 invalid_theme names each invalid value by its path,\na 422 package_invalid each problem, and a 409 capability_in_use each\ncount by its name.","items":{"$ref":"#/components/schemas/apierr.ErrDetail"},"type":"array","uniqueItems":false},"doc_url":{"description":"DocURL links to documentation about this error, when available.","type":"string"},"message":{"description":"Message is a human-readable description of what went wrong.","example":"You do not have permission to do this.","type":"string"},"object":{"description":"Object is the discriminator; always \"error\".","example":"error","type":"string"},"param":{"description":"Param names the request parameter this error refers to, when applicable.","example":"email","type":"string"},"type":{"description":"Type is the error's category, set by its HTTP status: one of\nvalidation_error, authentication_error, authorization_error,\nnot_found, conflict_error, rate_limit_error, internal_error.","enum":["validation_error","authentication_error","authorization_error","not_found","conflict_error","rate_limit_error","internal_error"],"example":"authorization_error","type":"string"}},"type":"object"},"apierr.ErrDetail":{"properties":{"field":{"description":"Field is where the finding is: for a theme, its dotted path.","example":"global.light.sem-color-primary","type":"string"},"message":{"description":"Message is what is wrong there.","example":"must be a color","type":"string"}},"type":"object"},"apierr.ErrResponse":{"properties":{"error":{"$ref":"#/components/schemas/apierr.ErrBody"}},"type":"object"}},"securitySchemes":{"BearerAuth":{"description":"Access token as \"Bearer <jwt>\"","in":"header","name":"Authorization","type":"apiKey"},"X-Pontive-Instance-ID":{"description":"Instance ID for the request","in":"header","name":"x-pontive-instance-id","type":"apiKey"}}},"info":{"title":"Usage ingest API","version":"1.0"},"openapi":"3.2.0","paths":{"/v1/usage/events":{"post":{"description":"billing.metering.v1.UsageService/IngestUsageEvents (33-metering.md, API Surface; Ingestion; Event types and schemas). The body is a JSON array of 1 to 500 events. Only non-accepted results are listed, and accepted events with schema warnings: each result carries warnings (an accepted event under the event type's validation warn) and violations (one rejected with schema_mismatch under reject), each { code, property, expected }.","operationId":"CreateUsageEvents","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api_handler_billing.Object"}}},"description":"A IngestResult object"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/usage/events","tags":["Billing usage"],"x-pontive-capability":"billing","x-pontive-document":"ingest"}},"/v1/usage/events/void":{"post":{"description":"billing.metering.v1.UsageService/VoidUsageEvents (33-metering.md, API Surface).","operationId":"VoidUsageEvents","parameters":[{"description":"Idempotency key","in":"header","name":"X-Idempotency-Key","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The VoidUsageEventsResponse fields"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"module_required: the instance's billing capability is off"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/apierr.ErrResponse"}}},"description":"Unprocessable Entity"}},"security":[{"BearerAuth":[]}],"summary":"POST /v1/usage/events/void","tags":["Billing usage"],"x-pontive-capability":"billing","x-pontive-document":"ingest"}}},"security":[{"X-Pontive-Instance-ID":[]},{"BearerAuth":[]}],"servers":[{"url":"https://ingest.{region}.pontive.com","variables":{"region":{"default":"us","description":"The region your instance lives in","enum":["us","eu","au"]}}}],"tags":[{"name":"Billing usage","x-displayName":"Billing usage"}]}