Contents

GET /transfers/$WTID#

Provides deposits associated with a given wire transfer. The wire transfer identifier (WTID) and the base URL for tracking the wire transfer are both given in the wire transfer subject.

Request:

Response:

200 OK:

The wire transfer is known to the exchange, details about it follow in the body. The body of the response is a TrackTransferResponse.

404 Not found:

The wire transfer identifier is unknown to the exchange.

interface TrackTransferResponse {
  // Actual amount of the wire transfer, excluding the wire fee.
  total: Amount;

  // Applicable wire fee that was charged.
  wire_fee: Amount;

  // Public key of the merchant (identical for all deposits).
  merchant_pub: EddsaPublicKey;

  // Hash of the payto:// account URI (identical for all deposits).
  h_payto: FullPaytoHash;

  // Time of the execution of the wire transfer by the exchange.
  execution_time: Timestamp;

  // Details about the deposits.
  deposits: TrackTransferDetail[];

  // Signature from the exchange made with purpose
  // TALER_SIGNATURE_EXCHANGE_CONFIRM_WIRE_DEPOSIT
  // over a TALER_WireDepositDataPS.
  exchange_sig: EddsaSignature;

  // Public EdDSA key of the exchange that was used to generate the signature.
  // Should match one of the exchange's signing keys from /keys.  Again given
  // explicitly as the client might otherwise be confused by clock skew as to
  // which signing key was used.
  exchange_pub: EddsaSignature;
}
interface TrackTransferDetail {
  // SHA-512 hash of the contact of the merchant with the customer.
  h_contract_terms: HashCode;

  // Coin's public key, both ECDHE and EdDSA.
  coin_pub: CoinPublicKey;

  // The total amount the original deposit was worth,
  // including fees and after applicable refunds.
  deposit_value: Amount;

  // Applicable fees for the deposit, possibly
  // reduced or waived due to refunds.
  deposit_fee: Amount;

  // Refunds that were applied to the value of
  // this coin. Optional.
  // @since protocol **v19**.  Before, refunds were
  // incorrectly still included in the
  // deposit_value (!).
  refund_total?: Amount;

}