Docs/Admin API/Payment methods/Create intent

Create a payment method intent

Preview
POST/admin/v1/paymentMethods:createIntent

Create a payment method intent.

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

body parameters

  • organizationId

    string

    The identifier of the organization.

    This is required if the user identifier is not specified.

  • userId

    string

    The identifier of the user.

    This is required if the organization identifier is not not specified.

  • connectionId

    string

    Required

    The identifier of the connection.

Returns

  • stripe

    StripePaymentMethodIntent

    A Stripe Setup Intent.

curl https://api.userhub.com/admin/v1/paymentMethods:createIntent \
  -H "Authorization: Bearer $USERHUB_ADMIN_KEY" \
  --json '{
    "organizationId": "org_28seyVGVL1got6",
    "connectionId": "conn_4HdRKnTvPmmjYK"
  }'
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