OAuth Error code

GET https://developers.shoplineapp.com/oauth/authorize

Request Params

FieldTypeDescriptionExample
response_typeStringcode
client_idStringClient ID of the oauth application
redirect_uriStringPreconfigured uri for result redirection
scopeStringRequired scopes for your application, separated by spaceopenid merchants staffs permissions
merchant_idStringTarget 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 StatusCodeDescription
401invalid_requestThe request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.
401invalid_redirect_uriThe redirect uri included is not valid.
401unauthorized_clientThe client is not authorized to perform this request using this method.
401access_deniedThe resource owner or authorization server denied the request.
401invalid_clientClient authentication failed due to unknown client, no client authentication included, or unsupported authentication method.
401invalid_scopeThe requested scope is invalid, unknown, or malformed.
401invalid_grantThe provided authorization grant is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.
401unsupported_response_typeThe authorization grant type is not supported by the authorization server.