taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 054e4351f850625420ba10a3078bfc078a7cb0d9
parent 70d08696750383d7192fc3f13770c8427e3cca99
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Wed,  3 May 2017 15:41:54 +0200

refining bank's /history spec

Diffstat:
Mapi/api-bank.rst | 18++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/api/api-bank.rst b/api/api-bank.rst @@ -115,9 +115,14 @@ the number of results. .. http:post:: /history -**Request:** The body of this request must have the format of a `HistoryRequest`_. + **Request** + :query direction: Optional parameter that lets the caller specify + only incoming, outgoing, or both types of records. If not given, + then the API will return both types; if set to `credit` (`debit`), + only incoming (outgoing) records are returned. -**Response** JSON array of type `BankTransaction`_. + + **Response** JSON array of type `BankTransaction`_. @@ -135,12 +140,13 @@ the number of results. // Amount transferred amount: Amount; - // "-" if the transfer was outcoming, "+" if it was - // incoming. + // "-" if the transfer was outgoing, "+" if it was + // incoming. This field is only present if the argument + // `direction` was NOT given. sign: string; - // Bank account number of the other party - // involved in the transaction. + // Bank account number of the other party involved in the + // transaction. counterpart: number; }