Discounts
Get a discount
Specify a discount ID to get details for a single discount, including discount settings and configuration.
get/discounts/{discount_id}
Request
- Base URLhttps://api.vrio.app
- URLhttps://api.vrio.app/discounts/{discount_id}
- AuthAPI key in header X-Api-Key
Query parameters
with'discount_cycles' | 'discount_offers'
Expand on the information returned by including 'with' in the query parameters. For multiple attributes, separate with a comma (example : with=discount_cycles,discount_offers)
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.