---
title: "Set customer spending cap"
method: PUT
path: "/v1/customers/{id}/spending-cap"
tags: ["Customers"]
---

# Set customer spending cap

`PUT /v1/customers/{id}/spending-cap`

Set or update a per-customer spending cap. Supports DAILY_CHARGE_LIMIT, MONTHLY_CHARGE_LIMIT, and SINGLE_CHARGE_LIMIT. When autoBlock=true (default), charges are rejected at 100% of the cap. Requires a secret key (`sk_*`).

## Path parameters

- `id` string, required

## Request body

- object
  - `capType` 'DAILY_CHARGE_LIMIT' | 'MONTHLY_CHARGE_LIMIT' | 'SINGLE_CHARGE_LIMIT', required — Type of spending cap
  - `limitValue` number, required — Spending limit in USDC
  - `autoBlock` boolean — Auto-block charges when cap is reached (default: true)

## Response `200`

Spending cap set

- object — Spending cap set
  - `id` string
  - `capType` string
  - `limitValue` string
  - `autoBlock` boolean

## Other responses

- `401` — Unauthorized
- `404` — Customer not found

---

[API](https://skmtc.net/usedrip/apis/drip-api.md) · [All operations](https://skmtc.net/usedrip/apis/drip-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usedrip/drip-api/revisions/2cb1567969ca/schema)
