Skip to Content

RentalsApi

All URIs are relative to https://business.apis.kesk.app/v1 

MethodHTTP requestDescription
calculateRentalLateFeeGET /rentals/orders/{id}/late-feeCalculate late fee
cancelRentalOrderPOST /rentals/orders/{id}/cancelCancel rental order
checkRentalAvailabilityPOST /rentals/availability/checkCheck rental availability
createRentalOrderPOST /rentals/ordersCreate rental order
getRentalAvailabilityCalendarGET /rentals/items/{id}/availability/calendarGet availability calendar
getRentalItemGET /rentals/items/{id}Get rental item details
getRentalOrderGET /rentals/orders/{id}Get rental order details
getRentalStoreGET /rentals/stores/{id}Get rental store (location) details
listRentalCategoriesGET /rentals/categoriesList rental categories
listRentalItemsGET /rentals/itemsList rental items
listRentalOrdersGET /rentals/ordersList user’s rental orders
listRentalStoresGET /rentals/storesList rental stores (locations)
listRentalSubcategoriesGET /rentals/categories/{category_id}/subcategoriesList rental subcategories

calculateRentalLateFee

LateFeeResultResponse calculateRentalLateFee(id)

Calculate late fee

Calculates the current late fee for an overdue rental order. Returns zero if the rental is not overdue.

Parameters

NameTypeDescriptionNotes
idLongRental order ID[default to null]

Return type

LateFeeResultResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

cancelRentalOrder

CancellationResultResponse cancelRentalOrder(id, CancelRentalRequest)

Cancel rental order

Cancels a rental order. The refund amount depends on the cancellation policy and how close to the rental start date the cancellation is made.

Parameters

NameTypeDescriptionNotes
idLongRental order ID[default to null]
CancelRentalRequestCancelRentalRequest

Return type

CancellationResultResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

checkRentalAvailability

RentalAvailabilityCheckResponse checkRentalAvailability(CheckRentalAvailabilityRequest)

Check rental availability

Checks if a rental item is available for the specified date range. Returns availability status and any conflicts.

Parameters

NameTypeDescriptionNotes
CheckRentalAvailabilityRequestCheckRentalAvailabilityRequest

Return type

RentalAvailabilityCheckResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

createRentalOrder

RentalOrderResponse createRentalOrder(CreateRentalOrderRequest)

Create rental order

Creates a new rental order for the authenticated user. The order will be in ‘pending’ status until payment is confirmed.

Parameters

NameTypeDescriptionNotes
CreateRentalOrderRequestCreateRentalOrderRequest

Return type

RentalOrderResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: application/json; charset=utf-8
  • Accept: application/json; charset=utf-8

getRentalAvailabilityCalendar

List getRentalAvailabilityCalendar(id, location_id, start_date, end_date)

Get availability calendar

Retrieves a calendar view of availability for a rental item. Shows available quantities for each day in the specified range.

Parameters

NameTypeDescriptionNotes
idLongProduct ID to get calendar for[default to null]
location_idLongLocation ID to check availability at[default to null]
start_dateStringStart date for calendar (YYYY-MM-DD)[default to null]
end_dateStringEnd date for calendar (YYYY-MM-DD)[default to null]

Return type

List

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getRentalItem

ProductResponse getRentalItem(id, authorization)

Get rental item details

Retrieves detailed information about a specific rental item, including pricing, availability, and customization options.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the rental item[default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

ProductResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getRentalOrder

RentalOrderResponse getRentalOrder(id)

Get rental order details

Retrieves detailed information about a specific rental order. Only the order owner can access this endpoint.

Parameters

NameTypeDescriptionNotes
idLongRental order ID[default to null]

Return type

RentalOrderResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

getRentalStore

RentalStoreDetails getRentalStore(id, authorization)

Get rental store (location) details

Retrieves detailed information about a specific rental store location. The ID is the location ID, not the vendor ID.

Parameters

NameTypeDescriptionNotes
idLongUnique identifier of the rental store (location ID)[default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

RentalStoreDetails

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listRentalCategories

List listRentalCategories()

List rental categories

Retrieves top-level item categories for rental stores.

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listRentalItems

ProductListResponse listRentalItems(store_id, vendor_id, category_id, sub_category_id, is_open, latitude, longitude, keyword, page, per_page, authorization)

List rental items

Retrieves items from rental stores with optional filtering by store (location), category, and keyword search.

Parameters

NameTypeDescriptionNotes
store_idLongFilter by specific store ID (location ID)[optional] [default to null]
vendor_idLongFilter by specific vendor ID (company - includes all locations)[optional] [default to null]
category_idLongFilter by category ID[optional] [default to null]
sub_category_idLongFilter by sub-category ID[optional] [default to null]
is_openBooleanFilter to show only items from currently open stores[optional] [default to null]
latitudeDoubleUser’s latitude for location-based filtering[optional] [default to null]
longitudeDoubleUser’s longitude for location-based filtering[optional] [default to null]
keywordStringSearch keyword to filter items[optional] [default to null]
pageLongPage number for pagination (default: 1)[optional] [default to null]
per_pageLongItems per page for pagination (default: 10)[optional] [default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

ProductListResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listRentalOrders

PaginatedResponse_RentalOrderListItemResponse listRentalOrders(page, per_page)

List user’s rental orders

Retrieves a paginated list of the authenticated user’s rental orders.

Parameters

NameTypeDescriptionNotes
pageLongPage number for pagination (default: 1)[optional] [default to null]
per_pageLongItems per page for pagination (default: 20)[optional] [default to null]

Return type

PaginatedResponse_RentalOrderListItemResponse

Authorization

JwtAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listRentalStores

PaginatedResponse_RentalStoreListItem listRentalStores(latitude, longitude, radius_km, page, per_page, authorization)

List rental stores (locations)

Retrieves rental store locations with optional geo-filtering. Each store is a vendor_location - a vendor can have multiple stores. Results are filtered by proximity within 50km if coordinates are provided.

Parameters

NameTypeDescriptionNotes
latitudeDoubleLatitude for geo-filtering stores within radius[optional] [default to null]
longitudeDoubleLongitude for geo-filtering stores within radius[optional] [default to null]
radius_kmDoubleSearch radius in kilometers (default: 50)[optional] [default to null]
pageLongPage number for pagination (default: 1)[optional] [default to null]
per_pageLongItems per page for pagination (default: 20)[optional] [default to null]
authorizationStringOptional JWT bearer token for authenticated requests[optional] [default to null]

Return type

PaginatedResponse_RentalStoreListItem

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8

listRentalSubcategories

List listRentalSubcategories(category_id)

List rental subcategories

Retrieves subcategories for a specific rental category.

Parameters

NameTypeDescriptionNotes
category_idLongParent category ID[default to null]

Return type

List

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json; charset=utf-8