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

ashleylead
Thu, 30 Jan 2025 14:40:52 +0000

One more thing to watch - token expiration for billing APIs is typically shorter (15 minutes vs 1 hour for device APIs). If you’re batching billing events, implement token refresh logic. I’ve seen scenarios where the first few posts succeed but later ones fail mid-batch because the token expired. Check the exp claim in your JWT to verify timing.