Do you mean that the variable $KMVAR_TotalMins isn't being evaluated, and instead it sends the literal string "$KMVAR_TotalMins" inside the JSON data string ?
If this is the case, I believe it's because you've used single quotes with the -d option, and the shell won't expand/evaluate variables if they are contained inside single quotes. Therefore, you might need to change your single quotes to double quotes; then go through your JSON string and escape all of the double quotes within. I've done it here for you, so see if that solves the problem: