Skip to main content

Create Checkout Session

POST 

/api/stripe/payment/checkout-session

Creates a new Stripe Checkout Session for collecting a rental application fee payment.

After creating the session, redirect the renter to the checkout_url in the response to complete payment. Upon completion, the renter will be redirected to your successUrl.

Duplicate Prevention: If the renter has already paid within the last 30 days, this endpoint returns 409 Conflict.

Amount Behavior:

  • If amount is omitted, it defaults to the relay fee for your account
  • If amount is specified, it must be >= the relay fee
  • The successUrl may include {CHECKOUT_SESSION_ID} as a placeholder that Stripe will replace with the actual session ID

Request

Responses

Checkout session created successfully