---
title: "Update frequency"
method: PUT
path: "/2023-10/subscription/{subscriptionId}/frequency"
---

# Update frequency

`PUT /2023-10/subscription/{subscriptionId}/frequency`

This endpoint allows you to update the billing frequency of a subscription contract.

## Path parameters

- `subscriptionId` integer, required

## Request body

- object
  - `billingPolicy` object, required
    - `interval` 'WEEK' | 'MONTH' | 'YEAR', required
    - `intervalCount` integer, required
  - `deliveryPolicy` object, required
    - `interval` 'WEEK' | 'MONTH' | 'YEAR', required
    - `intervalCount` integer, required
  - `nextBillingDateEpoch` integer — If not passed, the next order date for the subscription will remain the same.
  - `discountType` 'OLD' | 'NEW' | 'CUSTOM', required — Use new discounts as per the new frequency or continue with existing discounts or pass discountType as CUSTOM only if isCustom key is sent as true.
  - `sellingPlanGroupId` integer — The sellingPlanGroupId which has to be applied on the lines.
  - `isCustom` boolean — Pass this key to apply a custom selling plan.
  - `customDiscount` object — To be passed when discountType is set as 'CUSTOM'
    - `type` 'PRICE' | 'FIXED_AMOUNT' | 'PERCENTAGE'
    - `value` number, float

## Response `200`

200

- object
  - `success` boolean
  - `message` string
  - `data` unknown
  - `code` string
  - `pageInfo` unknown

---

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