diff options
author | ms <ms@taler.net> | 2021-10-21 09:46:01 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2021-10-21 09:46:01 +0200 |
commit | 8e45ff21dd6fab404b8d1b24dbaee27fea12365a (patch) | |
tree | 0560816fb4d4781ea8d6d3b6bd29bd14a7eb8b65 | |
parent | 9567453d2b2c183dba48ac89ddacb6ac8f3151fd (diff) | |
download | docs-8e45ff21dd6fab404b8d1b24dbaee27fea12365a.tar.gz docs-8e45ff21dd6fab404b8d1b24dbaee27fea12365a.tar.bz2 docs-8e45ff21dd6fab404b8d1b24dbaee27fea12365a.zip |
Access API.
Documenting the new 'transaction' resource.
-rw-r--r-- | core/api-bank-access.rst | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/core/api-bank-access.rst b/core/api-bank-access.rst index 9d9477b..a530760 100644 --- a/core/api-bank-access.rst +++ b/core/api-bank-access.rst @@ -137,6 +137,57 @@ name and account password, at least in the GNU Taler demo bank implementation. :http:statuscode:`422 Unprocessable Entity` (New): The withdraw operation cannot be confirmed because no exchange and reserve public key selection happened before. +------------ +Transactions +------------ + +.. http:GET:: ${BANK_API_BASE_URL}/accounts/${account_name}/transactions + + Retrieve all the transactions where the bank account with the label ``account_name`` + was debited or credited. + + **Response** + + .. ts:def:: BankAccountTransaction + + interface BankAccountTransactionsResponse { + transactions: BankAccountTransaction[]; + } + +.. http:GET:: ${BANK_API_BASE_URL}/accounts/${account_name}/transactions/${transaction_id} + + **Response** + + Retrieve the transaction whose identifier is ``transaction_id``, + in the following format: + + .. ts:def:: BankAccountTransaction + + interface BankAccountTransaction { + + creditorIban: string; + creditorBic: string; + creditorName: string; + + debtorIban: string; + debtorBic: string; + debtorName: string; + + amount: number; + currency: string; + subject: string; + + date: string; // YYYY-MM-DD + uid: string; // transaction (unique) ID + direction: "DBIT" | "CRDT"; + } + + +.. http:POST:: ${BANK_API_BASE_URL}/accounts/${account_name}/transactions + + Create a new transaction where the bank account with the label ``account_name`` is **debited**. + + ---------------------- Registration (Testing) ---------------------- |