---
title: "Apply a confirmed SetupIntent's payment method as the default for the current Customer and Subscription (issue #724) -- call after the client's confirmSetup() succeeds"
method: POST
path: "/billing/setup-intent/{setupIntentId}/apply"
tags: ["Billing"]
---

# Apply a confirmed SetupIntent's payment method as the default for the current Customer and Subscription (issue #724) -- call after the client's confirmSetup() succeeds

`POST /billing/setup-intent/{setupIntentId}/apply`

## Request

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

## Path parameters

- `setupIntentId` string, required

## Response `200`

OK

- object
  - `data` object, required
    - `ok` true, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `422`: No manageable subscription, Stripe not configured, SetupIntent not confirmed, or SetupIntent belongs to a different customer

---

[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)
