---
title: "setupStripeCheckoutData payment-method"
method: POST
path: "/payment_method/setup-stripe-checkout-data"
tags: ["payment-method"]
---

# setupStripeCheckoutData payment-method

`POST /payment_method/setup-stripe-checkout-data`

create the customer and retrieve the secret from Stripe to add the payment method

## Request body

- StripeSetupIntentPayload
  - `offer_id` string, required — Offer ID associated with the checkout session
  - `stripe_checkout_session_return_url` string — The return URL at end of Stripe Checkout Session
  - `use_stripe_checkout_session` boolean — Use Stripe Checkout Session instead of Stripe SetupIntent

## Response `200`

OK response.

- SetupStripeCheckoutDataResponseBody
  - `client_secret` string, required
  - `session_id` string

## Other responses

- `401` — Unauthorized: Unauthorized response.
- `403` — InvalidScopes: Forbidden response.

---

[API](https://skmtc.net/topi/apis/topi-public-api.md) · [All operations](https://skmtc.net/topi/apis/topi-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/topi/topi-public-api/versions/fa134b7fc959/schema)
