# Create a transfer

Creates a transfer.

```http
POST https://api.pozy.ai/v1/transfers
```

- Area: Creators / Treasury
- Auth: Authorization: Bearer pz_live_...

## Header parameters

- `Idempotency-Key` (string)

## Request body

Content type: `application/json`

- `payeeId`, string, required: 24 to 24 characters
- `amountCents`, integer, required: At least 1
- `reference`, object
  - `type`, string, required
  - `id`, string, required

## Example request

```bash
curl -X POST "https://api.pozy.ai/v1/transfers" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "payeeId": "6e2802af63395e8f1a4ddc25",
  "amountCents": 1
}'
```

```ts
import { randomUUID } from "node:crypto";

const res = await fetch("https://api.pozy.ai/v1/transfers", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Idempotency-Key": randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    payeeId: "6e2802af63395e8f1a4ddc25",
    amountCents: 1
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.post(
    "https://api.pozy.ai/v1/transfers",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "payeeId": "6e2802af63395e8f1a4ddc25",
        "amountCents": 1,
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 201

- `id`, string
- `payeeId`, string: 24 to 24 characters
- `payeeName`, string: Can be null
- `destinationType`, string: One of `creator`, `ad_account`
- `amountCents`, integer
- `feeCents`, integer
- `totalCents`, integer
- `currency`, string
- `reference`, object
  - `type`, string
  - `id`, string
  - `name`, string: Can be null
- `status`, string: One of `pending`, `paid`, `failed`, `reversed`
- `failureReason`, string: Can be null
- `createdAt`, string (date-time)

```json
{
  "id": "6bfebd43ddc270f6d2c56fc5",
  "payeeId": "6e2802af63395e8f1a4ddc25",
  "payeeName": "Acme",
  "destinationType": "creator",
  "amountCents": 1,
  "feeCents": 1,
  "totalCents": 42,
  "currency": "USD",
  "reference": {
    "type": "string",
    "id": "6bfebd43ddc270f6d2c56fc5",
    "name": "Acme"
  },
  "status": "pending",
  "failureReason": "string",
  "createdAt": "2026-10-02T09:00:00.000Z"
}
```
