Versions Compared

Key

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

...

Property

Description

For ordering cadastre products, see example below

 

address

Important to use this format {Street address}, {Postal code} {Postal office}, for example, Infoveien 1, 9999 Infoland

cadastre

Cadastre should always include all required parts {Kommunenummer}-{Gårdsnummer}-{Bruksnummer}-{Festenummer}-{Seksjonsnummer}, for example, 0301-100-10-0-0

For ordering share products, see example below

 

organizationNumber

Organization number

shareNumberShare number

The id of the owner's right of occupation in the cooperative

For ordering map product, see example below

 

geometry

A closed GeoJSON polygon specified in ETRS89 / UTM zone 33N or ETRS89 / UTM zone 32N

spatialReference

Spatial reference the geometry is specified in either 25833 or 25832

...

Example response

Code Block
{
  "id": 16649841234567,
  "status": "NEW",
  "priceNet": 01650.4,
  "priceVat": 02063,
  "dateOrdered": "20212020-0103-28T0911T10:1001:15+0100",
  "dateStatus": "20212020-0103-28T0911T10:1001:15+0100",
  "orders": [
    {
      "id": 26406491234567,
      "supplierName": "Tromsø kommuneInfoland Kommune - demo",
      "user": "Test User(BETA) Ola Nordmann",
      "technicalReference": null,
"some-technical-reference",
      "orderLines": [
        {
          "id": 1160316412345672,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI54016101WI99990033",
          "productName": "Basiskart som vektordataMeglerpakke",
          "productType": {
            "code": "01",
            "name": "NORMALPACKAGE"
          },
          "mediaType": "DatafilUkjent",
          "delivery": "Elektronisk",
          "priceNet": 01650.4,
          "priceVat": 02063
        },
        {
  ]     }   ]
}

Get order

To get an order, you need to use the access_token that you previously obtained.

Send a GET request to https://beta-api.ambita.com/kode/v1/orders/1234567

Take a look at our Swagger documentation for the API here: Swagger

Example request

Code Block
curl -s \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ej577asf-a5k6-42yq-a3a2-fh03hb8cb58c" \
      https://beta-api.ambita.com/kode/v1/orders/1234567

...

"id": 12345673,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990900",
          "productName": "Godkjente bygningstegninger",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "Datafil",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345674,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99991001",
          "productName": "Tilknytning til offentlig vann og kloakk - skjemaløsning",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "Ukjent",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345675,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990400",
          "productName": "Grunnkart",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "Tekstfil",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345676,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99992350",
          "productName": "Planutsnitt med bestemmelser",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "PDF-dok",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345677,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99991600",
          "productName": "Kommunale avgifter og eiendomsskatt",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "PDF-dok",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345678,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990901",
          "productName": "Midlertidig brukstillatelse og ferdigattest",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "PDF-dok",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        }
      ]
    }
  ]
}

Get order

To get an order, you need to use the access_token that you previously obtained.

Send a GET request to https://beta-api.ambita.com/kode/v1/orders/1234567

Take a look at our Swagger documentation for the API here: Swagger

Example request

Code Block
curl -s \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer ej577asf-a5k6-42yq-a3a2-fh03hb8cb58c" \
      https://beta-api.ambita.com/kode/v1/orders/1234567

Example response

Code Block
{
  "id": 1234567,
  "status": "NEW",
  "priceNet": 1650.4,
  "priceVat": 2063,
  "dateOrdered": "2020-03-11T10:01:15+0100",
  "dateStatus": "2020-03-11T10:01:15+0100",
  "orders": [
    {
      "id": 1234567,
      "supplierName": "Infoland Kommune - demo",
      "user": "(BETA) Ola Nordmann",
      "technicalReference": "some-technical-reference",
      "orderLines": [
        {
          "id": 12345672,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990033",
          "productName": "Meglerpakke",
          "productType": {
            "code": "1",
            "name": "PACKAGE"
          },
          "mediaType": "Ukjent",
          "delivery": "Elektronisk",
          "priceNet": 1650.4,
          "priceVat": 2063
        },
        {
          "id": 12345673,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990900",
          "productName": "Godkjente bygningstegninger",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "Datafil",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345674,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99991001",
          "productName": "Tilknytning til offentlig vann og kloakk - skjemaløsning",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "Ukjent",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345675,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990400",
          "productName": "Grunnkart",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "Tekstfil",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345676,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99992350",
          "productName": "Planutsnitt med bestemmelser",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "PDF-dok",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345677,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99991600",
          "productName": "Kommunale avgifter og eiendomsskatt",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "PDF-dok",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        },
        {
          "id": 12345678,
          "status": {
            "code": "NEW",
            "name": "New order. Has not been processed yet."
          },
          "product": "WI99990901",
          "productName": "Midlertidig brukstillatelse og ferdigattest",
          "productType": {
            "code": "0",
            "name": "NORMAL"
          },
          "mediaType": "PDF-dok",
          "delivery": "Elektronisk",
          "priceNet": 0,
          "priceVat": 0
        }
      ]
    }
  ]
}