Type '{' '}' in url
Just type the URL:
\documentclass{article}
\usepackage{url}
\begin{document}
\url{http://foo.bar/orders{orderID}}
\end{document}
With hyperref
it's the same, but the result is an invalid URL, I guess.
With hyperref
, for fun (egreg was tooooo fast with url
;)...)
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\href{http://foo.bar/orders{orderID}}{\texttt{http://foo.bar/orders\{orderID\}}}
\end{document}