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

ruth_analyst
Fri, 10 Jan 2025 22:05:49 +0000

I’ve seen this exact issue. Billing endpoints require additional OAuth2 claims beyond standard device API access. Check if your token includes the ‘billing:write’ scope. The multi-tenant scenario adds another layer - you need to include the X-Tenant-ID header in your request even if the token is tenant-specific. The billing API validates both the scope claim and the tenant header match.