cashless2ecash

cashless2ecash: pay with cards for digital cash (experimental)
Log | Files | Refs | README

commit 74acaf3aa307368793035dadcd5dd409a7ba2104
parent 51abaacf8f58f2f69234c5aff9eaaacaf40822a6
Author: Joel-Haeberli <haebu@rubigen.ch>
Date:   Wed,  6 Mar 2024 11:21:30 +0100

spec: enhance api response codes

Diffstat:
Mspecs/api-nonce2ecash.rst | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/specs/api-nonce2ecash.rst b/specs/api-nonce2ecash.rst @@ -88,7 +88,11 @@ operation (the ``WITHDRAWAL_ID``) to interact with the withdrawal operation and **Response:** :http:statuscode:`204 No content`: - The withdrawal was successfully registered + The withdrawal was successfully registered. + :http:statuscode:`400 Bad request`: + The ``WithdrawRegistration`` request was malformed or contained invalid parameters. + :http:statuscode:`500 Internal Server error`: + The registration of the withdrawal failed due to server side issues. .. http:post:: /withdrawal-operation/$WITHDRAWAL_ID @@ -116,5 +120,9 @@ operation (the ``WITHDRAWAL_ID``) to interact with the withdrawal operation and :http:statuscode:`204 No content`: nonce2ecash received the ``PaymentNotification`` successfully and will further process the withdrawal. + :http:statuscode:`400 Bad request`: + The ``PaymentNotification`` request was malformed or contained invalid parameters. :http:statuscode:`404 Not found`: nonce2ecash does not have a withdrawal registered with the specified ``WITHDRAWAL_ID``. + :http:statuscode:`500 Internal Server error`: + The ``PaymentNotification`` could not be processed due to server side issues.