Contents

GET /config#

Return the protocol version and configuration information about the bank.

Response:

200 OK:

Response is a ConversionConfig.

501 Not implemented:

This server does not support conversion, client should check config response.

Details:

interface ConversionConfig {
  // libtool-style representation of the Bank protocol version, see
  // https://www.gnu.org/software/libtool/manual/html_node/Versioning.html#Versioning
  // The format is "current:revision:age".
  version: string;

  // Name of the API.
  name: "taler-conversion-info";

  // URN of the implementation (needed to interpret 'revision' in version).
  // @since v4, may become mandatory in the future.
  implementation?: string;

  // Currency used by this bank.
  regional_currency: string;

  // How the bank SPA should render this currency.
  regional_currency_specification: CurrencySpecification;

  // External currency used during conversion.
  fiat_currency: string;

  // How the bank SPA should render this currency.
  fiat_currency_specification: CurrencySpecification;

  // Global exchange rate between the regional currency and the fiat
  // currency of the banking system. Use /rate to get the user specific
  // rate.
  conversion_rate: ConversionRate;
}