How to create a request attribute to capture "purchase=XAVSKJ95JJEE"?

Hi,

I need help in creating a request attribute to capture ’ purchase=XAVSKJ95JJEE’ for the below example:

com/v1/purchase/XAVSKJ95JJEE

Note: There are also other URI’s with a similar format

com/v1/purchase/quote/XAVSKJ95JJEE

com/v1/purchase/sample/XAVSKJ95JJEE

Hi @kethind

assuming this is a web request URL, that’s how you do: