---
title: "Update subscription custom fields of a subscription version"
method: PUT
path: "/v1/subscriptions/{subscriptionNumber}/versions/{version}/customFields"
tags: ["Subscriptions"]
---

# Update subscription custom fields of a subscription version

`PUT /v1/subscriptions/{subscriptionNumber}/versions/{version}/customFields`

Updates the custom fields of a specified subscription version.

## Path parameters

- `subscriptionNumber` string, string, required
- `version` string, string, required

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string

## Request body

- PUTSubscriptionPatchSpecificVersionRequestType
  - `customFields` SubscriptionObjectCustomFields — Container for custom fields of a Subscription object.
  - `ratePlans` object[]
    - `charges` object[]
      - `chargeId` string — Use either this field or the `chargeNumber` field to specify the charge for which you will be updating the custom fields. By using this field you actually specify a specific charge segment of a charge. See [Segmented rate plan charges](https://docs.zuora.com?resourceId=platform-soap-api-object-rateplancharge) for more information about charge segments.
      - `chargeNumber` string — Use either this field or the `chargeId` field to specify the charge for which you will be updating the custom fields. By using this field you actually specify the last charge segment of a charge. See [Segmented rate plan charges](https://docs.zuora.com?resourceId=platform-soap-api-object-rateplancharge) for more information about charge segments.
      - `customFields` RatePlanChargeObjectCustomFields — Container for custom fields of a Rate Plan Charge object.
    - `customFields` RatePlanObjectCustomFields — Container for custom fields of a Rate Plan object.
    - `ratePlanId` string, required — The rate plan id in any version of the subscription. This will be linked to the only one rate plan in the current version.

## Response `200`

OK

- CommonResponse
  - `processId` string — The ID of the process that handles the operation.
  - `reasons` object[] — The container of the error code and message. This field is available only if the `success` field is `false`.
    - `code` string — The error code of response.
    - `message` string — The detail information of the error response
  - `requestId` string, uuid — Unique identifier of the request.
  - `success` boolean — Indicates whether the call succeeded.

## Other responses

- `500` — Internal Server Error
- `4XX` — Request Errors

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
