summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine A <>2023-11-27 14:26:18 +0000
committerAntoine A <>2023-11-27 14:26:18 +0000
commitba8550a48d9d819f095910a67c66dab832370ff6 (patch)
tree0d3b39f79d82559ec033ba6239a18ccc9e684c6d
parentb7b223ea2595c0d12b7f2cc725b3310d633f73ce (diff)
downloaddocs-ba8550a48d9d819f095910a67c66dab832370ff6.tar.gz
docs-ba8550a48d9d819f095910a67c66dab832370ff6.tar.bz2
docs-ba8550a48d9d819f095910a67c66dab832370ff6.zip
Update corebank API spec
-rw-r--r--core/api-corebank.rst13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/api-corebank.rst b/core/api-corebank.rst
index 43752ec3..b6536cef 100644
--- a/core/api-corebank.rst
+++ b/core/api-corebank.rst
@@ -165,8 +165,8 @@ Account Management
**Response:**
- :http:statuscode:`201 Created`:
- The account was successfully created.
+ :http:statuscode:`200 OK`:
+ Response is a `RegisterAccountResponse`.
:http:statuscode:`400 Bad request`:
Input data was invalid. For example, the client specified a invalid
phone number or e-mail address.
@@ -178,6 +178,15 @@ Account Management
* ``TALER_EC_BANK_UNALLOWED_DEBIT`` : admin account does not have sufficient funds to grant bonus.
* ``TALER_EC_BANK_RESERVED_USERNAME_CONFLICT`` : a reserved username was attempted, like ``admin`` or ``bank``
+ **Details:**
+
+ .. ts:def:: RegisterAccountResponse
+
+ interface RegisterAccountResponse {
+ // Internal payto URI of this bank account.
+ internal_payto_uri: string;
+ }
+
.. _delete-account:
.. http:delete:: /accounts/$USERNAME