$select Parameter

When you retrieve records from MYOB Acumatica by using the contract-based REST API, you use the $select parameter to specify the fields of the entity to be returned from MYOB Acumatica. By default, all fields of the entity are returned.

You use OData URI conventions to specify the value of the $select parameter.

Example: Top-Level Fields

To obtain only the order types and order numbers of sales orders, you use the following parameter string: $select=OrderType,OrderNbr.

Example: Fields of Nested Entities

To obtain only the customer name, email address, and city, you use the following parameter string: $select=CustomerName,MainContact/Email,MainContact/Address/City.

Tip:
You also need to expand the MainContact and Address linked entities by using the $expand parameter. For a detailed example, see Retrieve the List of Customers with Contacts.