Refresh Token
You can refresh the existing Customer Access Token to a new one using the refresh token.
Request Method: POST
Request Host: shop host (e.g. https://{{handle}}.shoplineapp.com)
Request Endpoint: /oauth/token
Request Body:
| Name | Type | Example |
|---|---|---|
| refresh_token | String | <refresh token retrieved from /oauth/token> |
| grant_type | String | refresh_token |
| redirect_uri | String | <same redirect_uri as /oauth/authorize> |
| client_id | String | <client id from Open API oauth application> |
| client_secret | String | <client secret from Open API oauth application> |
Request URL example:
POST {{shop_host}}/oauth/token
Example Response:
Status Code | Example Response Body |
|---|---|
200 OK | The request was successful, and the |
400 Bad Request | Invalid or missing parameters, such as |
401 Unauthorized | Invalid client id or client secret |
Updated 2 days ago
