add common params 'code' to API