GET Locations

Modified on Tue, 03 Oct 2023 at 06:30 PM

The following request will provide you with a list of supported locations by LSports:

Method - POST
URL - https://stm-api.lsports.eu/Locations/Get

Body Scheme

{
    "PackageId": YourPackageId,
    "UserName": "YourUserName",
    "Password": "YourPassword";
    "LanguageId": LanguageId
}

Parameter breakdown

ParameterDescriptionMandatory Field
UsernameUsername as it appears in the package
PasswordPassword as it appears the package
PackageIdPackageId as provided by LSports
LanguageId

LanguageId as a filter opportunity
Type : int?

X

Response Scheme

{
    "Header": {
        "HttpStatusCode": 200
    },
    "Body": {
        "Locations": [
            {
                "Id": 1,
                "Name": "Uganda"
            },
            {
                "Id": 2,
                "Name": "Great Britain"
            }      
            ]
    }
}


  • If the request is without “LanguageId” - the response returns a list of “Id” and “Name” in English.

  • If the request is with “LanguagesId” that InValid - ErrorCode 400 and error message - "Incorrect request, please enter a valid Language and resend your request."                                                                          

  • If the request is with “LanguageId” and there are some sports that don't have a translation in this language - it's not returned (without an error).

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 atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article