Authorization: Bearer ********************
{
"amount": 300000,
"voucher_code": "SALE20-15VTZA2A9J"
}
curl --location --request POST 'http://petfen-voucher.local.com:8086/api/v1/voucher/calculate-discount' \
--header 'X-Auth-Service: Bearer ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 300000,
"voucher_code": "SALE20-15VTZA2A9J"
}'
{"data":{"code":"SALE20-K3VHSO1I40","code_hash":"4aca5e18471823bd0b06e19b19a80e22806cb6b01ea1174b0146dc98a82106da"}}