---
title: "Set the pay as you go limit"
description: "How much extras may cost in a calendar month."
url: "https://openemail.uk/docs/api/billing/pay-as-you-go-limit"
area: "API"
category: "Mailbox"
---

# Set the pay as you go limit

How much extras may cost in a calendar month.

`PUT /billing/pay-as-you-go/limit`

## PUT /billing/pay-as-you-go/limit

How much extras may cost in a calendar month.

## Example

Needs `billing:write`. `limitCents` is one of the `limits` that `GET /billing/pay-as-you-go` lists. Extras stop for the rest of the month once it is reached.

**curl**

```
curl -X PUT "$OE/billing/pay-as-you-go/limit" -H "$AUTH" -H 'content-type: application/json' \
  -d '{ "limitCents": 10000 }'
```

**Response**

```
{ "object": "pay_as_you_go_limit", "limitCents": 10000 }
```

> A workspace where pay as you go was never set up is a 409 `pay_as_you_go_not_enrolled`.

> An OAuth access token needs a verification code for this call. Until the app has verified one in the last 60 minutes, the call answers `403` `step_up_required` and changes nothing. An API key is never asked. The Authentication page shows how to ask for a code and verify it.

## Reference

- [`PUT /billing/pay-as-you-go/limit`](https://openemail.uk/docs/api/reference/billing#put-billing-pay-as-you-go-limit): full reference
