Documentation for SmartStore.NET 2.2
Order Examples
Get shipping address for order with ID 145
Example
GET http://localhost:1260/odata/v1/Orders(145)/ShippingAddress
This request is called OData navigation. Use BillingAddress
if you want the billing address of an order to be returned.
Get order by its GUID
Example
GET http://localhost:1260/odata/v1/Orders?$top=1&$filter=OrderGuid eq (Guid'4cf19e7d-cf40-44e4-aa7a-6605766158d6')
Get order items of order with ID 15 including product data
Example
GET http://localhost:1260/odata/v1/OrderItems?$top=120&$filter=OrderId eq 15&$expand=Product
Get all orders with the order note "mystring"
Example
GET http://localhost:1260/odata/v1/Orders?$top=120&$filter=OrderNotes/any(ordernote: ordernote/Note eq 'mystring')
Get all orders without the order note "mystring"
Example
GET http://localhost:1260/odata/v1/Orders?$top=120&$filter=OrderNotes/all(ordernote: ordernote/Note ne 'mystring')