# Payouts and withdrawals (/score-api/endpoints/payouts)



{/* Written by scripts/build-use-cases.mjs from internal/usecases/catalog.json and use-cases/site.json. Change those, not this file. */}

**Hold the risky payout. Release the rest at once.** Score withdrawals, transfers and push payments before the money leaves. Send the payout, the payee and what led up to it, and hold the risky ones.

| Endpoint                | Price           | Group    |
| ----------------------- | --------------- | -------- |
| `POST /v1/score/payout` | $0.005 per call | Payments |

## Request [#request]

Send what you know in one `context` object. `payout` is required; every other field is optional. A field can hold text, JSON or CSV.

<Tabs items="[&#x22;curl&#x22;, &#x22;Python&#x22;, &#x22;TypeScript&#x22;]">
  <Tab value="curl">
    ```bash
    curl https://api.finic.ai/v1/score/payout \
      --header "Authorization: Bearer $FINIC_API_KEY" \
      --header "Content-Type: application/json" \
      --data '{
        "context": {
          "payout": { "amount_usd": 3000, "type": "push_payment" },
          "payee": { "added": "2026-11-25T14:55:12Z", "account_type": "personal", "same_bank": false, "paid_by_other_customers": 0 },
          "account": { "opened": "2021-06-11", "balance_usd": 3150, "median_transfer_usd": 120, "largest_transfer_usd": 210 },
          "recent_activity": "timestamp,event,detail\n2026-11-25T14:41:07Z,password_reset,new device\n2026-11-25T14:52:30Z,internal_transfer,2900 USD from savings\n2026-11-25T14:55:12Z,payee_added,"
        }
      }'
    ```
  </Tab>

  <Tab value="Python">
    ```python
    import os
    import requests

    response = requests.post(
        "https://api.finic.ai/v1/score/payout",
        headers={"Authorization": f"Bearer {os.environ['FINIC_API_KEY']}"},
        json={
            "context": {
                "payout": { "amount_usd": 3000, "type": "push_payment" },
                "payee": { "added": "2026-11-25T14:55:12Z", "account_type": "personal", "same_bank": False, "paid_by_other_customers": 0 },
                "account": { "opened": "2021-06-11", "balance_usd": 3150, "median_transfer_usd": 120, "largest_transfer_usd": 210 },
                "recent_activity": "timestamp,event,detail\n2026-11-25T14:41:07Z,password_reset,new device\n2026-11-25T14:52:30Z,internal_transfer,2900 USD from savings\n2026-11-25T14:55:12Z,payee_added,"
            }
        },
        timeout=30,
    )
    response.raise_for_status()
    print(response.json()["score"])
    ```
  </Tab>

  <Tab value="TypeScript">
    ```ts
    const response = await fetch("https://api.finic.ai/v1/score/payout", {
      method: "POST",
      headers: {
        Authorization: `Bearer ${process.env.FINIC_API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({
        context: {
          "payout": { "amount_usd": 3000, "type": "push_payment" },
          "payee": { "added": "2026-11-25T14:55:12Z", "account_type": "personal", "same_bank": false, "paid_by_other_customers": 0 },
          "account": { "opened": "2021-06-11", "balance_usd": 3150, "median_transfer_usd": 120, "largest_transfer_usd": 210 },
          "recent_activity": "timestamp,event,detail\n2026-11-25T14:41:07Z,password_reset,new device\n2026-11-25T14:52:30Z,internal_transfer,2900 USD from savings\n2026-11-25T14:55:12Z,payee_added,"
        },
      }),
    });
    const { score, questions } = await response.json();
    ```
  </Tab>
</Tabs>

## Fields you send [#fields-you-send]

Send the details, not only an ID: an account ID tells the score nothing, but the account's age, profile and history do. Fields that are not in this list are also read.

| Field             |          | Description                                                                                                                     |
| ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `payout`          | Required | The amount, the type of payment, and how it compares with what the account usually sends.                                       |
| `payee`           | Optional | A description of the payee, not a payee ID: when they were added, their bank and country, and whether other customers pay them. |
| `account`         | Optional | A description of the account, not an account ID: its age, its usual balance and its usual payouts.                              |
| `recent_activity` | Optional | What happened on the account before the payout, in order, with times.                                                           |
| `device`          | Optional | A description of the device: its type, its operating system, and whether this account has used it before.                       |
| `ip`              | Optional | The IP address with what your lookup says about it: country, city and network type. An address by itself says little.           |
| `other_context`   | Optional | Any other information, structured or unstructured, that is useful for scoring.                                                  |

## Response [#response]

`score` runs from 0, the lowest risk, to 1000, the highest. `questions` are the yes/no questions behind it, each with the probability that the answer is yes.

```json title="200 OK"
{
  "score": 951,
  "questions": [
    {
      "text": "Was the payee added shortly before the payout?",
      "probability": 0.97
    },
    {
      "text": "Is the amount far above what the customer usually sends?",
      "probability": 0.92
    },
    {
      "text": "Did a password reset or a new device come just before?",
      "probability": 0.9
    },
    {
      "text": "Was money gathered from other accounts first?",
      "probability": 0.87
    }
  ],
  "request_id": "req_01M4YF1068X8B4C458ENPD4JHT"
}
```

## The questions behind the score [#the-questions-behind-the-score]

1. Was the payee added shortly before the payout?
2. Is the amount far above what the customer usually sends?
3. Did a password reset or a new device come just before?
4. Was money gathered from other accounts first?

Every organization gets the same questions for this score. To use your own questions, or to calibrate a score to your own outcomes, copy it to a [custom scoring model](/score-model) in the Finic app (Starter plan and above).

## Turn the score into an action [#turn-the-score-into-an-action]

These thresholds are examples. Choose your own, and change them as you learn.

| Score       | Action  | Example                    |
| ----------- | ------- | -------------------------- |
| Under 300   | Approve | Send the payout.           |
| 300 to 599  | Step up | Confirm with the customer. |
| 600 to 849  | Review  | Hold for an analyst.       |
| 850 or more | Block   | Stop the payout.           |

## Errors [#errors]

| Status | `type`                 | When                                                                                                          |
| ------ | ---------------------- | ------------------------------------------------------------------------------------------------------------- |
| 400    | `invalid_request`      | `context` is missing, is not a JSON object, or a required field (`payout`) is empty. `param` names the field. |
| 401    | `authentication_error` | The API key is missing or not valid.                                                                          |
| 402    | `insufficient_credit`  | The organization has no credit. Add credit in the Finic app.                                                  |
| 429    | `rate_limited`         | Too many requests. Retry with exponential backoff.                                                            |

See the [API reference](/reference) for every error and limit, and [Pricing](/pricing) for what a call costs.
