Team Payments
Initiate payment processor connection
Changed onStart the OAuth flow to connect a team's payment processor account. Returns an authorization URL to redirect the user to the payment provider's OAuth page. The OAuth callback is handled directly by the payment gateway.
post/teams/{key}/payment/connect
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
key, string required
Team identifier (ID or slug)
Request body
object required
provider, 'STRIPE' | 'AIRWALLEX' required
Payment processor to connect
Example request
{
"provider": "STRIPE"
}Response
OK
object required
authorizationUrl, string uri required
URL to redirect the user to for OAuth authorization. Open in a new window or redirect the current page.
Example response
{
"authorizationUrl": "https://connect.stripe.com/oauth/authorize?response_type=code&client_id=ca_xxx&scope=read_write&redirect_uri=..."
}Changes
- breaking
the
authorizationUrlresponse's property format changed fromurito no format for status
- breaking
- info
added the non-success response with the status
- info