Revoke Token
Params you need to need
TOKEN
: The token to be revoked
DEVELOPER_APP_CLIENT_ID
: Your app client id
DEVELOPER_APP_CLIENT_SECRET
: Your app secret
Endpoint
POST https://developers.shoplineapp.com/oauth/revoke
Headers
Authorization: Basic base64(DEVELOPER_APP_CLIENT_ID:DEVELOPER_APP_CLIENT_SECRET)
Request Body
{
"token": "ey...."
}
CURL Example:
curl --request POST 'https://developers.shoplineapp.com/oauth/revoke' \
--header 'Authorization: Basic YXNkZjphc2Rm' \
--header 'Content-Type: application/json' \
--data-raw '{
"token": "ey..."
}
'
Example Response:
code: 200
response body:
{}
Response status code
The response will always be 200, regardless of the correctness of any inputs. You may verify if the token is successfully revoked by calling the token info endpoint.
Updated over 1 year ago