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

## Response `200`

Payment method finalized

- ApiResponse
  - `data` TupleUnit — unresolved $ref
  - `error` string, nullable
  - `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

## Other responses

- `400` — Billing not enabled or SetupIntent invalid

## Changes

- **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/c037832cd07f/schema)
