---
title: "Replace the funding settings"
method: PUT
path: "/admin/funding/settings"
tags: ["Admin"]
---

# Replace the funding settings

`PUT /admin/funding/settings`

## Request

- Base URL: `https://api.presscart.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.presscart.com/admin/funding/settings`
- Auth: HTTP bearer

Validates and stores the whole funding settings object, in cents, including the credit packs, and records the previous and the new values in the activity log. A body without `packs` is rejected, so a page opened before credit packs cannot reset them.

## Request body

- FundingSettings
  - `funding_enabled` boolean, required
  - `min_cents` integer, required
  - `max_cents` integer, required
  - `preset_cents` integer[], required
  - `offer` object, required
    - `enabled` boolean, required
    - `campaign_key` string, required
    - `match_percent` integer, required
    - `cap_cents` integer, required
    - `promotional_expiry_days` integer, required
  - `packs` object, required
    - `stack_with_offer` boolean, required
    - `items` object[], required
      - `key` string, required
      - `name` string, required
      - `amount_cents` integer, required
      - `bonus_percent` integer, required
      - `enabled` boolean, required

## Response `200`

Funding settings stored

- FundingSettings
  - `funding_enabled` boolean, required
  - `min_cents` integer, required
  - `max_cents` integer, required
  - `preset_cents` integer[], required
  - `offer` object, required
    - `enabled` boolean, required
    - `campaign_key` string, required
    - `match_percent` integer, required
    - `cap_cents` integer, required
    - `promotional_expiry_days` integer, required
  - `packs` object, required
    - `stack_with_offer` boolean, required
    - `items` object[], required
      - `key` string, required
      - `name` string, required
      - `amount_cents` integer, required
      - `bonus_percent` integer, required
      - `enabled` boolean, required

## Other responses

- `400`: The settings object is incomplete or a value is outside its limits
- `401`: The request is not authenticated
- `403`: Only administrators can change the funding settings

---

[API](https://skmtc.dev/presscart/apis/presscart-prod-api.md) · [All operations](https://skmtc.dev/presscart/apis/presscart-prod-api/llms.txt) · [OpenAPI document](https://skmtc.dev/presscart/apis/presscart-prod-api/revisions/2154581d845e?raw)
