---
title: "Change subscription"
method: POST
path: "/change-subscription"
---

# Change subscription

`POST /change-subscription`

The Update Subscription API can be used to change the next rebill date, the rebill amount and the rebill duration.

## Request body

- object
  - `api_secret` string, required — This is the credential that Vendo will use to authenticate your request
  - `is_test` integer, required — Set to 1 if you want to process a test transaction.
  - `merchant_id` integer, required — Your Vendo Merchant ID.
  - `subscription_id` integer, required — The Vendo Subscription ID you want to update
  - `subscription_schedule` object — Details about the new rebill schedule. Only required if you need to change the rebilling schedule
    - `next_rebill_date` string, date — This field specifies the date for the upcoming first rebill after a limited trial period or a subscription extension is applied. The format must be YYYY-MM-DD (e.g., 2024-03-14). The date must be in the future and use the Central European Time (CET) time zone.
    - `rebill_amount` number, float, required — Amount to bill. Currency is original transaction currency. Example: 10.34. Min: 0, Max: 1 000 000
    - `rebill_duration` integer, required — Time between rebills in days. Example: 30 for a monthly subscription. Min. 1 day. Min: 1, Max: 365
    - `reactivate_subscription` boolean — Optional parameter. It can be used to reactivate an expired subscription.

## Response `200`

200

- object
  - `status` integer
  - `subscription` object
    - `id` integer
  - `request_id` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/vendoservices/apis/s2s-api.md) · [All operations](https://skmtc.net/vendoservices/apis/s2s-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vendoservices/s2s-api/revisions/ec9a04326468/schema)
