commit b1ccf85856086273f2338f435af0026627ab3912 parent dd16417ea395e74b53967e3a3dd62018a0ef6643 Author: Florian Dold <florian@dold.me> Date: Wed, 24 Apr 2024 08:43:45 +0200 terminal API: adjust withdrawal creation Diffstat:
| M | core/api-terminal.rst | | | 15 | ++++++++++++--- |
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/core/api-terminal.rst b/core/api-terminal.rst @@ -170,7 +170,7 @@ Config :http:statuscode:`200 Ok`: The operation was created. The response will be - a `BankWithdrawalOperationStatus`. + a `TerminalWithdrawalSetupResponse`. :http:statuscode:`404 Not found`: A lock was specified but the lock is not known for the given user. @@ -211,8 +211,8 @@ Config // they are using to make this withdrawal. card_fees: Amount; - // ID identifying the withdrawal operation being created. - withdrawal_id: string; + // Unique request ID to make retried requests idempotent. + request_uid: string; // Unique user ID of the user. Optional // in case a user Id is not (yet) known. @@ -225,6 +225,15 @@ Config } + .. ts:def:: TerminalWithdrawalSetupResponse + + interface TerminalWithdrawalSetupResponse { + + // ID identifying the withdrawal operation being created. + withdrawal_id: string; + + } + .. http:post:: /withdrawals/$WITHDRAWAL_ID/confirm