OAuth2 Flow
Last updated
https://dev.receipthero.io/auth?response_type=code&client_id={CLIENT_ID_HERE}&redirect_uri=https%3A%2F%2Freceipthero.io%2Fcallback&scope=receipt%3Awrite&state=cmVjZWlwdGhlcm9yb2Nrcw==https://client-server.com/callback?code=1745ee387c3545b2b77bf37baaf3b3f5&state=cmVjZWlwdGhlcm9yb2Nrcw==POST https://api.dev.receipthero.io/api/oauth/token
Content-Type: application/json
{
"grant_type": "authorization_code",
"code": "{CODE_HERE}",
"client_id": "{CLIENT_ID_HERE}",
"client_secret": "{CLIENT_SECRET_HERE}",
"redirect_uri": "{REDIRECT_URI_HERE}"
}{
"token_type": "Bearer",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWNlaXB0X2hlcm9faWQiOiI5Mjg5OTZmZC0yYTU3LTQ1NzctYjZlNy01ODNhZGM4ZGJlOGMiLCJpYXQiOjE2MjM3NDEwMDh9.gD17UFHxJoEmz_RrIHBQksjqgotyncoO8fDYurYPI2k"
}DELETE https://api.dev.receipthero.io/api/oauth/revoke
Host: api.dev.receipthero.io
Authorization: Bearer <USERS_OAUTH_TOKEN>HTTP 200 OK
Content-Type: application/jsonHTTP 404 Not Found
Content-Type: application/jsonhttps://dev.receipthero.io/membership?receipthero_id={receipthero_id}&redirect_uri={redirect_uri}