Check Voucher Valid
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
Request Code Samples
curl --location --request POST 'http://petfen-voucher.local.com:8086/api/v1/voucher/check-valid' \
--header 'X-Auth-Service: Bearer ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"voucher_id": 1
}'
Responses
application/json {"data":{"code":"SALE20-K3VHSO1I40","code_hash":"4aca5e18471823bd0b06e19b19a80e22806cb6b01ea1174b0146dc98a82106da"}}
Modified at 2025-08-17 10:19:48