Use of Audience

When fetching a access-token, you must always include audience (in addition to clientId and clientSecret).

The credentials you have gotten might have access to several audiences, but you have to fetch the access-token for the audience needed for the specific API you are about to use.

audience-value is specific per environment

Some audience-values

Environment: Test/stage

Environment: Production

Environment: Test/stage

Environment: Production

https://api.stage.bokbasen.io/metadata/

https://api.bokbasen.io/metadata/

https://api.stage.bokbasen.io/dds/

https://api.bokbasen.io/dds/

https://api.stage.bokbasen.io/bokskya/

https://api.bokbasen.io/bokskya/

https://api.stage.bokbasen.io/orders/

https://api.bokbasen.io/orders/

https://api.stage.bokbasen.io/reporting/

https://api.bokbasen.io/reporting/