---
title: "The payout details IN THE CLEAR, for the admin who sends the money."
method: GET
path: "/api/v1/admin/affiliates/{affiliate_id}/payout-details"
tags: ["Affiliate Admin"]
---

# The payout details IN THE CLEAR, for the admin who sends the money.

`GET /api/v1/admin/affiliates/{affiliate_id}/payout-details`

## 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}/payout-details`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Deliberately a separate route from the drawer: reading an affiliate's<br/>application must not hand out their IBAN as a side effect. Every answer<br/>appends an `audit_log` row naming the admin, the affiliate and the route,<br/>which is the record of who saw the credentials and when. The details are<br/>never logged, only returned.

## Path parameters

- `affiliate_id` integer, required

## Response `200`

OK

- AdminPayoutDetailsResponse: Payout details IN THE CLEAR, for the admin who sends the money. The only response in the whole module that is not masked. Reading it writes an `audit_log` row naming the admin who asked.
  - `affiliate_id` integer, required
  - `payout_details` object
  - `payout_method` string, 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)
