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 with ID 145 as PDF

Example
POST http://localhost:1260/odata/v1/Orders(145)/Pdf

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')