---
title: "Confirm Payment Method"
method: POST
path: "/api/v1/payments/confirm-payment-method"
tags: ["Payment"]
---

# Confirm Payment Method

`POST /api/v1/payments/confirm-payment-method`

Confirm and save a payment method after SetupIntent succeeds

## Query parameters

- `org` string, nullable

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Request body

- CreatePaymentMethodRequest — Request schema for creating/saving a payment method.
  - `setupIntentId` string, required

## Response `200`

Successful Response

- PaymentMethodSchema — Full payment method schema.
  - `id` integer, required
  - `userId` string, required
  - `stripePaymentMethodId` string, required
  - `brand` string, nullable
  - `last4` string, nullable
  - `expMonth` integer, nullable
  - `expYear` integer, nullable
  - `isDefault` boolean
  - `created` string, required
  - `updated` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/revisions/43a90513ac59/schema)
