---
title: "Create payment method setup"
method: POST
path: "/spaces/{space_id}/payment"
---

# Create payment method setup

`POST /spaces/{space_id}/payment`

Creates a Stripe Setup Intent for payment method collection and returns the client secret and payment page URL.

## Path parameters

- `space_id` string, required

## Response `200`

Payment setup created

- PaymentSetupResponse — Stripe Setup Intent details for collecting a new payment method.
  - `client_secret` string, required — Stripe Setup Intent client secret.
  - `payment_url` string, required — URL of the hosted payment page for collecting card details.

## Other responses

- `default` — Error response

---

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