Skip to main content
PUT
Update affiliate

Authorizations

X-API-Key
string
header
required

Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Path Parameters

id
integer
required

Affiliate ID.

Body

application/json
email
string<email>
password
string

New password (min 8 chars). Repeating consecutive characters are allowed.

password_repeat
string

Password confirmation.

company_name
string
Maximum string length: 255
firstname
string
Maximum string length: 255
lastname
string
Maximum string length: 255
phone
string
Maximum string length: 64
website_url
string
Maximum string length: 255
status
integer

Affiliate account status (Identity): 1=active, 2=pending, 3=inactive. The field is not range-validated: sending 5 is accepted with a 200/201 and hides the account from the list and from GET by id (404). Sending 1 again restores it.

stage
enum<string>

SCL-13782. Target lifecycle stage. Setting it to dropped suspends the account, and moving it off dropped lifts the suspension and clears dropped_from and stage_reason_id (see stage in the response). The board rules apply: live is set by hand only from another Growth stage (an Activation stage reaches it through the Live Affiliate Threshold) and a card never crosses between the Activation and Growth boards, except on a write that enters or leaves dropped; a write that breaks either is refused with 422. Needs can_change_status_of_affiliates.

Available options:
new,
verification,
negotiation,
onboarding,
live,
scaling,
vip,
at_risk,
no_activity,
dropped
stage_reason_id
integer | null

SCL-13782. Drop reason: the id of a row of the affiliate drop-reason dictionary (affiliate_drop_reasons in the platform lists); an unknown id is refused with 422. Meaningful with stage: dropped or status: 3, and cleared automatically on restore. Optional: a drop without it is accepted and keeps whatever reason is already stored (null unless one was sent earlier). It is not checked against the stage, so sent on its own to an affiliate that is not dropped it is stored as given, and a later drop without a reason keeps it.

api_status
integer

API access: 1=enabled, 2=disabled.

country
integer

Country geoname_id.

geo
string

SCL-13782. Comma-separated country IDs (geoname_id) the affiliate declares it drives traffic to. Distinct from country, the registration country. Used for search and filtering only — it does not restrict where the affiliate's links work. Empty string clears the value.

Maximum string length: 2048
Example:

"3469034,2635167"

region
string
Maximum string length: 128
city
string
Maximum string length: 128
address
string
Maximum string length: 128
postal_code
string
Maximum string length: 16
timezone
string

IANA timezone. A manager may change it whatever "Can change Timezone" is set to (SCL-11174).

Maximum string length: 64
number_format_id
integer
date_format_id
integer
contacts
string

JSON string with contact information.

notes
string
internal_notes
string
payment_details
string

Payment details (JSON string).

referred_by
integer

Referrer affiliate ID.

referral_commission
number

Referral commission percentage.

managers
string

Manager ID or comma-separated IDs.

custom_fields
object

Custom field values.

tags
string

Comma-separated tag labels.

traffic_sources
integer[]
login_redirect_url
string
image_data
string

Base64-encoded image (data:image/png;base64,...).

external_id
string
Maximum string length: 64
trafficback_url
string<uri>

Affiliate-level trafficback URL. All invalid traffic from this affiliate will be redirected to this URL. Overrides offer-level and global trafficback settings. Available on Enterprise and Custom plans only.

Maximum string length: 255

Response

Updated affiliate.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object