OAuth scope not supported or not offered
Error code
{
"code": "oauth.invalid_scope",
"docUrl": "https://doc.mor.payments.ai/errors/oauth-invalid-scope"
}
HTTP status
400
Cause
One of two things:
- The
scopesent to/v1/oauth/device_authorizationnames a scope Payments AI does not support, or lists no supported scope at all. The OAuth endpoints answer this as an RFC 6749 body,{ "error": "invalid_scope", "error_description": "..." }, and the description names the rejected scope. - The approval page was confirmed with no scope ticked, or with a scope the device did not ask for. Only scopes from the offered list can be granted.
How to fix
Send only scopes from the scope table in the agent auth guide, separated by spaces, or leave scope out so the person approving can pick from every supported scope. On the approval page, tick at least one of the offered scopes.