summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-10-04 17:58:06 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-10-04 17:58:06 +0200
commite9d64452bd321c084132a214511009b4a77fc9f1 (patch)
treee755e01273be70b2eafb2114f659924477eb2c95
parent8c0b4797806abbf86bc80f1d6fd878d580af4feb (diff)
downloaddocs-e9d64452bd321c084132a214511009b4a77fc9f1.tar.gz
docs-e9d64452bd321c084132a214511009b4a77fc9f1.tar.bz2
docs-e9d64452bd321c084132a214511009b4a77fc9f1.zip
/history, not finished
-rw-r--r--api-merchant.rst26
1 files changed, 26 insertions, 0 deletions
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
---------