Contents

GET /config#

Return the protocol version and configuration information about the adapter. This specification corresponds to current protocol being version 1.

Response:

200 OK:

The adapter responds with a PreparedTransferConfig object. This request should virtually always be successful.

Details:

type SubjectFormat =
  | "SIMPLE"
  | "URI"
  | "CH_QR_BILL";
interface PreparedTransferConfig {
  // Name of the API.
  name: "taler-prepared-transfer";

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

  // Currency used by this API.
  currency: string;

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

  // Supported formats for registration, there must at least one.
  supported_formats: SubjectFormat[];
}