Autenticação
curl --location --request POST 'https://rest.hub2b.com.br/oauth2/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "{cliente_id}",
"client_secret": "{client_secret}",
"grant_type": "password",
"scope": "inventory orders catalog",
"username": "{username}",
"password": "{password}"
}'{
"refresh_token": "string",
"token_type": "bearer",
"access_token": "string",
"expires_in": 7200
}{
"client_id": "string",
"grant_type": "refresh_token",
"client_secret": "string",
"refresh_token": "string"
}Last updated