---
title: "Update top-up and payout settings"
method: PATCH
path: "/ais/{aiId}/billing/money-settings"
tags: ["Billing"]
---

# Update top-up and payout settings

`PATCH /ais/{aiId}/billing/money-settings`

## Request

- Base URL: `https://api.darwin.so/api/v1`
- URL: `https://api.darwin.so/api/v1/ais/{aiId}/billing/money-settings`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Configures optional wallet auto top-up and the earned-fund payout schedule. Auto top-up is disabled by default and requires a saved payment method.

## Path parameters

- `aiId` string, required

## Request body

- UpdateMoneySettingsRequest
  - `autoTopupEnabled` boolean
  - `autoTopupThresholdMinor` integer, nullable
  - `autoTopupAmountMinor` integer, nullable
  - `payoutSchedule` 'manual' | 'monthly'

## Response `200`

The updated Product plan and money settings.

- AIBillingAccount
  - `autoTopup` AutoTopupSettings, required
    - `enabled` boolean, required
    - `thresholdMinor` integer, nullable, required
    - `amountMinor` integer, nullable, required
  - `payoutSchedule` 'manual' | 'weekly' | 'monthly', required

## Other responses

- `400`: The request was invalid.
- `401`: The API key or access token is missing, invalid, expired, or revoked.
- `403`: The principal does not have the required scope or resource access.
- `404`: The resource was not found for this principal.

---

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