{
"price_id": 1,
"coupon_code": "VIP"
}
curl --location --request POST 'http://127.0.0.1:8000/api/v2/user/orders/preview' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"price_id": 1,
"coupon_code": "VIP"
}'
{
"status": "success",
"message": "successful",
"data": {
"amount": 1,
"deduct_amount": 0
},
"time": 1720408983
}