BScheduler Partner Integration Gateway
Purpose of the Integration
This Partner Integration Gateway provides partner-facing API endpoints for scheduling operations in BScheduler. The gateway translates between partner-specific terminology and BScheduler internals, allowing partners such as Truckmore to interact with BScheduler using their own field names and conventions.
Getting Started
API Key Requirements
To use this integration, partners must obtain an API key from BlueTread. Each API key is:
- Unique to the tenant/account - Ensures secure, isolated access per tenant
- Provided and managed by BlueTread - Contact BlueTread to receive your API key
- Required for all requests - Must be included in the Authorization header
Authentication
Include your API key in the Authorization header of every request:
Code
Partner Endpoints (Truckmore)
GET /truckmore/api/v1/rooftops
Returns available rooftops (locations) for scheduling.
Response Example:
Code
GET /truckmore/api/v1/timeslots
Returns available timeslots for a rooftop on a given date.
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
rooftopId | number | Yes | Rooftop ID from /rooftops |
selectedDate | string | Yes | Date to check (format: YYYY-MM-DD) |
Response Example:
Code
POST /truckmore/api/v1/fleets/search
Searches for fleets by name.
Request Body:
Code
Response Example:
Code
POST /truckmore/api/v1/appointments
Creates a new appointment.
Request Body:
| Parameter | Type | Required | Description |
|---|---|---|---|
fleetId | number | Yes | Fleet ID from /fleets/search |
rooftopId | number | Yes | Rooftop ID from /rooftops |
start | string | Yes | Start time (UTC, ISO 8601) matching a startTimeUtc from /timeslots |
Request Example:
Code
Response Example:
Code
POST /truckmore/api/v1/appointments/cancel
Cancels an existing appointment by ID.
Request Body:
Code
Error Responses
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid input or missing required fields |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Insufficient permissions |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Processing failed |
| 503 | Service Unavailable - Backend service temporarily unavailable |
Support
For API key requests, technical support, or questions about the integration:
- Email: [email protected]
- Purpose: API key provisioning and integration assistance