Skip to content

Instantly share code, notes, and snippets.

@jourdein
Last active January 29, 2024 08:09
Show Gist options
  • Save jourdein/f0051f6bce0bcbf995bbe052d069d7df to your computer and use it in GitHub Desktop.
Save jourdein/f0051f6bce0bcbf995bbe052d069d7df to your computer and use it in GitHub Desktop.
QB-Stripe API

Requirements:

• JWT Authentication

• applicatoin/json

Onboarding

GET /api/v1/drivers/stripe/authorize

Return

{
  "url": "https://connect.stripe.com/setup/e/acct_1NCwewQRVRI4gMNF/IuUxLvWoAhps"
}

Check Onboarding Status

GET /api/v1/drivers/stripe/check_onboarding_status

Return

  1. Onboarding state
  2. If onboarding is incomplete, piggyback with onboarding URL
{
    "onboarding_completed": false,
    "stripe_account_id": "acct_1NCwewQRVRI4gMNF",
    "url": "https://connect.stripe.com/setup/e/acct_1NCwewQRVRI4gMNF/IuUxLvWoAhps"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment