Skip to main content

Introduction to OData

OData (Open Data Protocol) is an open standard (approved by OASIS and ISO) for querying and manipulating data through REST APIs. Its great advantage is that it defines URL conventions for filtering, sorting, paginating, selecting fields and expanding relationships — without having to create a custom endpoint for each combination.

In practice: instead of asking the backend "give me the bookings of customer X created this month, only with the code and the date", you build that query yourself from the URL with standard parameters ($filter, $select, $orderby, etc.).

Official documentation

OData in Rently

Rently exposes a read-only OData API over a set of reference/query entities, designed for integrations that need to query and report data flexibly (filters, aggregations, exports) without multiple calls.

  • Base URL: all OData resources live under https://{tenant}.rently.com.ar/odata.
  • Authentication: the same as the rest of the API — Bearer token in the Authorization header (see Authentication).
  • Read-only: OData endpoints support GET (collection and by key). Write operations (create/update bookings, payments, etc.) are done through the REST API.

Available entity sets

Entity setResourceDescription
Bookings/odata/BookingsBookings (supports $expand of Customer, Category, etc.).
Customers/odata/CustomersCustomers.
Agencies/odata/AgenciesAgencies.
Categories/odata/CategoriesVehicle categories.
Models/odata/ModelsVehicle models.
Places/odata/PlacesBranch offices / locations.
BookingBrands/odata/BookingBrandsBooking brands.

OData or REST?

  • Use OData when you need to query/filter/report over these entities with flexibility (for example, listing a customer's bookings in a date range, expanding their data, fetching only some fields).
  • Use the REST API (the Bookings, Customers, etc. modules) to operate: create and manage bookings, record payments, check-in/out, incidents, etc.

Continue with Building OData queries to see how to filter, expand and sort with real examples.