Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This request is called OData navigation. Use BillingAddress if you want the billing address of an order to be returned.


Get order

...

Code Block
languagec#
titleExample
linenumberstrue
GET http://localhost:1260/odata/v1/Orders?$top=1&$filter=OrderGuid eq (Guid'4cf19e7d-cf40-44e4-aa7a-6605766158d6')

Get order with ID 145 as PDF

Code Block
languagec#
titleExample
linenumberstrue
POST http://localhost:1260/odata/v1/Orders(145)/Pdf

Get order items of order with ID 15 including product data

Code Block
languagec#
titleExample
linenumberstrue
GET http://localhost:1260/odata/v1/OrderItems?$top=120&$filter=OrderId eq 15&$expand=Product

Get all orders with the order note "mystring"

Code Block
languagec#
titleExample
linenumberstrue
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"

Code Block
languagec#
titleExample
linenumberstrue
GET http://localhost:1260/odata/v1/Orders?$top=120&$filter=OrderNotes/all(ordernote: ordernote/Note ne 'mystring')