put
https://haulerpublic-api.prod.smartcity.routeware.{region}/api/locations/account//accountstatus
Updates the account status for a location identified by account number.
Validation Rules:
- The input object must not be null
- AccountStatusId must be between 1 and 5 (inclusive)
Date Rules:
- If both FromDate and ToDate are null, the status change is effective immediately
- For Active, New , and Closed: FromDate is required and ToDate must be null
- For Suspended and On Hold: FromDate is required, ToDate is optional
- If ToDate is provided, FromDate must be earlier than ToDate (FromDate < ToDate)
Account Status Values:
- 1 = Active, 2 = New, 3 = Suspended, 4 = On Hold, 5 = Closed