Docs/User API/Payment methods/Create intent

Create a payment method intent

Preview
POST/user/v1/paymentMethods:createIntent

Create a new payment method intent.

This can be used with a third-party billing provider to store a payment method.

body parameters

  • organizationId

    string

    The identifier of the organization.

Returns

  • stripe

    StripePaymentMethodIntent

    A Stripe Setup Intent.

curl https://api.userhub.com/user/v1/paymentMethods:createIntent \
  -H "UserHub-Api-Key: $USERHUB_USER_KEY" \
  -H "Authorization: Bearer $USER_ACCESS_TOKEN" \
  --json '{
    "organizationId": "org_28seyVGVL1got6"
  }'
Response bodyJSON
{
  "stripe": {
    "accountId": "acct_1MYWwjGZndmhrwhA",
    "live": false,
    "clientSecret": "seti_1JIn79LN82CfHITx1e2dCDiT_secret_SH..."
  }
}
PreviousCreate a payment method
NextGet a payment method

Build software thatmonetizes
$

Subscribe to monthly product updates

© 2025 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & custom auth