---
title: "Replace the typed provider config on an integration. Passing `null` clears the config back to the accept-everything default. The config's provider tag must match the integration's provider."
method: POST
path: "/projects/{project_id}/revenue/integrations/{integration_id}/config"
tags: ["Revenue"]
---

# Replace the typed provider config on an integration. Passing \`null\` clears the config back to the accept-everything default. The config's provider tag must match the integration's provider.

`POST /projects/{project_id}/revenue/integrations/{integration_id}/config`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/revenue/integrations/{integration_id}/config`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `integration_id` integer, required

## Request body

- UpdateConfigBody
  - `config` union: Provider-specific integration settings persisted in `revenue_integrations.config`. The tag is the lowercase provider name, so adding a new provider means adding a new variant and the existing rows are untouched. Old rows (pre-config) and rows with `NULL` config are treated as "accept all events, no filtering" via [`ProviderConfig::default_for`].
    - object
      - `include_unpriced_charges` boolean: When an allowlist is set, should we still ingest charges that lack a price reference (e.g. standalone `charge.succeeded` without a subscription)? Default true — charges don't belong to a SKU.
      - `metered_mode` 'derive_from_invoices' | 'use_subscription' | 'ignore': How to compute MRR for metered / tiered / hybrid subscriptions.
      - `price_allowlist` string[]: Only events tagged with one of these Stripe price IDs are ingested. Empty = accept all prices.
      - `product_allowlist` string[]: Only events tagged with one of these Stripe product IDs are ingested. Empty = accept all products. Combined with `price_allowlist` via OR — if either list has a match, accept.
      - `provider` 'stripe', required
    - object
      - `product_allowlist` string[]
      - `variant_allowlist` string[]
      - `provider` 'lemon_squeezy', required

## Response `200`

- IntegrationResponse
  - `config` union: Provider-specific integration settings persisted in `revenue_integrations.config`. The tag is the lowercase provider name, so adding a new provider means adding a new variant and the existing rows are untouched. Old rows (pre-config) and rows with `NULL` config are treated as "accept all events, no filtering" via [`ProviderConfig::default_for`].
    - object
      - `include_unpriced_charges` boolean: When an allowlist is set, should we still ingest charges that lack a price reference (e.g. standalone `charge.succeeded` without a subscription)? Default true — charges don't belong to a SKU.
      - `metered_mode` 'derive_from_invoices' | 'use_subscription' | 'ignore': How to compute MRR for metered / tiered / hybrid subscriptions.
      - `price_allowlist` string[]: Only events tagged with one of these Stripe price IDs are ingested. Empty = accept all prices.
      - `product_allowlist` string[]: Only events tagged with one of these Stripe product IDs are ingested. Empty = accept all products. Combined with `price_allowlist` via OR — if either list has a match, accept.
      - `provider` 'stripe', required
    - object
      - `product_allowlist` string[]
      - `variant_allowlist` string[]
      - `provider` 'lemon_squeezy', required
  - `created_at` string, date-time, required
  - `has_secret` boolean, required
  - `id` integer, required
  - `last_event_at` string, date-time, nullable
  - `project_id` integer, required
  - `provider` string, required
  - `status` string, required
  - `webhook_path` string, required: Relative path the UI can display and copy. The frontend builds the full URL by prefixing its own origin.
  - `webhook_path_token` string, required: Unguessable token embedded in the public webhook URL. The full URL is `{api_origin}/webhooks/revenue/{provider}/{webhook_path_token}`.

## Other responses

- `400`: Validation error
- `404`: Integration not found

## Changes

- **2026-04-25** `774be20905f2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/revenue/integrations/:integration_id/config/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
