curl --location --request POST 'https://api.openpay.dk/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
"grant_type": "refresh_token",
"refresh_token": REFRESH_TOKEN,
"client_id": YOUR_APPLICATION_ID,
"client_secret": YOUR_SECRET_KEY
}'
{
"access_token": ACCESS_TOKEN,
"token_type": "Bearer",
"expires_in": 7200,
"refresh_token": REFRESH_TOKEN,
"scope": "offline_access"
}