v1
latestOpenAPI 3.0.12026-07-2412502.6 MBDiscounts
Get a discount
Specify a discount ID to get details for a single discount, including discount settings and configuration.
get/discounts/{discount_id}
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"
}
]
}
]
}