taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 8a4460bfaaa22b0df490d621c35504690109874f
parent 8918201896dba4d55f7344ab0190252d57720633
Author: Jonathan Buchanan <jonathan.russ.buchanan@gmail.com>
Date:   Fri, 17 Jul 2020 02:54:13 -0400

spec merchant forget contract terms

Diffstat:
Mcore/api-merchant.rst | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -1046,6 +1046,39 @@ Payment processing } +.. http:patch:: /private/orders/$ORDER_ID/forget + + Forget fields in an order's contract terms that the merchant no + longer needs. + + **Request:** + + The request must be a `forget request <ForgetRequest>`. The fields specified + must have been marked as forgettable when the contract was created. + + **Response:** + + :status 200 OK: + The merchant deleted the specified fields from the contract of + order $ORDER_ID. + :status 400 Bad request: + The request is malformed or one of the paths is invalid. + :status 404 Not found: + The merchant backend could not find the order or the instance + and thus cannot process the abort request. + :status 409 Conflict: + The request includes a field that was not marked as forgettable, so + the merchant cannot delete that field. + + .. ts:def:: ForgetRequest + + interface ForgetRequest { + + // Array of valid JSON paths to forgettable fields in the order's + // contract terms. + fields: string[]; + } + .. http:get:: /private/orders/$ORDER_ID