summaryrefslogtreecommitdiff
path: root/core/api-wire.rst
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-16 16:39:02 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-16 16:39:02 +0100
commitf349433ce1bb4edc398c969f16beb776638ec3eb (patch)
tree8093738a6a6b5caa970ac6a87b1d38e05084d2bd /core/api-wire.rst
parent55b8c088909d26a31549f72b803109096106f5a6 (diff)
downloaddocs-f349433ce1bb4edc398c969f16beb776638ec3eb.tar.gz
docs-f349433ce1bb4edc398c969f16beb776638ec3eb.tar.bz2
docs-f349433ce1bb4edc398c969f16beb776638ec3eb.zip
don't use '406 Not Acceptable', as that refers to content negotiation
Diffstat (limited to 'core/api-wire.rst')
-rw-r--r--core/api-wire.rst18
1 files changed, 1 insertions, 17 deletions
diff --git a/core/api-wire.rst b/core/api-wire.rst
index c97beed..9992be4 100644
--- a/core/api-wire.rst
+++ b/core/api-wire.rst
@@ -52,8 +52,7 @@ Making Transactions
:status 200 OK:
The request has been correctly handled, so the funds have been transferred to
the recipient's account. The body is a `TransactionResponse`
- :status 400 Bad Request: The bank replies with a `BankError` object.
- :status 406 Not Acceptable: The request had wrong currency; the bank replies with a `BankError` object.
+ :status 400 Bad Request: The bank replies with an `ErrorDetail` object.
:status 409 Conflict:
A transaction with the same ``transaction_uid`` but different transaction details
has been submitted before.
@@ -103,18 +102,6 @@ Making Transactions
}
- .. ts:def:: BankError
-
- interface BankError {
-
- // Human readable explanation of the failure.
- error: string;
-
- // Numeric Taler error code (`TALER_ErrorCode`)
- ec: number;
- }
-
-
--------------------------------
Querying the transaction history
--------------------------------
@@ -168,7 +155,6 @@ Querying the transaction history
**Response**
:status 200 OK: JSON object whose field ``incoming_transactions`` is an array of type `IncomingBankTransaction`.
- :status 204 No content: in case no records exist for the targeted user.
.. ts:def:: IncomingBankTransaction
@@ -241,8 +227,6 @@ Querying the transaction history
:status 200 OK:
JSON object whose field ``outgoing_transactions`` is
an array of type `OutgoingBankTransaction`.
- :status 204 No content:
- in case no records exist for the query
.. ts:def:: OutgoingBankTransaction