In Drupal, commerce orders are associated with the Billing and Shipping information. We can access both Billing and Shipping information from the order object. The below sample code shows how to access the profile information.
In Drupal, commerce order contains both Billing and shipping information on normal checkout process. If we are creating the commerce order programmatically then we have to add this information in manually. The below is the example of code for adding the Billing and shipping address to the order.