Skip to content

Start adding a card.

POST
/billing/payment-methods/setup-intent
curl --request POST \
--url https://api.siteqwality.com/billing/payment-methods/setup-intent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "idempotency_key": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
Media type application/json
object
idempotency_key
required
string format: uuid
Example generated
{
"idempotency_key": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

SetupIntent client secret

Media type application/json
object
client_secret
required
string
Example generated
{
"client_secret": "example"
}

Missing or invalid authentication

Caller is not a super admin

Account has no Stripe customer

Internal server error