Trillboards Stripe Connect API
Stripe Connect integration for partner payouts. Create a Stripe Connect account, complete onboarding, and receive payouts directly to your bank account. Minimum payout is $5.00.
Stripe Connect integration for partner payouts. Create a Stripe Connect account, complete onboarding, and receive payouts directly to your bank account. Minimum payout is $5.00.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/trillboards-com:trillboards-com-stripe-connect-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Trillboards Partner Stripe Connect API
version: 1.1.0
description: 'API for partner integrations with Trillboards digital advertising platform.
Use this API to integrate ads into your vending machines, kiosks, digital signage,
and other display devices. Partners receive competitive revenue share on all impressions.
## Authentication
Most endpoints require API key authentication using Bearer token:
```
Authorization: Bearer trb_partner_xxxxx
```
API keys are generated during partner registration and should be stored securely.
## Rate Limits
All endpoints return rate limit headers:
- `X-RateLimit-Limit`: Maximum requests allowed per window
- `X-RateLimit-Remaining`: Requests remaining in current window
- `X-RateLimit-Reset`: Unix timestamp when window resets
- `RateLimit-Policy`: IETF draft-7 format policy string
Rate limits by endpoint type:
| Endpoint Type | Limit | Window |
|--------------|-------|--------|
| Registration | 5 | 1 hour |
| Authenticated API | 1000 | 1 minute |
| Ad serving | 100 | 1 minute |
| Impressions | 500 | 1 minute |
| Programmatic events | 300 | 1 minute |
| Batch impressions | 100 | 1 minute |
| Heartbeat | 60 | 1 minute |
| Venue intelligence | 100 | 1 minute |
| Audience intelligence | 100 | 1 minute |
| Bulk device operations | 20 | 1 minute |
Exceeding rate limits returns HTTP 429 with a `Retry-After` header.
## Quick Start
**Option A: New Partner Registration**
1. Register as a partner via `POST /register` (returns API key)
2. Register your devices
3. Load the `embed_url` in your device''s WebView or use `/device/{id}/ads` in custom UI
4. Impressions are tracked automatically
**Option B: Existing Earner Upgrade**
If you already have a Trillboards earner account:
1. Call `POST https://api.trillboards.com/v2/earner/upgrade-to-partner` with your user JWT
2. Receive your Partner API key (one-time display - save it!)
3. Your existing screens remain visible alongside new API-registered screens
## SDK
Install the official TypeScript SDK for type-safe integration:
```
npm install @trillboards/ads-sdk
```
The SDK provides 4 entry points:
- `@trillboards/ads-sdk` — Core browser SDK with ad player, events, and caching
- `@trillboards/ads-sdk/react` — React hooks and components (TrillboardsProvider, TrillboardsAdSlot)
- `@trillboards/ads-sdk/react-native` — React Native WebView wrapper
- `@trillboards/ads-sdk/server` — Node.js PartnerClient with audience, analytics, auctions, creatives
Full documentation: https://trillboards.com/developers/partner-sdk'
contact:
name: Trillboards Developer Support
email: developers@trillboards.com
url: https://trillboards.com/developers
license:
name: Proprietary
url: https://trillboards.com/terms-of-service
servers:
- url: https://api.trillboards.com/v1/partner
description: Production API
- url: http://localhost:4004/v1/partner
description: Local development
tags:
- name: Stripe Connect
description: 'Stripe Connect integration for partner payouts.
Create a Stripe Connect account, complete onboarding, and receive payouts
directly to your bank account. Minimum payout is $5.00.'
paths:
/stripe/connect:
post:
tags:
- Stripe Connect
summary: Create Stripe Connect account
description: 'Creates a Stripe Connect Express account for the partner. If the partner already
has a Stripe account, returns the existing account details with HTTP 200.'
operationId: createStripeConnectAccount
security:
- BearerAuth: []
responses:
'201':
description: Stripe Connect account created
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
data:
type: object
properties:
account_id:
type: string
example: acct_1234567890
charges_enabled:
type: boolean
payouts_enabled:
type: boolean
details_submitted:
type: boolean
country:
type: string
example: US
default_currency:
type: string
example: usd
next_step:
type:
- string
- 'null'
'200':
description: Stripe account already exists
'401':
$ref: '#/components/responses/Unauthorized'
'500':
description: Stripe API error
/stripe/onboarding-link:
get:
tags:
- Stripe Connect
summary: Get Stripe onboarding link
description: 'Returns a temporary Stripe-hosted onboarding URL where the partner can
complete identity verification and bank account setup.'
operationId: getStripeOnboardingLink
security:
- BearerAuth: []
responses:
'200':
description: Onboarding link generated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
onboarding_url:
type: string
format: uri
expires_at:
type: string
format: date-time
account_id:
type: string
instructions:
type: string
'400':
description: Partner has no Stripe account — call POST /stripe/connect first
'401':
$ref: '#/components/responses/Unauthorized'
/stripe/login-link:
get:
tags:
- Stripe Connect
summary: Get Stripe dashboard login link
description: Returns a temporary link to the partner's Stripe Express dashboard.
operationId: getStripeLoginLink
security:
- BearerAuth: []
responses:
'200':
description: Login link generated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
login_url:
type: string
format: uri
account_id:
type: string
instructions:
type: string
'400':
description: Partner has no Stripe account
'401':
$ref: '#/components/responses/Unauthorized'
/stripe/status:
get:
tags:
- Stripe Connect
summary: Get Stripe account status
description: 'Returns the current status of the partner''s Stripe Connect account including
onboarding requirements and payout readiness.'
operationId: getStripeAccountStatus
security:
- BearerAuth: []
responses:
'200':
description: Account status
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
has_account:
type: boolean
status:
type: string
enum:
- not_connected
- pending
- active
- restricted
account_id:
type:
- string
- 'null'
charges_enabled:
type: boolean
payouts_enabled:
type: boolean
details_submitted:
type: boolean
country:
type: string
default_currency:
type: string
requirements:
type: object
properties:
currently_due:
type: array
items:
type: string
eventually_due:
type: array
items:
type: string
past_due:
type: array
items:
type: string
disabled_reason:
type:
- string
- 'null'
'401':
$ref: '#/components/responses/Unauthorized'
/stripe/payout:
post:
tags:
- Stripe Connect
summary: Request a payout
description: 'Initiates a payout transfer to the partner''s Stripe Connect account.
Minimum payout is $5.00 (500 cents). The partner must have an active
Stripe account and sufficient available balance.'
operationId: requestStripePayout
security:
- BearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- amount_cents
properties:
amount_cents:
type: integer
minimum: 500
description: Payout amount in cents (minimum $5.00)
example: 10000
description:
type: string
description: Optional description for the payout
idempotency_key:
type: string
description: Deduplication key to prevent duplicate payouts
responses:
'200':
description: Payout initiated
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
message:
type: string
example: Payout of $100.00 initiated
data:
type: object
properties:
transfer_id:
type: string
example: tr_1234567890
amount_cents:
type: integer
currency:
type: string
destination:
type: string
status:
type: string
enum:
- pending
- reversed
created:
type: string
format: date-time
description:
type: string
estimated_arrival:
type: string
format: date-time
description: Estimated arrival (2-3 business days)
'400':
description: Invalid amount, insufficient balance, or account not active
'401':
$ref: '#/components/responses/Unauthorized'
/stripe/payouts:
get:
tags:
- Stripe Connect
summary: Get payout history
description: Returns a paginated list of past Stripe payouts for the partner.
operationId: getStripePayoutHistory
security:
- BearerAuth: []
parameters:
- name: limit
in: query
schema:
type: integer
default: 25
maximum: 100
description: Maximum number of payouts to return
responses:
'200':
description: Payout history
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
properties:
transfers:
type: array
items:
type: object
properties:
transfer_id:
type: string
amount_cents:
type: integer
currency:
type: string
status:
type: string
enum:
- completed
- reversed
created:
type: string
format: date-time
description:
type: string
has_more:
type: boolean
total:
type: integer
'401':
$ref: '#/components/responses/Unauthorized'
/stripe/webhook:
post:
tags:
- Stripe Connect
summary: Stripe webhook receiver
description: 'Receives webhook events from Stripe for Connect account updates and transfer status changes.
This endpoint is called by Stripe, not by the partner. It uses Stripe signature verification.
**Handled events:** `account.updated`, `transfer.created`, `transfer.paid`, `transfer.reversed`'
operationId: handleStripeWebhook
security: []
requestBody:
required: true
content:
application/json:
schema:
type: object
description: Raw Stripe webhook event payload
responses:
'200':
description: Webhook acknowledged
content:
application/json:
schema:
type: object
properties:
received:
type: boolean
example: true
event_type:
type: string
components:
schemas:
Error:
type: object
properties:
success:
type: boolean
example: false
message:
type: string
error:
type: string
responses:
Unauthorized:
description: Unauthorized - Invalid or missing API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
success: false
message: API key required
securitySchemes:
BearerAuth:
type: http
scheme: bearer
description: 'API key authentication. Include your API key as a Bearer token:
```
Authorization: Bearer trb_partner_xxxxx
```
'
UserJWT:
type: http
scheme: bearer
description: 'User JWT authentication for earner-to-partner upgrade.
Used only for the `/v2/earner/upgrade-to-partner` endpoint.
This is the same JWT token used for the Earner Portal.
'