Versions Compared

Key

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

Toll API brukes for å hente ut informasjon om godkjente deklarasjoner.

Informasjon som hentes er linjedeklarasjonsnummer, dato, sum toll avgifter, sum mva 15% og 25%, og evt. omberegningsinformasjon om en deklarasjon er blitt omberegnet.

Instruksjoner.

LenkeNorsk versjon: Norsk

Customs API is used to extract information about approved declarations.

Information that can be retrieved is line declaration number, date, sum of customs duties, sum of VAT 15% og 25%, and recalculation information if a declaration has been recalculated.

Instructions.

Link: https://customsapi.proteria.com

HTTP metodemethod: POST

Authorization: Bearer Token

Header

Verdi

Authorization

EksempelExample:

Bearer + API nøkkel for firmaAPI key (Link to find API key)

Bearer gk43dlfgkj63763ljolh36l7jyh31

Content-Type

application/json

Accept (valgfrioptional)

application/json

HTTP Body (maks antall referanser er maximum number of references is 100):

Code Block
{
	"references": [ "123456", "abc123" ]
}

Retur.

Retur blir sortert og gruppert på referanse (reference).

Ved flere deklarasjoner på samme referanse, blir de listet opp under customsClearences og sortert på nyeste (høyeste) sekvensnummer. Om en deklarasjon er omberegnet, kommer det opp informasjon under recalculation.

...

Return.

Return response are sorted and grouped by reference.

For multiple declarations with the same reference, they are listed under customsClearences and sorted by latest (highest) sequence number. If a declaration is recalculated, information will appear under recalculation.

Return example:

Code Block
[
    {
        "reference": "123456",
        "customsClearences": [
            {
                "lineDeclarationNumber": "0101012020123123",
                "date": "19.06.2020",
                "duties": 955,
                "vat15": 1050,
                "vat25": 0,
                "recalculation": {
                    "originalLineDeclarationNumber": "0101012020123111",
                    "text1": "Feil vekt lagt til grunne på varepost1,2,4,7,9,12,14,17,18 o",
                    "text2": "g 19",
                    "text3": null,
                    "text4": null
                }
            },
            {
                "lineDeclarationNumber": "0101012020123111",
                "date": "08.06.2020",
                "duties": 450,
                "vat15": 680,
                "vat25": 0,
                "recalculation": null
            }
        ]
    },
    {
        "reference": "abc123",
        "customsClearences": [
            {
                "lineDeclarationNumber": "0101012020456456",
                "date": "22.06.2020",
                "duties": 2050,
                "vat15": 0,
                "vat25": 51400,
                "recalculation": null
            }
        ]
    }
]
Info

...

The number of references for each request is maximum 100.

...

Related articles:

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@256f52
showSpacefalse
sortmodified
typepage
reversetrue
labelstoll api avgifter mva moms
cqllabel in ( "api" , "moms" , "mva" , "toll" , "avgifter" ) and type = "page" and space = "PFWS" and title ~ "API nøkkel"

...