curl --location 'https://api.techrar.com/public-api/v1/vouchers/discount/' \
--header 'app-id: 4' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"app_id": 86,
"code": "Saudi2",
"customer_profile_id": 1,
"cart_price_before_discount": 100,
"cart_price": 100,
"delivery_fee": 100,
"is_pickup": false,
"is_redeeming": false,
"location_id": null,
"city_id": null
}'{
"is_success": false,
"error_reason": "Invalid voucher code",
"id": null,
"code": "Saudi2",
"title": null,
"discount_on": null,
"supports_installments": false,
"override_discount_percentage": false,
"max_discount_amount": 0.0,
"max_cashback_amount": 0.0,
"cashback_amount": 0.0,
"cart_price_discounts": 0.0,
"delivery_fee_discounts": 0.0
}