Contents

POST /management/wire#

This request will be used to enable a wire method (exchange bank account).

Request:

The request must be a WireSetupMessage.

Response:

204 No content:

The wire method was successfully enabled.

403 Forbidden:

The master signature is invalid.

409 Conflict:

The exchange has a more recent request related to this wire method (replay detected).

Details:

interface WireSetupMessage {

  // Full payto:// URL identifying the account and wire method
  payto_uri: string;

  // Signature using the exchange's offline key
  // over a TALER_MasterWireDetailsPS
  // with purpose TALER_SIGNATURE_MASTER_WIRE_DETAILS.
  master_sig_wire: EddsaSignature;

  // Signature using the exchange's offline key over a
  // TALER_MasterAddWirePS
  // with purpose TALER_SIGNATURE_MASTER_WIRE_ADD.
  master_sig_add: EddsaSignature;

  // When does the wire method become active?
  // Should be the time when the signature was created,
  // using the (monotonic!) local time of the system
  // with the offline master public key. Note that
  // even if the time is in the future, the wire method will
  // become active immediately! Used ONLY to detect replay attacks.
  validity_start: Timestamp;

  // Display label wallets should use to show this
  // bank account.
  // @since protocol **v19**.
  bank_label?: string;

  // *Signed* integer with the display priority for
  // this bank account.
  // @since protocol **v19**.
  priority?: Integer;

}