commit 9e48c6b1906d1b9216c1fe5e32907fdecefa8032
parent 648920aa5084a608c30f24e1279b1ae16f544923
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 3 May 2026 20:49:03 +0200
fix #11055 in spec
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst
@@ -29,7 +29,7 @@ Merchant Backend RESTful API
Version History
---------------
-The current protocol version is **v29**.
+The current protocol version is **v30**.
* The Android PoS app is currently targeting **v20**.
* The SPA is currently targeting **vXX**.
@@ -56,6 +56,7 @@ The current protocol version is **v29**.
* ``v28``: adds the ``/kycauth`` endpoint for wire transfer subject
shortening during KYC Auth wire transfers and expands ``/config``.
* ``v29``: adds ``max_pickup_duration`` to templates (for Paivana)
+* ``v30``: adds ``debit_restrictions`` to GET /exchanges (for SPA)
**Upcoming versions:**
diff --git a/core/merchant/get-exchanges.rst b/core/merchant/get-exchanges.rst
@@ -35,6 +35,12 @@
// expire. Missing if we do not have one.
keys_expiration?: Timestamp;
+ // Map of (full) payto://-URLs of the exchange's bank accounts
+ // to the respective debit `AccountRestriction`. Useful to check
+ // if a deposit into the exchange is feasible.
+ // Since **v30**.
+ debit_restrictions: Object;
+
// HTTP status code returned by the exchange when we asked for
// ``/keys``. 0 if we did not receive an HTTP status code.
// Usually 200 for success.