Skip to main content
PATCH
Update commission plans
Requires commission-plans:write. See the commission plans guide for behavior and examples.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Optional retry key, unique within the selected program. Reuse the same key, method, path and validated payload; a conflicting reuse returns 409.

Required string length: 8 - 200
Pattern: ^[\x21-\x7e]+$
X-Program-Id
string

Select the key's original program or a program provisioned by this exact key. Other owned programs remain inaccessible.

Path Parameters

id
string
required

Body

application/json
name
string
Required string length: 1 - 100
commissionRate
number
default:0
Required range: 0 <= x <= 1000000000
commissionType
enum<string>
default:PERCENTAGE
Available options:
PERCENTAGE,
FLAT
numberOfPayments
integer
default:0
Required range: 0 <= x <= 1000000
numberOfMonths
integer
default:0
Required range: 0 <= x <= 1000000
creditAmount
number | null
Required range: 0 <= x <= 1000000000
creditFlatPerPurchase
number | null
Required range: 0 <= x <= 1000000000
creditPerCurrencyUnit
number | null
Required range: 0 <= x <= 1000000000
nonCashCouponId
string | null
Required string length: 1 - 200
nonCashPurchaseTrigger
enum<string> | null
Available options:
FIRST_PURCHASE,
X_PURCHASES
nonCashPurchaseCount
integer | null
Required range: 0 <= x <= 1000000
nonCashPurchaseMonthLimit
integer | null
Required range: 0 <= x <= 1000000
baseCondition
enum<string>
default:ALL
Available options:
ALL,
SOME
paymentTrigger
enum<string>
default:PURCHASE
Available options:
PURCHASE,
SIGNUP
isActive
boolean
default:true
rewardType
enum<string>
default:CASH
Available options:
CASH,
NON_CASH
nonCashRewardType
enum<string> | null
Available options:
COUPON,
CUSTOM_CREDITS
nonCashTrigger
enum<string> | null
Available options:
SIGNUP,
PURCHASE
nonCashSignupsRequired
integer | null
Required range: 0 <= x <= 1000000
nonCashMaxCoupons
integer | null
Required range: 0 <= x <= 1000000
creditType
enum<string> | null
Available options:
SHOPIFY_STORE_CREDITS,
STRIPE_CREDITS,
WOOCOMMERCE_CREDITS,
CREEM_CREDITS,
CUSTOM
creditUnit
string | null
Required string length: 1 - 100
creditMaxTimes
integer | null
Required range: 0 <= x <= 1000000
creditCalculationMode
enum<string> | null
Available options:
FLAT_PER_PURCHASE,
PER_CURRENCY_UNIT
creditPurchaseLimit
integer | null
Required range: 0 <= x <= 1000000
creditPurchaseMonthLimit
integer | null
Required range: 0 <= x <= 1000000
autoApproveAffiliates
boolean
default:true
autoApproveRewards
boolean
default:true
ruleGroups
object[]
Maximum array length: 50
amounts
object[]
Maximum array length: 50
afterPeriods
object[]
Maximum array length: 50

Response

Success; see management guide for state and accounting semantics

Last modified on October 23, 2026