---
title: "Update credit bundle details"
method: PUT
path: "/billing/credits/bundles/{bundle_id}"
tags: ["credits"]
---

# Update credit bundle details

`PUT /billing/credits/bundles/{bundle_id}`

## Path parameters

- `bundle_id` string, required

## Request body

- UpdateCreditBundleDetailsRequestBody
  - `bundle_name` string, required
  - `currency_prices` CreditBundleCurrencyPriceRequestBody[], nullable
    - `currency` string, required
    - `price_per_unit` integer, nullable
    - `price_per_unit_decimal` string, nullable
  - `expiry_type` 'duration' | 'end_of_billing_period' | 'end_of_next_billing_period' | 'end_of_trial' | 'no_expiry'
  - `expiry_unit` 'billing_periods' | 'days'
  - `expiry_unit_count` integer, nullable
  - `price_per_unit` integer, required
  - `price_per_unit_decimal` string, nullable
  - `quantity` integer, nullable
  - `status` 'active' | 'inactive'

## Response `200`

OK

- object
  - `data` BillingCreditBundleResponseData, required
    - `billing_invoice_id` string, nullable
    - `bundle_type` 'fixed', required
    - `created_at` string, date-time, required
    - `credit_description` string
    - `credit_icon` string, nullable
    - `credit_id` string, required
    - `credit_name` string, required
    - `currency_prices` CreditBundleCurrencyPriceResponseData[], required
      - `currency` string, required
      - `price` BillingPriceResponseData
        - `currency` string, required
        - `external_price_id` string, required
        - `id` string, required
        - `interval` 'day' | 'month' | 'one-time' | 'year', required
        - `interval_count` integer, required
        - `nickname` string, nullable
        - `price` integer, required
        - `price_decimal` string, nullable
        - `provider_type` 'metronome' | 'orb' | 'schematic' | 'stripe', required
        - `scheme` 'per_unit' | 'tiered', required
    - `expiry_type` 'duration' | 'end_of_billing_period' | 'end_of_next_billing_period' | 'end_of_trial' | 'no_expiry', required
    - `expiry_unit` 'billing_periods' | 'days', required
    - `expiry_unit_count` integer, nullable
    - `has_grants` boolean, required
    - `id` string, required
    - `name` string, required
    - `plural_name` string, nullable
    - `price` BillingPriceResponseData
      - `currency` string, required
      - `external_price_id` string, required
      - `id` string, required
      - `interval` 'day' | 'month' | 'one-time' | 'year', required
      - `interval_count` integer, required
      - `nickname` string, nullable
      - `price` integer, required
      - `price_decimal` string, nullable
      - `provider_type` 'metronome' | 'orb' | 'schematic' | 'stripe', required
      - `scheme` 'per_unit' | 'tiered', required
    - `quantity` integer, nullable
    - `singular_name` string, nullable
    - `status` 'active' | 'inactive', required
    - `unit_price` BillingPriceResponseData
      - `currency` string, required
      - `external_price_id` string, required
      - `id` string, required
      - `interval` 'day' | 'month' | 'one-time' | 'year', required
      - `interval_count` integer, required
      - `nickname` string, nullable
      - `price` integer, required
      - `price_decimal` string, nullable
      - `provider_type` 'metronome' | 'orb' | 'schematic' | 'stripe', required
      - `scheme` 'per_unit' | 'tiered', required
    - `updated_at` string, date-time, required
  - `params` object, required — Input parameters

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Server error

---

[API](https://skmtc.net/schematichq/apis/schematic-api.md) · [All operations](https://skmtc.net/schematichq/apis/schematic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/schematichq/schematic-api/versions/873fb318b08a/schema)
