authorization: ********************{
"grant_type": "authorization_code",
"client_id": "trustwill",
"client_secret": "oauth_test_secret_2026",
"code": "6y/ly4b0PVJLCv6fafC2Xg==",
"redirect_uri": "http://localhost:3000/oauth/callback"
}curl --location 'https://rapi.trustoo.io/api/v1/openapi/oauth/token' \
--header 'authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"grant_type": "authorization_code",
"client_id": "trustwill",
"client_secret": "oauth_test_secret_2026",
"code": "6y/ly4b0PVJLCv6fafC2Xg==",
"redirect_uri": "http://localhost:3000/oauth/callback"
}'{
"code": 0,
"message": "success",
"time": 1780401009,
"request_id": "f6cde0461ef81e496c076a06b8af6e63",
"data": {
"access_token": "JFjRBBzklGOonJ2PVBVIlg==",
"token_type": "Bearer",
"expires_in": "3600",
"refresh_token": "/o6aGgGn4cDP+qxnwBBr4Q==",
"scope": "read_orders,write_reviews"
}
}