Adding conditional api_url if refunds