Query addresses of orders

Query a single order address by ID

To query a single order address, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the order address.
    To get the order address, you must either call the GetOrderAddress method and pass the ID of the order address as an argument, or call the GetOrderAddresses method and filter the collection by the desired criteria.

Use the following code sample:

Query all order addresses of an order

To query order addresses by order, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.  
  2. Get the order addresses.
    To get the order addresses, you must call the GetOrderAddresses method of the manager and filter the query by the ID of the order.

Use the following code sample:

Query all order addresses

To query all order addresses, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the order addresses.
    To get the order addresses, you must call the GetOrderAddresses method of the manager.

Use the following code sample:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?