API Reference & Test Tool

https://www.postnummersok.se/api/
1 credit(s) / result

Request Parameters

HTTP Header Type Description Test Input
Content-Type MIME Type This defines the content type of your request data. Possible values are application/json, application/xml, or application/x-www-form-urlencoded. application/json
Accept MIME Type This defines the desired content type for the returned data. Possible values are application/json, application/xml, or application/x-www-form-urlencoded.
Parameter Type Description Test Input
customer_id Integer Your customer ID.
postcode String(5) The postcode to lookup.
country_code ISO 3166-1 alpha-2 A two letter ISO 3166-1 alpha-2 country code representing the country for the postcode.
checksum String(40) A SHA1 hash calculation of all request parameter values in the exact order as they are passed in the query, followed by your secret key.
SHA1 ( param1 + param2 + param3 + … + secret_key )

Hash Calculation String: