Skip to main content
POST
/
v3
/
teams
/
{team}
/
billing
/
payment-methods
/
setup-intent
Create Setup Intent
curl --request POST \
  --url https://app.plugchoice.com/api/v3/teams/{team}/billing/payment-methods/setup-intent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "context": "<string>"
}
'
{
  "client_secret": "<string>",
  "billing_defaults": {
    "name": "<string>",
    "email": "<string>",
    "address": {
      "country": "<string>",
      "line1": "<string>",
      "postal_code": "<string>",
      "city": "<string>"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://developer.plugchoice.com/llms.txt

Use this file to discover all available pages before exploring further.

Creates a Stripe Setup Intent for adding a new payment method. Returns a client secret for use with Stripe.js.
team
string
required
The UUID of the team.
context
string
Set to reimbursement to restrict to SEPA/iDEAL payment methods only.

Response

client_secret
string
The Stripe Setup Intent client secret for use with Stripe.js.
billing_defaults
object
Default billing information to pre-fill in the payment form.