- POST /management/wire/disable#
This request will be used to disable the use of the given wire method. We use POST instead of DELETE because the exchange will retain state about the wire method (specifically the end date) to prevent replay attacks abusing the WireSetupMessage. Also, DELETE would not support a body, which is needed to provide the signature authorizing the operation.
Request:
The request must be a WireTeardownMessage.
Response:
- 204 No content:
The auditor has successfully disabled the wire method. The body is empty.
- 403 Forbidden:
The signature is invalid.
- 404 Not found:
The wire method is unknown to the exchange.
- 409 Conflict:
The exchange has a more recent request related to this wire method (replay detected).
Details:
interface WireTeardownMessage { // Full payto:// URL identifying the account and wire method payto_uri: string; // Signature using the exchange's offline key over a // TALER_MasterDelWirePS. // with purpose TALER_SIGNATURE_MASTER_WIRE_DEL. master_sig_del: EddsaSignature; // 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 inactive immediately! Used ONLY to detect replay attacks. validity_end: Timestamp; }