Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduksjon

Siden viser et eksempel på response fra api’et.

Forretningsregler

Kun orgtyper 7, 51 og 58 støttes

Eksempler

...

Request parameters

Postes inn som querystringparametere

Code Block
buypassid eller personid (krav)
orgtypeid (valgfri)

JSON Response

Eksempelet viser en videregående skole / idrettsgymnas

Code Block

...

Soap Template

...

languagejson
[
    {
        "orgId": 452550,
        "orgName": "Meråker v.g. skole",
        "orgTypeId": 51,
        "organisationNumber": null,
        "abbreviation": null,
        "describingName": "Meråker v.g. skole",
        "addressLine1": "Sørsidveien 46",
        "addressLine2": null,
        "postCode": "7530",
        "city": "MERÅKER",
        "country": "Norge",
        "email": "froes@trondelagfylke.no",
        "phone1": null,
        "phone2": null,
        "mobilePhone": null,
        "sportId": 32,
        "owningOrgId": 452550
    }
]

JSON Response eksempel 2

Eksempelet viser tilknytning til to lag

Code Block
languagejson
[
    {
        "orgId": 564652,
        "orgName": "Team Kollen",
        "orgTypeId": 58,
        "organisationNumber": null,
        "abbreviation": null,
        "describingName": "Team Kollen",
        "addressLine1": "Team Kollen v/Hege Saastad",
        "addressLine2": "Ekebergveien 101",
        "postCode": "1178",
        "city": "OSLO",
        "country": "Norge",
        "email": "team.kollen.oslo@gmail.com",
        "phone1": null,
        "phone2": null,
        "mobilePhone": "12345678",
        "sportId": 130,
        "owningOrgId": 564652
    },
    {
        "orgId": 894068,
        "orgName": "Team OBOS",
        "orgTypeId": 58,
        "organisationNumber": null,
        "abbreviation": null,
        "describingName": "Team OBOS",
        "addressLine1": "Oslo Skikrets v/ Toril Vik",
        "addressLine2": "Ekebergveien 101",
        "postCode": "1178",
        "city": "OSLO",
        "country": "Norge",
        "email": "teamobos.langrenn@gmail.com; oslo@skiforbundet.no",
        "phone1": null,
        "phone2": null,
        "mobilePhone": null,
        "sportId": 130,
        "owningOrgId": 894068
    }
]