Norsk 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 method: POST
Authorization: Bearer Token
Header | Verdi |
---|---|
Authorization Example: | Bearer + API key (Link to find API key) Bearer gk43dlfgkj63763ljolh36l7jyh31 |
Content-Type | application/json |
Accept (optional) | application/json |
e
HTTP Body (maximum number of references is 100):
{ "references": [ "123456", "abc123" ] }
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:
[ { "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 } ] } ]
The number of references for each request is maximum 100.