---
title: "Decline the application. The reason is required and is stored on the row."
method: POST
path: "/api/v1/admin/affiliates/{affiliate_id}/decline"
tags: ["Affiliate Admin"]
---

# Decline the application. The reason is required and is stored on the row.

`POST /api/v1/admin/affiliates/{affiliate_id}/decline`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/admin/affiliates/{affiliate_id}/decline`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

## Path parameters

- `affiliate_id` integer, required

## Request body

- AdminDeclineRequest: A decline. The reason is required, and the service is the one that says so. `reason` accepts an empty string on purpose: the emptiness check lives in `admin_service.decline`, so the refusal carries the machine-readable `reason_required` code that the admin queue shows, rather than a generic validation blob.
  - `reason` string, required

## Response `200`

OK

- AdminAffiliateItem: One affiliate as the admin queue sees it. Wider than the affiliate's own `AffiliateView`: it carries `user_id` and `decided_by_user_id` so the queue can link to the account and show who decided. `payout_details` is masked here exactly as it is everywhere else.
  - `applied_at` string, date-time, nullable
  - `channels` string[]
  - `code` string, required
  - `code_renamed` boolean, required
  - `commission_rate_bps` integer, required
  - `decided_at` string, date-time, nullable
  - `decided_by_user_id` integer, nullable
  - `decline_reason` string, nullable
  - `email` string, required
  - `full_name` string, required
  - `id` integer, required
  - `payout_details` object
  - `payout_method` string, required
  - `phone` string, nullable
  - `status` string, required
  - `terms_accepted_at` string, date-time, nullable
  - `terms_version` string, nullable
  - `user_id` integer, required

## Other responses

- `404`: Not Found
- `422`: Unprocessable Entity

---

[API](https://skmtc.dev/avatarfactory/apis/avatarfactory-api.md) · [All operations](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/avatarfactory/apis/avatarfactory-api/revisions/66fc7aa3f296?raw)
