---
title: "Create a Stripe payment intent for deposit"
method: POST
path: "/api/stripe/create-deposit-intent"
tags: ["Stripe"]
---

# Create a Stripe payment intent for deposit

`POST /api/stripe/create-deposit-intent`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/stripe/create-deposit-intent`
- Auth: HTTP bearer

Creates a payment intent for a user to make a deposit or pay for a pro campaign

## Request body

- object
  - `userId` string, required: Clerk user ID for authentication
  - `amount` number, required: Amount to charge in USD
  - `paymentMethodId` string: Optional Stripe payment method ID to use for the charge

## Response `200`

Payment intent created successfully

- object
  - `clientSecret` string: Stripe client secret for the payment intent
  - `paymentIntentId` string: ID of the created payment intent
  - `customerId` string: Stripe customer ID

## Other responses

- `400`: Bad request - missing required parameters
- `500`: Error processing payment

---

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