---
title: "Update affiliate"
method: PUT
path: "/affiliates/{email}"
tags: ["Affiliates"]
---

# Update affiliate

`PUT /affiliates/{email}`

## Request

- Base URL: `https://refgrow.com/api/v1`
- URL: `https://refgrow.com/api/v1/affiliates/{email}`
- Auth: HTTP bearer

## Request body

- UpdateAffiliateBody
  - `email` string, email
  - `referral_code` string
  - `status` 'active' | 'inactive' | 'suspended'
  - `partner_slug` string
  - `payout_method` 'paypal' | 'wise' | 'manual'
  - `paypal_email` string, email
  - `payment_method` string
  - `payment_details` string

## Response `200`

Updated

- object
  - `success` boolean
  - `data` Affiliate
    - `id` integer
    - `user_email` string, email
    - `referral_code` string
    - `partner_slug` string, nullable
    - `status` 'active' | 'inactive' | 'pending' | 'suspended'
    - `clicks` integer
    - `signups` integer
    - `purchases` integer
    - `total_earnings` string
    - `unpaid_earnings` string
    - `payment_method` string, nullable
    - `payment_details` string, nullable
    - `created_at` string, date-time

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/refgrow/apis/refgrow-api.md) - [All operations](https://skmtc.dev/refgrow/apis/refgrow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/refgrow/apis/refgrow-api/revisions/68cce63d08d2?raw)
