Core API
...
Core API Docs
Discounts

Update a Discount

PATCH
https://app.sparklayer.io/api/v1/discounts/{id}
Live
Path Parameters
id
*
Header Parameters
Site-Id
*
Body Parameters
body
*
name
internal_name
*
internal_slug
*
calculation_group
*
priority
*
times_applicable_per_order
*
max_rewards
groups
*
simultaneity
requirement_selection_type
*
reward_selection_type
*
currency_code
*
start_date
*
end_date
*
active
*
requirements
*
rewards
other_requirements
*
Responses
200
Successful response
id
created_at
deleted_at
updated_at
name
internal_name
*
internal_slug
*
calculation_group
*
priority
*
times_applicable_per_order
*
max_rewards
groups
*
simultaneity
requirement_selection_type
*
reward_selection_type
*
currency_code
*
start_date
*
end_date
*
active
*
requirements
*
rewards
other_requirements
*
default
Error Response