---
title: "POST /admin/affiliates"
method: POST
path: "/admin/affiliates"
tags: ["affiliate"]
---

# POST /admin/affiliates

`POST /admin/affiliates`

Create a new affiliate

## Request body

- object
  - `email` string
  - `password` string
  - `password_expired` boolean — Prompts the affiliates to change password upon login
  - `name` string
  - `first_name` string
  - `last_name` string
  - `date_of_birth` string
  - `honorific` string
  - `gender` string
  - `facebook` string
  - `twitter` string
  - `instagram` string
  - `website` string
  - `city` string
  - `state` string
  - `country` string
  - `zip` string
  - `phone` string
  - `address_1` string
  - `address_2` string
  - `company_name` string
  - `tax_identification_number` string
  - `extra_1` string
  - `extra_2` string
  - `extra_3` string
  - `ref_code` string
  - `admin_note` string
  - `personal_message` string
  - `comments` string
  - `updated_at` string
  - `created_at` string
  - `coupon` object
    - `discount_type` 'fixed_amount' | 'percentage'
    - `discount_value` integer
  - `status` 'approved' | 'pending' | 'rejected'
  - `parent_email` string — Email address of the parent affiliate. Useful for building MLM hierarchies

## Response `200`

- object
  - `affiliate_id` number

## 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)
