---
title: "Finalize a client-confirmed SetupIntent (set the card as default)"
method: POST
path: "/api/billing/finalize-payment-method"
tags: ["billing", "internal"]
---

# Finalize a client-confirmed SetupIntent (set the card as default)

`POST /api/billing/finalize-payment-method`

## Request body

- FinalizePaymentMethodRequest — Request to finalize a client-confirmed SetupIntent (set the collected card as the customer's default payment method).
  - `setup_intent_id` string, required — Stripe SetupIntent to attach as the organization's payment method.

## Response `200`

Payment method finalized

- ApiResponse
  - `data` TupleUnit — No payload. Present only so the envelope keeps its shape.
  - `error` string, nullable — Human-readable failure message. Omitted on success.
  - `meta` ApiMeta, required — API metadata included in all responses
    - `api_version` integer, required — API version (integer, increments on breaking changes)
    - `server_version` string, required — Server version (semver)
  - `success` boolean, required — `true` when the request succeeded. `false` responses carry `error` instead of `data`.

## Other responses

- `400` — Billing not enabled or SetupIntent invalid

## Changes

- **2026-07-29** `51af15be596e` — 1 breaking
  - the `data/oneOf[#/components/schemas/TupleUnit]/` response's property type/format changed from ``/`` to `object`/`` for status `200`
- **2026-06-24** `845d83676b35` — 1 info
  - endpoint added
- **2026-04-20** `f04499e2280f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/scanopy/apis/scanopy-api/changes/api/billing/finalize-payment-method/post.md)

---

[API](https://skmtc.dev/scanopy/apis/scanopy-api.md) · [All operations](https://skmtc.dev/scanopy/apis/scanopy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scanopy/scanopy-api/revisions/d061209476f3/schema)
