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 access_token, refresh_token is returned as customer access token and customer refresh token. |
| 400 Bad Request | Invalid or missing parameters, such as grant_type, refresh_token, redirect_uri, client_id, or client_secret. |
| 401 Unauthorized | Invalid client id or client secret |
