Skip to main content
GET
/
voucher
Get Voucher List
curl --request GET \
  --url https://blessed-toad-definitely.ngrok-free.app/api/voucher
[
  {
    "id": 123,
    "namaVoucher": "Voucher 12-12",
    "diskonRate": 10,
    "tanggalExpired": "2021-12-31"
  }
]

Response

200 - application/json

Successful response

id
integer

Unique identifier for the voucher

namaVoucher
string

Name of the voucher

Example:

"Voucher 12-12"

diskonRate
number

Discount rate of the voucher

Example:

10

tanggalExpired
string<date>

Expired date of the voucher

Example:

"2021-12-31"