---
title: "Create Setup Intent"
method: POST
path: "/payments/setup-intent"
tags: ["payments"]
---

# Create Setup Intent

`POST /payments/setup-intent`

## Request

- Base URL: `https://api.oxlo.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oxlo.ai/payments/setup-intent`
- Auth: HTTP bearer

Create a SetupIntent for collecting payment method.

The client_secret is used with Stripe.js to securely collect card details.

## Response `200`

Successful Response

- SetupIntentResponse
  - `client_secret` string, required
  - `customer_id` string, required

---

[API](https://skmtc.dev/oxlo/apis/oxlo-backend.md) - [All operations](https://skmtc.dev/oxlo/apis/oxlo-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/oxlo/apis/oxlo-backend/revisions/bc2ecdc94f31?raw)
