feature/OVPAY-2442 #53
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user