Smartbet.io offers the following http GET/POST endpoints to facilitate communication with the pick processing and distribution system:
postpick.php - Submit a new pick to Smartbet.io
Parameters
The parameters sport, event and bet must adhere to Smartbet.io's syntax rules as outlined in Market Support.
GET Example
smartbet.io/postpick.php?key=bcbab-1a8dd2q5-d138-4af3-bzb5-58m2v54b1c6z&sport=BASKETBALL&event=VALENCIA%20-%20BARCELONA&bet=OVER%20152.5&odds=1.91&stake=4&book=bet365&source=user>mysource
POST Example
POST smartbet.io/postpick.php
{
"key": "bcbab-1a8dy2q5-d138-4af3-bzb5-58m2v54b1c6z",
"sport": "BASKETBALL",
"event": "VALENCIA - BARCELONA",
"bet": "OVER 152.5",
"odds": "1.91",
"stake": "4",
"book": "PINNACLE",
"source": "user>mysource"
}
Response
Upon successful submission of a new pick, the API will return a JSON response containing the pick ID of the newly inserted pick. You can store and use this ID to retrieve processing/distribution and execution results for this pick at any later point. If the request fails, the API will return an error message with a short description of the issue.
Successful Response Example
{
"pickid": 123456
}
pickstatus.php - Retrieve processing and order distribution/execution results for a previously submitted pick
Parameters
GET Example
smartbet.io/pickstatus.php?key=bcbab-1a8dd2q5-d138-4af3-bzb5-58m2v54b1c6z&pickid=123456
POST Example
POST smartbet.io/pickstatus.php
{
"key": "bcbab-1a8dy2q5-d138-4af3-bzb5-58m2v54b1c6z",
"pickid": "123456"
}
Response
Upon successful call of pickstatus.php, the API will return a JSON response containing processing/distribution and order execution data for the requested Pick ID. If the request fails, the API will return an error message with a description of the issue.
Successful Response Example
{
"processing_status": string enum ["PROCESSED", "NOT PROCESSED", "PICK NOT FOUND OR INVALID KEY"],
"processing_result_short": short description of the processing result,
"processing_result_long": long description of the processing result,
"execution_result": description of order execution result
}