---
title: "Verify a completed Stripe SetupIntent and store the payment method"
method: POST
path: "/v1/billing/stripe/setup-intents/{id}/confirm"
tags: ["billing"]
---

# Verify a completed Stripe SetupIntent and store the payment method

`POST /v1/billing/stripe/setup-intents/{id}/confirm`

## Request

- Base URL: `https://api.runx.ai`
- URL: `https://api.runx.ai/v1/billing/stripe/setup-intents/{id}/confirm`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

Verified Stripe payment method.

- StripePaymentMethodEnvelope
  - `status` 'success', required
  - `stripe_payment_method` object, required
    - `principal_id` string, required
    - `customer` string
    - `paymentMethod` string, required
    - `created_at` string, required
    - `updated_at` string, required

## Other responses

- `401`: Unauthorized.
- `403`: Setup intent does not belong to this principal.
- `409`: Setup intent is not complete.
- `503`: Stripe setup is not configured.

---

[API](https://skmtc.dev/runx/apis/runx-hosted-api.md) · [All operations](https://skmtc.dev/runx/apis/runx-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/runx/apis/runx-hosted-api/revisions/6c940d8edacc?raw)
