> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yativo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Account Card Limits (Admin)

> Admin: set per-account card limits for any user or customer card

<Note>
  This is an **admin-only** endpoint. It sets card limits directly on a specific account, bypassing the program ceiling. Platform hard cap is 5 active cards.
</Note>

<ParamField path="yativoCardId" type="string" required>
  The `yativo_card_id` of the account (user or customer card) to update.
</ParamField>

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer YOUR_ACCESS_TOKEN`
</ParamField>

<ParamField body="max_virtual" type="integer">
  Maximum virtual cards for this account. Must be 0–5.
</ParamField>

<ParamField body="max_physical" type="integer">
  Maximum physical cards for this account. Must be 0–5.
</ParamField>

<ParamField body="max_total" type="integer">
  Maximum total active cards (virtual + physical combined) for this account. Must be 0–5.
</ParamField>

At least one field must be provided.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH 'https://crypto-api.yativo.com/api/v1/yativo-card/admin/yativo_card_customer_8f9a_abc_1769031332068/card-limits' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
      "max_virtual": 3,
      "max_physical": 2,
      "max_total": 5
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "success": true,
    "message": "Account card limits updated",
    "data": {
      "yativo_card_id": "yativo_card_customer_8f9a...abc_1769031332068",
      "card_limits": {
        "max_virtual": 3,
        "max_physical": 2,
        "max_total": 5,
        "set_by": "admin_user_id",
        "set_at": "2026-05-05T12:00:00.000Z"
      }
    }
  }
  ```

  ```json 400 Invalid limit theme={null}
  {
    "success": false,
    "error_code": "INVALID_LIMIT",
    "message": "max_virtual must be 0–5"
  }
  ```

  ```json 400 No changes theme={null}
  {
    "success": false,
    "error_code": "NO_CHANGES",
    "message": "Provide at least one limit field to update"
  }
  ```

  ```json 404 Not found theme={null}
  {
    "success": false,
    "error_code": "NOT_FOUND",
    "message": "Card not found"
  }
  ```
</ResponseExample>
