Return Multiple Selections from Variable on Separate Lines in API Body?

I have a variable $ID that I’m attempting to pass to an API body. The API only accepts text input.

I’d like to return the multiple selections from the variable $ID on separate lines in the API body.


I attempted all of the variable syntax formats to no avail.

Any help would be greatly appreciated!