---
title: "PATCH /admin/affiliates/{id}"
method: PATCH
path: "/admin/affiliates/{id}"
tags: ["affiliate"]
---

# PATCH /admin/affiliates/{id}

`PATCH /admin/affiliates/{id}`

## Request body

- object
  - `name` string
  - `first_name` string
  - `last_name` string
  - `company_name` string
  - `ref_code` string
  - `address_1` string
  - `address_2` string
  - `city` string
  - `state` string
  - `country` string
  - `phone` string
  - `zip` string
  - `facebook` string
  - `twitter` string
  - `instagram` string
  - `website` string
  - `tax_identification_number` string
  - `personal_message` string
  - `admin_note` string
  - `extra_1` string
  - `extra_2` string
  - `extra_3` string
  - `profile_photo` string
  - `commission` object
    - `type` 'percentage' | 'fixed_amount'
    - `amount` integer
    - `on` 'product' | 'order'
  - `coupon` object
    - `discount_type` 'percentage' | 'fixed_amount'
    - `discount_value` integer
    - `code` string
  - `status` 'pending' | 'approved' | 'rejected'

## Response `200`

- unknown

## Other responses

- `403` — Not authenticated

---

[API](https://skmtc.dev/goaffpro/apis/goaffpro-api.md) · [All operations](https://skmtc.dev/goaffpro/apis/goaffpro-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goaffpro/goaffpro-api/revisions/832de9c7d0ae/schema)
