From e9d64452bd321c084132a214511009b4a77fc9f1 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 4 Oct 2016 17:58:06 +0200 Subject: /history, not finished --- api-merchant.rst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/api-merchant.rst b/api-merchant.rst index fa0d2a63..02d7b13c 100644 --- a/api-merchant.rst +++ b/api-merchant.rst @@ -286,6 +286,32 @@ The following API are made available by the merchant's `backend` to the merchant deposit_fee: Amount; } +.. http:get:: /history + + Returns transactions up to some point in the past + + **Request** + + :query date: only transactions *jounger* than this parameter will be returned. It's a timestamp, given in seconds. + + **Response** + :status 200 OK: + The response is a JSON `array` of `TransactionHistory`_ + + .. _tsref-type-TransactionHistory: + .. _TransactionHistory: + .. code-block:: tsref + + interface TransactionHistory { + // transaction id + transaction_id: number; + + // Hashcode of the relevant contract + TBD FIXME + + + } + --------- Encodings --------- -- cgit v1.2.3