Add/Remove Manual Suspension

Modified on Sun, 10 Sep, 2023 at 12:13 PM

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

ParameterTypeDescription
UsernameStringUsername as it appears in the package
PasswordStringPassword as it appears the package
PackageIdIntegerPackageId as it provide by LSports
SuspensionsList of Suspension

All the fields above are mandatory!

Suspension - Parameter breakdown

ParameterTypeDescription
SportIdIntegerSportId as a filter opportunity
LocationIdIntegerLocationId as a filter opportunity, must be provided with sport Id
CompetitionIdIntegerTournamentId as a filter opportunity, must be provided with sport Id
FixtureIdIntegerFixtureId as a filter opportunity
MarketsList of Markets

Market - Parameter breakdown

ParameterTypeDescription
MarketIdIntegerMarketId as a filter opportunity
LineStringLine as a filter opportunity ,must provided with market Id and fixture Id

Mandatory Fields

Must include fixtureId

Market Parameters - Possible combinations

Supension HierarchyMarketLine
SportX
LocationX
CompetitionX
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

FieldTypeDescription
Body.SucceededBoolif all suspension succeeded = true, else = false
Body.ReasonStringReason in case of general request failure
Suspension.SucceededBoolflag that indicates if suspension request succeeded or not
Suspension.ReasonStringReason for any failed suspension request
SportIdIntegerRequested sport id
LocationIdIntegerRequested location id
CompetitionIdIntegerRequested competition id
FixtureIdIntegerRequested fixture id
CreationDate
DateTime
Suspension creation date
MarketsList of MarketsRequested 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article