Why is my API key not working?

API keys have multiple dependencies that can result in errors like: "The user is not authorized for this operation based on …". Please make sure you are using the correct credentials and endpoint with the correct API key. For example, your production API key is only able to make calls to the API production endpoint. The keys are also linked to your specific customer credentials such as customer number and customer code - please make sure to use the credentials PostNL has provided to you for your implementation.

In your Mijn PostNL Zakelijk account, you can go to the API Management environment (My Account > API Management) to check the authorised credentials and API bundles for the integration of the key you are using. Click on the integration you are using to navigate to the Manage Integration page for an overview of its details.