# Opt in to this period's one-time extra (/api/usage/opt-in-customer-spend-limit-burst)

`PUT https://api.comecero.com/api/v1/customers/{customer_id}/usage/{subscription_id}/spend_limit/burst`

Accepts this period's one-time extra quoted with `POST .../spend_limit/quotes` (`operation` `burst`): until the renewal, the period's usage may go past the spending limit by the quote's `burst_amount`. The customer's consent (the quote's `consent_text`, when and from where) is kept in the change log as evidence. Only from the customer's own login, before the quote's `expires_at` (10 minutes, never past the end of the period), in the period it was made for, while the limit and the shop's settings are as they were quoted, and once per period. The same quote sent again answers what the first request answered. An `Idempotency-Key` header is required, new for each change, so a retry after a timeout answers the first answer (for a day) even if the extra was granted but its answer was lost; the key with another body is refused. The customer gets an email confirming it (notification `subscription:spend_limit_changed`, when it is on) and you get the `usage:burst_opted_in` webhook.

## Parameters

- `Idempotency-Key` (header, required): Required. Names one change: the same request again with the same key (after a timeout, say) changes nothing more and answers as the first one did, for a day. 1 to 128 printable ASCII characters, sent once; missing or empty is refused (`400`, reference `UbV150`). Use a new random key, such as a UUID, for each change you mean to make. The same key with another body is refused (`409`, reference `UbV151`).

Request body: the `usage_spend_limit_burst_request` schema.

Responses: 200, 400, 401, 403, 404, 409, 500.

Full schemas: operation `opt_in_customer_spend_limit_burst` in /openapi.json.