OAuth2 token rejected when posting billing data via REST API in multi-tenant billing engine integration

raymond_cloud
Tue, 04 Feb 2025 14:15:10 +0000

Quick tip on debugging - decode your JWT token at jwt.io to inspect the actual claims. You should see something like this in the payload for billing access to work properly. The aud claim must include the billing service endpoint, not just the base IoT platform URL. This catches a lot of people.