Error - Device ID already registered

Good to know that your issue is resolved.

Not sure about the “Can you also tell how can we pass a string variable in the body of a post Http request ?”

Refer the below post if it helps