Set up or change the programme
curl -X PUT https://api.subscriby.net/v1/projects/7f3d1c92-8b45-4e6a-9d21-5c8e0a4b6f13/referral-program \
-H "Authorization: Bearer sbt_..." \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reward_kind": "cash",
"commission_type": "percentage",
"commission_value": 20,
"commission_period_months": 6,
"hold_days": 14,
"friend_reward_kind": "free_days",
"friend_reward_days": 3,
"payout_details_label": "PayPal email",
"terms": "One referral per household."
}'
The first PUT creates the programme and answers 201; every later PUT changes only the fields it carries and answers 200. Omitting a field keeps its stored value; a first save without reward_kind is a free-days programme, and without friend_reward_kind gives friends nothing.
Changing the terms is not retroactive, and the affiliates are told. Rewards already in the ledger keep their figures. Every approved or pending affiliate receives the new terms in their chat and by mail when a field they were promised moves: the reward, the commission, the hold, the friend's reward or your own terms text. Who may join, the payout label and the minimum payout are your side and send nothing.
Request
- Base URL: https://api.subscriby.net
- URL: https://api.subscriby.net/v1/projects/{project}/referral-program
- Auth: HTTP bearer
Path parameters
The project, resolved by the route binder.
Headers
A key unique to this operation, such as a fresh UUID. The same key replays the original 2xx response for 24 hours (with Idempotent-Replay: true), so a retry after a timeout never repeats the write; the same key with a different body is refused with 409.
Request body
Response
The programme as written: 201 when this call created it, 200 after.
Changes
No recorded changes to this operation across all 1 revision of this API.