---
title: "Start an in-app 'Update payment method' (Custom UI, issue #724) -- returns a SetupIntent client_secret for the Payment Element, replacing the redirect to Stripe's hosted Billing Portal"
method: POST
path: "/billing/setup-intent"
tags: ["Billing"]
---

# Start an in-app 'Update payment method' (Custom UI, issue #724) -- returns a SetupIntent client_secret for the Payment Element, replacing the redirect to Stripe's hosted Billing Portal

`POST /billing/setup-intent`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/billing/setup-intent`
- Auth: HTTP bearer

## Response `200`

OK

- object
  - `data` object, required
    - `clientSecret` string, required
    - `publishableKey` string, required
    - `locale` string, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `422`: No manageable subscription, or Stripe not configured

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
