commit 949f9fb291e0f71d431f865c453475ca39b35480
parent c2a40c8f6c1f8c2ac0934e5b068c819c25abb838
Author: Florian Dold <florian@dold.me>
Date: Thu, 19 Mar 2026 22:17:06 +0100
exchange: document purse creation error code
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/core/exchange/post-reserves-RESERVE_PUB-purse.rst b/core/exchange/post-reserves-RESERVE_PUB-purse.rst
@@ -12,6 +12,12 @@
The operation succeeded, the exchange confirms that the
purse was allocated.
The response will include a `PurseCreateSuccessResponse` object.
+ :http:statuscode:`400 Bad Request`:
+ The request is invalid. In addition to generic error codes,
+ the following specific error codes may be returned:
+
+ 1. ``TALER_EC_EXCHANGE_RESERVES_PURSE_EXPIRATION_BEFORE_NOW``: The requested purse expiration time is in the past.
+
:http:statuscode:`402 Payment Required`:
The account needs to contain more funding to create more purses.
This response comes with a standard `ErrorDetail` response.