Admin
POST admin rentals reassign
Changed on Reassign rentals to a different order with optional rate adjustments.
TRANSACTION BEHAVIOR:
- All rentals are reassigned in a single database transaction
- If ANY rental fails to reassign, ALL changes are rolled back (all-or-nothing)
- No partial success - either all rentals are reassigned or none are
VALIDATION:
- All rentals must be from the same source order
- Target order must be from same company and branch as source rentals
- Rentals must have started on or before now
- Rentals must not have ended before now
- Rentals must be in DRAFT, PENDING, or ON_RENT status
RATE ADJUSTMENTS:
- Use rentals_to_reassign to specify new rates and shift types during reassignment
- Rates are not calculated by the backend - provide complete rate structures
- If rate fields are omitted, the original rental's rates are preserved
- Use rental_ids (deprecated) for backwards compatibility without rate adjustments
post/admin/rentals/reassign-rentals
Request
- Base URLhttps://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Request body
Admin Rentals Reassign Request required
new_order_id, integer required
The ID of the order to which rentals will be reassigned.
rental_ids, integer[] nullable
(DEPRECATED) List of rental IDs to be reassigned. Use rentals_to_reassign instead for rate adjustment support.
rentals_to_reassign, Rental To Reassign[] nullable
List of rentals to reassign with optional rate adjustments. Replaces rental_ids and supports specifying new rates during reassignment.
start_date, string
ISO 8601 effective start date for reassignment. If omitted, defaults to now.
Response
Admin Rentals Reassign Response required
reassigned_rentals, Reassigned Rental Response[] required
List of rentals that were reassigned with their old and new rental IDs.
Changes
- info
added the media type
application/jsonfor the response with the status
- info
- breaking
removed the media type
application/jsonfor the response with the status
- breaking