better naming for variables used in build_rest_payload