undo incorrect purchase api documentation changes

This commit is contained in:
Jonas Lochmann
2026-07-13 02:00:00 +02:00
parent 893f3664cf
commit 1e5e74659e
+1 -22
View File
@@ -23,8 +23,7 @@ On a invalid request body: HTTP status code 400 Bad request
On a invalid auth token: HTTP status code 401 Unauthorized On a invalid auth token: HTTP status code 401 Unauthorized
On success: a JSON object with the property ``canDoPurchase`` (string), ``googlePlayPublicKey`` (string, base64) On success: a JSON object with the property ``canDoPurchase`` (string) and ``googlePlayPublicKey`` (string, base64)
and ``permitDebts`` (boolean, optional, default false).
possible values of ``canDoPurchase``: possible values of ``canDoPurchase``:
@@ -34,26 +33,6 @@ possible values of ``canDoPurchase``:
The ``googlePlayPublicKey`` is the key by which purchases using google play should be signed. The ``googlePlayPublicKey`` is the key by which purchases using google play should be signed.
## POST /purchase/finish-purchase-by-debts
Use this to unlock without payment. Limitations apply.
### request
see [this JSON schema](../schema/candopurchaserequest.md)
Note that ``type`` is not used at all.
### response
On a invalid request body: HTTP status code 400 Bad request
On a invalid auth token: HTTP status code 401 Unauthorized
If not granted: HTTP status code 409 Conflict
On success: HTTP status code 200
## POST /purchase/finish-purchase-by-google-play ## POST /purchase/finish-purchase-by-google-play
Use this to report a purchase to the server/ unlock all features after a purchase Use this to report a purchase to the server/ unlock all features after a purchase