curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/billing/setup-payment' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
Setup payment handler
Required scope: billing:write
POST
/
api
/
v1
/
billing
/
setup-payment
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/billing/setup-payment' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
Required scope:
billing:write
Response
No response body. Stripe SetupIntent for collecting a payment method: {client_secret, setup_intent_id}.Status codes
| Code | Meaning |
|---|---|
200 | Stripe SetupIntent for collecting a payment method: {client_secret, setup_intent_id} |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
404 | No Stripe customer for this org |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/billing/setup-payment' \
--header "X-API-Key: $STATESET_NSR_API_KEY"
Last modified on August 31, 2026