How to use custom client fields in default_values.php
You can access the custom client fields in default_values.php like this: $billing_api_values["user_name"] = $params["clientsdetails"]["customfields1"]; From 1 to the number of client fields that you have.