Discounts
Validate a discount
Check if the discount is valid for a specific offer.
post/discounts/validate
Request
- Base URLhttps://api.vrio.app
- URLhttps://api.vrio.app/discounts/validate
- AuthAPI key in header X-Api-Key
Request body
Response
OK
Example response
{
"discount_expiration_date": "2023-04-01 00:00:00",
"discount_offers": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00",
"offer_cycles": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00",
"offer_cycle_items": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
],
"charge_timeframe": {
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
}
],
"offer_timeframes": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
],
"offer_swap_options": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.