OAuth Error code
GET https://developers.shoplineapp.com/oauth/authorize
Request Params
Field | Type | Description | Example |
---|---|---|---|
response_type | String | code | |
client_id | String | Client ID of the oauth application | |
redirect_uri | String | Preconfigured uri for result redirection | |
scope | String | Required scopes for your application, separated by space | openid merchants staffs permissions |
merchant_id | String | Target merchant, default with the first merchant of current staff if no merchant id is given |
Response
Redirection with code
to redirect uri passing in
Error Codes
Http Status | Code | Description |
---|---|---|
401 | invalid_request | The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed. |
401 | invalid_redirect_uri | The redirect uri included is not valid. |
401 | unauthorized_client | The client is not authorized to perform this request using this method. |
401 | access_denied | The resource owner or authorization server denied the request. |
401 | invalid_client | Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method. |
401 | invalid_scope | The requested scope is invalid, unknown, or malformed. |
401 | invalid_grant | The provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. |
401 | unsupported_response_type | The authorization grant type is not supported by the authorization server. |
Updated 6 months ago