Affiliate Tiers
put/v1/shops/{shopId}/affiliate-tiers/{tierId}

Request

Request body

namestring required

Must not be greater than 100 characters.

percentagenumber required

Must be at least 0. Must not be greater than 100.

discount_percentagenumber required

Must be at least 0. Must not be greater than 100.

is_publicboolean required
sort_orderinteger nullable

Must be at least 0. Must not be greater than 1000.

attribution_modestring

Overrides the shop attribution mode for this tier's affiliates: per_order, lifetime_last or lifetime_first. Null inherits the shop setting.

attribution_window_daysinteger

Overrides the shop attribution window (1-999 days) for links using this tier's codes. Null inherits the shop setting.

Example request

{
  "name": "tjqotbhpzwonwlzospqcs",
  "percentage": 19,
  "discount_percentage": 22,
  "sort_order": 5,
  "attribution_mode": "lifetime_first",
  "attribution_window_days": 14
}

Changes