---
title: "Update credit product"
method: PUT
path: "/v1/customers/{id}/credits/{productId}"
tags: ["Customers > Credits"]
---

# Update credit product

`PUT /v1/customers/{id}/credits/{productId}`

Update the configuration of a customer's credit product.

## Path parameters

- `id` string, required
- `productId` string, required

## Request body

- UpdateCredit
  - `name` string — Credit name.
  - `low_count_threshold` number, nullable — Value indicating a low threshold.
  - `auto_topup` object, nullable — Auto top-up options.
    - `credit_count` number — Value indicating a number of credits to add. If `price_id` is defined, this value must correspond to a full credit pack for the price.
    - `amount_excluding_tax` number — Custom amount for the added credits. Either `amount_excluding_tax` or `price_id` must be defined. Expressed in currency's smallest unit.
    - `price_id` string — Price ID used to add credits. The price must be of type `bundle`. Either `amount_excluding_tax` or `price_id` must be defined.

## Response `200`

Updated credit

- Credit
  - `product_id` string, required — Credit product ID.
  - `customer_id` string, required — Customer ID related to the credit.
  - `name` string, required — Credit name.
  - `current_balance` number, required — Current credit balance.
  - `low_count_threshold` number, nullable, required — Value indicating a low threshold.
  - `last_refreshed_at` string, date-time, required — Credit last refresh date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
  - `auto_topup` object, nullable, required — Auto top-up options.
    - `credit_count` number, required — Value indicating a number of credits to add. If `price_id` is defined, this value must correspond to a full credit pack for the price.
    - `amount_excluding_tax` number, nullable, required — Custom amount for the added credits. Either `amount_excluding_tax` or `price_id` must be defined. Expressed in currency's smallest unit.
    - `price_id` string, nullable, required — Price ID used to add credits. The price must be of type `bundle`. Either `amount_excluding_tax` or `price_id` must be defined.
  - `created_at` string, date-time, required — Credit creation date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
  - `updated_at` string, date-time, required — Credit last edition date. UTC date time string in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.

---

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