Skip to main content
POST
Create Voucher

Body

application/json
namaVoucher
string
required

Name of the voucher

Example:

"Voucher Hari Ini"

diskonRate
number
required

Discount rate of the voucher

Example:

10

tanggalExpired
string<date>
required

Expired date of the voucher

Example:

"2021-12-31"

Response

201

Voucher created successfully