Core API
...
Core API Docs
Discounts
Update discount priorities
PATCH
https://app.sparklayer.io/api/v1/set-discount-priorities
Live
Header Parameters
Site-Id
string
*
Body Parameters
body
object[]
id
string<uuid>
*
priority
integer
*
Responses
200
Successful response
Discount[]
id
string<uuid>
created_at
string<date-time>
deleted_at
string<date-time>
updated_at
string<date-time>
name
string
internal_name
string
*
internal_slug
string
*
calculation_group
number
*
priority
number
*
times_applicable_per_order
number
*
max_rewards
number
groups
string[]
*
simultaneity
string[]
requirement_selection_type
string<any | all>
*
reward_selection_type
string<all | cheapest | expensive>
*
currency_code
string
*
start_date
string<date-time>
*
end_date
string<date-time>
*
active
boolean
*
requirements
Discount.Requirement[]
*
rewards
Discount.Reward[]
other_requirements
object[]
*
default
Error Response
Updated 24 Sep 2024
Did this page help you?