Affiliate Tiers
post/v1/shops/{shopId}/affiliate-tiers

Request

Request body

namestring required

The tier name.

percentagenumber required

Commission percentage for the tier.

discount_percentagenumber required

Discount buyers get when using a code of this tier.

is_publicboolean required

Public tiers are shown on the storefront affiliate page.

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": "Gold",
  "percentage": 10,
  "discount_percentage": 5,
  "is_public": true,
  "sort_order": 5,
  "attribution_mode": "lifetime_first",
  "attribution_window_days": 14
}

Changes