Intercode SaaS Kit
  • Welcome to SaaS Starter Kit
  • Getting Started
    • Technology stack
    • Database Setup
    • Local Environment Setup
  • Basics
    • Dependencies
    • App architecture
    • Deployment
    • App roles
    • Endpoints List
      • Auth
      • Two Factor Auth
      • Businesses
      • Demo
      • Email
      • Export Document
      • Email Files
      • Files Demo
      • Leads
      • Orders
      • Payments
      • Subscriptions
      • Teams
      • Team Memberships
      • User Admin
  • Animation and Styles
    • Framer Motion
    • Ant Design and Styles
  • Pages
    • Auth
      • Working with PassportJS
      • Two-Factor Auth
      • OAuth Providers
    • Leads
    • Businesses
    • Team management
      • Ownership
    • Profile
    • User Settings
      • App Tour
    • App Settings
      • Lead Statuses
    • Dashboard
      • Lead volume widget
      • Doughnut chart widget
      • Recent leads table widget
      • Lead count over period widget
    • Demo
  • Features
    • Impersonation
    • Subscriptions (Stripe)
    • Search
    • Sentry
    • Captcha
    • Audit Logs
    • Internationalization
  • External integrations
    • Mailer
    • Google oAuth2
    • Facebook oAuth2
    • S3 compatible storage (AWS, MinIO)
Powered by GitBook
On this page
  1. Basics
  2. Endpoints List

Payments

PreviousOrdersNextSubscriptions

Last updated 6 months ago

POST

  • POST
  • POSTCreates a payment intent for the specified amount.

Creates a payment intent for the specified amount.

post
Body
amountnumberOptionalExample: 1000
Responses
200
Payment intent created successfully
application/json
400
Invalid amount
application/json
500
Internal server error
application/json
post
POST /payments/create-payment-intent HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "amount": 1000
}
{
  "id": "pi_1F7X2Y2eZvKYlo2C0q0G5Z2e",
  "amount": 1000,
  "currency": "usd",
  "clientSecret": "pi_1F7X2Y2eZvKYlo2C0q0G5Z2e_secret_12345",
  "status": "requires_payment_method"
}