Contents

POST /management/partners#

Enables a partner exchange for wad transfers.

Request:

The request must be an ExchangePartnerSetupRequest message.

Response:

204 No content:

The partner has been added successfully.

403 Forbidden:

The signature is invalid. This response comes with a standard ErrorDetail response with a code of TALER_EC_EXCHANGE_MANAGEMENT_ADD_PARTNER_SIGNATURE_INVALID.

409 Conflict:

The exchange has previously received a conflicting configuration message. This response comes with a standard ErrorDetail response with a code of TALER_EC_EXCHANGE_MANAGEMENT_ADD_PARTNER_DATA_CONFLICT.

413 Request entity too large:

The uploaded body is to long, it exceeds the size limit. Returned with an error code of TALER_EC_GENERIC_UPLOAD_EXCEEDS_LIMIT.

500 Internal Server Error:

The server experienced an internal error. This response comes with a standard ErrorDetail response with a code of TALER_EC_GENERIC_DB_STORE_FAILED.

Details:

interface ExchangePartnerSetupRequest {

  // Base URL of the partner exchange
  partner_base_url: string;

  // Master (offline) public key of the partner exchange.
  partner_pub: EddsaPublicKey;

  // How frequently will wad transfers be made
  wad_frequency: RelativeTime;

  // Signature by the exchange master key over a
  // TALER_PartnerConfigurationPS.
  // Must have purpose TALER_SIGNATURE_MASTER_PARTNER_DETAILS.
  master_sig: EddsaSignature;

  // When will the partner relationship start (inclusive).
  start_date: Timestamp;

  // When will the partner relationship end (exclusive).
  end_date: Timestamp;

  // Wad fee to be charged (to customers).
  wad_fee: Amount;

}