The following API request is meant to add/remove manual suspension odds of sport/location/competition/fixture per market and lines.
Method - POST
Urls:
https://stm-api.lsports.eu/Markets/ManualSuspension/Activate - Add manual suspension
https://stm-api.lsports.eu/Markets/ManualSuspension/Deactivate - Remove manual suspension
Body Scheme
{ "UserName":"YourUserName", "Password":"YourPassword", "PackageId":YourPackageId, "Suspensions": [ { "SportId":6046, "LocationId":4, "CompetitionId":5, "FixtureId":6886881, "Markets":[{"MarketId":2,"Line":"0.5"}] } ] }
Request - Parameter breakdown
Parameter | Type | Description |
---|---|---|
Username | String | Username as it appears in the package |
Password | String | Password as it appears the package |
PackageId | Integer | PackageId as it provide by LSports |
Suspensions | List of Suspension |
All the fields above are mandatory!
Suspension - Parameter breakdown
Parameter | Type | Description |
---|---|---|
SportId | Integer | SportId as a filter opportunity |
LocationId | Integer | LocationId as a filter opportunity, must be provided with sport Id |
CompetitionId | Integer | TournamentId as a filter opportunity, must be provided with sport Id |
FixtureId | Integer | FixtureId as a filter opportunity |
Markets | List of Markets |
Market - Parameter breakdown
Parameter | Type | Description |
---|---|---|
MarketId | Integer | MarketId as a filter opportunity |
Line | String | Line as a filter opportunity ,must provided with market Id and fixture Id |
Mandatory Fields
Must include fixtureId
Market Parameters - Possible combinations
Supension Hierarchy | Market | Line |
---|---|---|
Sport | ✓ | X |
Location | ✓ | X |
Competition | ✓ | X |
Fixture | ✓ | ✓ |
Response Scheme
{ "Header": { "HttpStatusCode": 200 }, "Body": { "Succeeded": true, "Suspensions": [ { "Succeeded": true, "SportId": 6046, "CompetitionId": 37845, "CreationDate": "2021-07-04T12:29:56", "Markets": [ { "MarketId": 52 } ] } ] } }
Response fields
Field | Type | Description |
---|---|---|
Body.Succeeded | Bool | if all suspension succeeded = true, else = false |
Body.Reason | String | Reason in case of general request failure |
Suspension.Succeeded | Bool | flag that indicates if suspension request succeeded or not |
Suspension.Reason | String | Reason for any failed suspension request |
SportId | Integer | Requested sport id |
LocationId | Integer | Requested location id |
CompetitionId | Integer | Requested competition id |
FixtureId | Integer | Requested fixture id |
CreationDate | DateTime | Suspension creation date |
Markets | List of Markets | Requested Markets and Lines |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article