Hi @Madhavan Selvaraj,
Your Exposed API Parameter can be kept as LongInteger, Once the API reaches OS logic on the request you can convert the LongInteger received from the parameter to Identifier by LongIntegertoIdentifier() Function. And assign to your Local variable with User Identifier data type. Use this local variable for aggregate filtration.
Note: If your Expose API Input paramater is going to be Text, then Use LongIntegertoIdentifier(TexttoLongInteger()).
Please find the attached Oml for reference.
Regards,
Saravanan Santhanam.