commit f499340383e660b865fba817c2b8cd0390943953 parent 81f0ced5645be4bb89d59cbe17168a899ed97041 Author: Marcello Stanisci <marcello.stanisci@inria.fr> Date: Thu, 13 Aug 2015 15:44:50 +0200 adding deposit and pay failure responses skeletons Diffstat:
| M | api-merchant.rst | | | 35 | +++++++++++++++++++++++++++++++++++ |
1 file changed, 35 insertions(+), 0 deletions(-)
diff --git a/api-merchant.rst b/api-merchant.rst @@ -280,3 +280,38 @@ The following API are made available by the merchant's backend to the merchant's :reqheader Content-Type: application/json :<json base32 dep_perm: the signed deposit permission (link to the blob above) :<json base32 eddsa_pub: the public key of the customer. + + **Failure Response: TBD ** + + **Error Response: Invalid signature**: + + :status 401 Unauthorized: One of the signatures is invalid. + :resheader Content-Type: application/json + :>json string error: the value is "invalid signature" + :>json string paramter: the value is "coin_sig", "ub_sig" (TODO define this) or "wallet_sig", depending on which signature was deemed invalid by the mint + + + + + + + + + + + + + + + + + + + + + + + + + +