---
title: "Create a payment intent for adding funds"
method: POST
path: "/stripe/payment-intent"
tags: ["stripe"]
---

# Create a payment intent for adding funds

`POST /stripe/payment-intent`

## Request body

- object
  - `amount` number, required
  - `metadata` object
    - `type` 'add_funds' | 'invite'

## Response `200`

Successful response

- object
  - `clientSecret` string, required
  - `paymentIntentId` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

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