Contents

getQrCodesForPaytoread-onlydeprecated#

This operation is deprecated. Consult the withdrawal transaction details instead.

Get QR code representations of a payto URI, for example to let the user scan the code with a banking app.

Request:

The request must be a GetQrCodesForPaytoRequest object.

Response:

On success, the result is a GetQrCodesForPaytoResponse object.

Details:

All applicable QR code specifications are returned (an EPC QR code and/or a Swiss QR bill); the list is empty when none applies to the given payto URI.

interface GetQrCodesForPaytoRequest {
  paytoUri: string;
}
interface GetQrCodesForPaytoResponse {
  codes: QrCodeSpec[];
}
// Specification of a QR code that includes payment information.
interface QrCodeSpec {
  // Type of the QR code.  Depending on the type, different
  // visual styles might be applied.
  type: SupportedBankQr;

  // Content of the QR code that should be rendered.
  qrContent: string;
}
type SupportedBankQr = "epc-qr" | "spc";