From 42c49693f1da8356eca40562859ac2a1aee6fa55 Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Fri, 13 Feb 2026 14:30:32 +0100 Subject: [PATCH] OVPAY-2442 - Added PATCH /issuedvouchers. --- src/openapi/products/vouchers-se.yaml | 65 +++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/openapi/products/vouchers-se.yaml b/src/openapi/products/vouchers-se.yaml index 5167462..895eb20 100644 --- a/src/openapi/products/vouchers-se.yaml +++ b/src/openapi/products/vouchers-se.yaml @@ -499,6 +499,71 @@ paths: "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d", ], } + patch: + summary: Update the status of one ore more issued vouchers + description: Update the status of one ore more issued vouchers. This can be used to mark a voucher as redeemed, revoked or expired. + tags: + - Vouchers + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + examples: + Mark a voucher as expired: + summary: Mark a single voucher as expired + value: + { + "issuedVouchers": + [ + { + "issuedVoucherId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90", + "voucherStatusId": 5, + }, + ], + } + Mark multiple vouchers as revoked: + summary: Mark multiple vouchers as revoked + value: + { + "issuedVouchers": + [ + { + "issuedVoucherId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90", + "voucherStatusId": 4, + }, + { + "issuedVoucherId": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d", + "voucherStatusId": 4, + }, + ], + } + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/unavailable" + examples: + Successfully updated the status of a single voucher: + summary: Successfully updated the status of a single voucher + value: + { + "issuedVoucherIds": + ["d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90"], + } + Successfully updated the status of multiple vouchers: + summary: Successfully updated the status of multiple vouchers + value: + { + "issuedVoucherIds": + [ + "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90", + "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d", + ], + } components: securitySchemes: bearerToken: