Yes, you can use custom donation form fields in the same way you would with the donate method. Take the name of your custom donation form element and make it all lowercase, then replace any special characters or spaces with an underscore. This can be used as your parameter in the API call.