commit be7a2c47e649e6c7f81eaec23e6e71da8287590a parent cd794638cc32a498ab2545c506d8c0af9bae5d7d Author: Christian Grothoff <christian@grothoff.org> Date: Fri, 27 Nov 2020 14:56:05 +0100 specify new /management/wire-fee endpoint Diffstat:
| M | core/api-exchange.rst | | | 46 | ++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 46 insertions(+), 0 deletions(-)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst @@ -654,6 +654,52 @@ Management operations authorized by master key } +.. http:post:: /management/wire-fee + + This request will be used to configure wire fees. + + **Request:** + + The request must be a `WireFeeSetupMessage`. + + **Response:** + + :http:statuscode:`204 No content`: + The wire fee was successfully configured. + :http:statuscode:`403 Forbidden`: + The master signature is invalid. + :http:statuscode:`409 Conflict`: + The exchange has a conflicting wire fee already setup. + + **Details:** + + .. ts:def:: WireFeeSetupMessage + + interface WireFeeSetupMessage { + + // wire method the fee applies to + wire_method: string; + + // Signature using the exchange's offline key + // with purpose TALER_SIGNATURE_MASTER_WIRE_FEES. + master_sig_wire: EddsaSignature; + + // When does the wire fee validity period start? + fee_start: Timestamp; + + // When does the wire fee validity period end (exclusive). + fee_end: Timestamp; + + // Closing fee to charge during that time period for this wire method. + closing_fee: Amount; + + // Wire fee to charge during that time period for this wire method. + wire_fee: Amount; + + } + + + .. http:post:: /management/wire This request will be used to enable a wire method (exchange bank account).