summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-12-13 16:09:31 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-12-13 16:09:31 +0100
commitdf608421200623029a0a51d9d7592462972330ba (patch)
tree52b4ad1ea1a31b264c9afa000b560afcefb89636
parent0b26e16782eb414da8864d76ba925fccacae133d (diff)
downloaddocs-df608421200623029a0a51d9d7592462972330ba.tar.gz
docs-df608421200623029a0a51d9d7592462972330ba.tar.bz2
docs-df608421200623029a0a51d9d7592462972330ba.zip
#4836
-rw-r--r--api-merchant.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/api-merchant.rst b/api-merchant.rst
index 96cbc146..1cf8146e 100644
--- a/api-merchant.rst
+++ b/api-merchant.rst
@@ -146,6 +146,35 @@ The Frontent HTTP API
necessary since the request to ``$pay_url`` must be made from the merchant's
origin domain in order to preserve information (e.g. cookies, origin header).
+.. http:get:: /history
+
+ Return a list of fulfilled contracts. Typically used by backoffice interfaces.
+
+ **Request**
+
+ :query days: a number indicating that we request contracts from now up to `days` days ago.
+
+ **Response**
+
+ :status 200 OK: The response is a JSON array of `TransactionHistory`_.
+
+.. http:get:: /map
+
+ Takes a hashcode and return the related contract. Typically used by backoffice interfaces.
+
+ **Request**
+
+ :query h_contract: hashcode of the contract we want to retrieve.
+
+ **Return**
+
+ :status 200 OK:
+ The body contains a `contract`_ corresponding to `h_contract`.
+
+ :status 404 Not Found:
+ There is no contract corresponding to `h_contract`.
+
+
------------------------------
The Merchant Backend HTTP API
------------------------------