Preview Leffel Consulting Payments is in active development and migrating to Finix — the API isn't publicly live yet, and some examples still reflect the outgoing build. Request early access →

API Reference

Onboarding

Onboard a merchant as a Standard connected account (merchant of record). Create the account, send the merchant through Stripe-hosted onboarding, and check whether they can accept charges and payouts.

Create a connected account

POST /v1/onboarding/account

Creates the merchant’s Standard connected account. Idempotent — returns the existing account if one already exists.

Auth: X-Api-Key

Request body

email string optional

Optional merchant email to prefill onboarding.

country string optional

Two-letter country code. Defaults to "US".

Returns

stripeAccountId string optional

Connected account id (acct_…).

onboardingStatus string optional

not_started, pending, charges_only, enabled, or restricted.

chargesEnabled boolean optional

Whether the account can accept charges.

payoutsEnabled boolean optional

Whether the account can receive payouts.

requirements string | null optional

Outstanding onboarding requirements, if any.

Request
curl https://payments.leffelconsulting.com/v1/onboarding/account \
  -H "X-Api-Key: lc_live_XXXXXXXXXXXXXXXXXXXX" \
  -H "Content-Type: application/json" \
  -d '{ "email": "owner@acme.com", "country": "US" }'
Response
{
  "stripeAccountId": "acct_1Nvo...",
  "onboardingStatus": "pending",
  "chargesEnabled": false,
  "payoutsEnabled": false,
  "requirements": "currently_due: business_profile.url"
}
Try it — the interactive sandbox console is coming soon.

Get onboarding status

GET /v1/onboarding/status

Returns the merchant’s current onboarding state, kept fresh by account.updated webhooks.

Auth: X-Api-Key

Returns

stripeAccountId string optional

Connected account id (acct_…).

onboardingStatus string optional

not_started, pending, charges_only, enabled, or restricted.

chargesEnabled boolean optional

Whether the account can accept charges.

payoutsEnabled boolean optional

Whether the account can receive payouts.

requirements string | null optional

Outstanding onboarding requirements, if any.

Request
curl https://payments.leffelconsulting.com/v1/onboarding/status \
  -H "X-Api-Key: lc_live_XXXXXXXXXXXXXXXXXXXX"
Response
{
  "stripeAccountId": "acct_1Nvo...",
  "onboardingStatus": "enabled",
  "chargesEnabled": true,
  "payoutsEnabled": true,
  "requirements": null
}
Try it — the interactive sandbox console is coming soon.

Refresh onboarding status

POST /v1/onboarding/refresh

Re-pulls the latest account state from Stripe on demand (rather than waiting for a webhook).

Auth: X-Api-Key

Returns

stripeAccountId string optional

Connected account id (acct_…).

onboardingStatus string optional

not_started, pending, charges_only, enabled, or restricted.

chargesEnabled boolean optional

Whether the account can accept charges.

payoutsEnabled boolean optional

Whether the account can receive payouts.

Errors

  • 400 No connected account — This tenant has no connected account.
Request
curl -X POST https://payments.leffelconsulting.com/v1/onboarding/refresh \
  -H "X-Api-Key: lc_live_XXXXXXXXXXXXXXXXXXXX"
Response
{
  "stripeAccountId": "acct_1Nvo...",
  "onboardingStatus": "enabled",
  "chargesEnabled": true,
  "payoutsEnabled": true
}
Try it — the interactive sandbox console is coming soon.