...
Property | Description |
---|---|
| Use product products API to find correct product codes in given municipality |
| Additional data required to order a specific product that varies based on a product, see example below |
...
Code Block | ||
---|---|---|
| ||
"products": [ { "code": "WI54016101", "data": { "formatsystem": "UTM" } } ] |
Example response
Code Block | ||
---|---|---|
| ||
{ "id": 1234567, "status": "NEW", "priceNet": 1650.4, "priceVat": 2063, "dateOrdered": "2020-03-11T10:01:15+010021.02.2021 13:26:52", "dateStatus": "2020-03-11T10:01:15+010021.02.2021 13:27:54", "orders": [ { "id": 1234567, "supplierName": "Infoland Kommune - demo", "user": "(BETA) Ola Nordmann", "technicalReference": "some-technical-reference", "orderLines": [ { "id": 12345672, "status": { "NEW", "codeproduct": "NEWWI99990033", "nameproductName": "NewMeglerpakke", order. Has not been processed yet." }"productType": "PACKAGE", "productmediaType": "WI99990033Ukjent", "productNamedelivery": "MeglerpakkeElektronisk", "productTypepriceNet": { 1650.4, "codepriceVat": "1"2063, "namedateStatus": "PACKAGE"21.02.2021", "packageLineId": }null, "mediaTypeassets": "Ukjent",[] }, "delivery": "Elektronisk", { "priceNetid": 1650.412345673, "priceVatstatus": 2063"NEW", }"product": "WI99990900", { "productName": "Godkjente bygningstegninger", "idproductType": 12345673"NORMAL", "statusmediaType": { "Datafil", "codedelivery": "NEWElektronisk", "namepriceNet": "New order. Has not been processed yet."0, }"priceVat": 0, "productdateStatus": "WI9999090021.02.2021", "productNamepackageLineId": "Godkjente bygningstegninger"11604271, "productTypeassets": [] { }, "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.
Take a look at our Swagger documentation for the API here.
Send a GET
request to https://beta-api.ambita.com/kode/v1/orders/1234567
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." },} |
Get order
To get an order, you need to use the access_token
that you previously obtained.
Take a look at our Swagger documentation for the API here.
Send a GET
request to https://beta-api.ambita.com/kode/v1/orders/1234567
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": "PROCESSING", "priceNet": 1650.4, "priceVat": 2063, "dateOrdered": "21.02.2021 13:26:52", "dateStatus": "21.02.2021 13:28:58", "orders": [ { "id": 1234567, "supplierName": "Infoland Kommune - demo", "user": "(BETA) Ola Nordmann", "technicalReference": "some-technical-reference", "orderLines": [ { "productid": "WI99991600"12345672, "productNamestatus": "Kommunale avgifter og eiendomsskattPROCESSING", "productTypeproduct": { "WI99990033", "codeproductName": "0Meglerpakke", "nameproductType": "NORMAL" }PACKAGE", "mediaType": "PDF-dokUkjent", "delivery": "Elektronisk", "priceNet": 01650.4, "priceVat": 02063, }, "dateStatus": "21.02.2021", { "idpackageLineId": 12345678null, "statusassets": {[] }, "code": "NEW", { "nameid": "New12345673, order. Has not been processed yet." }"status": "PROCESSING", "product": "WI99990901WI99990900", "productName": "Midlertidig brukstillatelse og ferdigattest "Godkjente bygningstegninger", "productType": { "NORMAL", "codemediaType": "0Datafil", "namedelivery": "NORMALElektronisk", }"priceNet": 0, "mediaTypepriceVat": "PDF-dok"0, "deliverydateStatus": "Elektronisk21.02.2021", "priceNetpackageLineId": 011604271, "priceVatassets": 0[] }, ... ] } ] } |