hetzner-ts
    Preparing search index...

    Billing API

    Returns prices for resources. https://docs.hetzner.cloud/#billing

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    baseUrl: string
    token: string

    Methods

    • Get all prices for resources VAT and currency of the Project owner are used for calculations. Both net and gross prices are included in the response.

      Returns Promise<
          | { response: PricingResponse; success: true }
          | { response: APIError; success: false },
      >

    • Type Parameters

      • T

      Parameters

      • endpoint: string
      • options: RequestInit = {}

      Returns Promise<{ response: T; success: true } | { response: APIError; success: false }>