Admin

POST admin rentals reassign

    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 URL: https://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.equipmentshare.com/admin/rentals/reassign-rentals
  • Auth: HTTP bearer

Request body

new_order_idinteger required

The ID of the order to which rentals will be reassigned.

rental_idsinteger[] nullable

(DEPRECATED) List of rental IDs to be reassigned. Use rentals_to_reassign instead for rate adjustment support.

start_datestring

ISO 8601 effective start date for reassignment. If omitted, defaults to now.

Response

Changes

No recorded changes to this operation across all 1 revision of this API.