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

lisa_user
Thu, 09 Jan 2025 07:52:16 +0000

We’re hitting OAuth2 token rejection errors when posting billing data from edge devices to Oracle IoT Cloud Platform via REST API. The authentication works fine for device telemetry endpoints, but billing data posts consistently fail with 401 Unauthorized.

Our current implementation:

POST /iot/api/v2/billing/events
Authorization: Bearer {token}
Content-Type: application/json

Error response indicates “insufficient claims” but doesn’t specify which claims are missing. We’re using the same OAuth2 token that works for other API calls. Is there a specific claim requirement for billing endpoints? Also wondering if multi-tenant header configuration plays a role here since we’re managing multiple client accounts. Any guidance on the required permission scopes for billing data sync would be appreciated.