Bet Builder
Combine multiple selections into a single bet with correlated pricing
Overview
Authentication
Integration Workflow
Key Principle
JWT Bearer token issued by the authentication provider (Frontegg).
Include the token in the Authorization header as Bearer <token>.
Customer ID. Must match the tenantId claim in the JWT token.
Used for authorization — the customer must be registered for BetBuilder access.
12345LSports sport ID
6046Possible values: LSports league/tournament ID. Required for Basketball and American Football to select the correct pricing model format.
Known values
| League | ID |
|---|---|
| NBA | 64 |
| WNBA | 761 |
| NCAA Basketball | 4045 |
| Euroleague | 33249 |
| NFL | 75 |
| NCAA Football | 32505 |
64LSports fixture ID. Each request must use a unique value so the engine treats it as an independent event. Reusing the same ID across requests can cause state caching issues on the engine side.
100001Optional external event reference ID.
Optional view/session reference ID.
Combined bet price successfully derived
Internal correlation ID for tracing.
a1b2c3d4-e5f6-7890-abcd-ef1234567890Combined margined decimal odds for all selections.
3.45Indices of selections that are required for the bet to be valid.
[0,1]Bad request — missing required fields or invalid format
Unauthorized — missing or invalid JWT Bearer token
Forbidden — the customer is not authorized for BetBuilder.
Returned when the customerId header is missing/invalid or the customer
does not have BetBuilder access.
Unprocessable Entity — pricing engine cannot process the request.
Error Types:
| errorCode | errorType | Description |
|---|---|---|
| 1001 | UnprocessableEntity | Missing source markets or state data to calculate the selection |
| 1002 | InvalidBetslip | The combination of selections on the betslip is invalid (e.g., mutually exclusive) |
| 1003 | UnwinnableBet | The combination of selections results in zero-win probability |
| 1004 | CalculationError | An error occurred while calculating the betslip |
Internal server error — unexpected error occurred
Not Implemented — selection type is not supported
Bad Gateway — failed to connect to pricing service
Service Unavailable — pricing service is temporarily unavailable
Gateway Timeout — pricing service request timed out
JWT Bearer token issued by the authentication provider (Frontegg).
Include the token in the Authorization header as Bearer <token>.
Customer ID. Must match the tenantId claim in the JWT token.
Used for authorization — the customer must be registered for BetBuilder access.
12345LSports sport ID
6046Possible values: Optional filter — return data for a single market only.
1397List of supported markets with dependencies
Unauthorized — missing or invalid JWT Bearer token
Forbidden — the customer is not authorized for BetBuilder.
Returned when the customerId header is missing/invalid or the customer
does not have BetBuilder access.
JWT Bearer token issued by the authentication provider (Frontegg).
Include the token in the Authorization header as Bearer <token>.
Customer ID. Must match the tenantId claim in the JWT token.
Used for authorization — the customer must be registered for BetBuilder access.
12345LSports sport ID
48242Possible values: Optional filter — return data for a single league only.
64List of supported leagues with format configuration
Unauthorized — missing or invalid JWT Bearer token
Forbidden — the customer is not authorized for BetBuilder.
Returned when the customerId header is missing/invalid or the customer
does not have BetBuilder access.
Last updated
Was this helpful?