Create a node Automatically when a commerce order is completed In my site, I am using drupal commerce in order to run  a shop.

In my plan, a new node must be created when an order is completed. (paid)

Also in new node creation I want to use the order's field values. (for example order id, or username (and uid ) who ordered , entity values &amp; etc )

Please help me. How can I setup this solution?
can I do this process via "Rules" or I have to create a module and use hook functions?

Thanks a lot for your guidance.
Yes, its time to create a module, and use these nice hooks Commerce API is offering to interfere to the regular execution of things in your Drupal site.

After getting the big picture, creating a node will be as easy as this first script.
So in a hook which is invoked whenever an order is complete, you would add the node creation code.