---
title: "Update the Stripe subscription"
method: POST
path: "/zephr/payment/stripe/updateSubscription"
tags: ["Stripe Payments"]
---

# Update the Stripe subscription

`POST /zephr/payment/stripe/updateSubscription`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/zephr/payment/stripe/updateSubscription`
- Auth: one of:
  - API key in cookie `blaize_session`
  - API key in query parameter `jwt`
  - API key in header `x-blaize-jwt`
  - API key in header `x-zephr-jwt`
  - HTTP bearer
  - API key in cookie `blaize_jwt`

Updates the payment method in the subscription. Payment method id will be provided by stripe on updating card details in the front end.

## Request body

- object
  - `subscription_id` string, required
  - `payment_method_id` string, required

## Response `200`

OK

---

[API](https://skmtc.dev/zuora/apis/zuora-2.md) - [All operations](https://skmtc.dev/zuora/apis/zuora-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zuora/apis/zuora-2/revisions/678190d04c40?raw)
