RentalTideRentalTideDocs
Dashboard

Locations API

Manage business locations and their settings

Endpoints for managing business locations, operating hours, and location-specific settings.

Locations

Get locations

GET /location

If inventoryId is provided, returns the location for that boat. Otherwise, returns all locations for the authenticated user's customer.

Parameters

NameInTypeRequiredDescription
inventoryIdquerystringNoInventory ID to find the associated location

Responses

CodeDescription
200Location(s) retrieved successfully
401Unauthorized
404User, boat, or location not found
500Internal server error

Create a new location

POST /location

Creates a new location and sends a Slack notification. Automatically geocodes the address.

Request body

FieldTypeRequiredDescription
addressstringYes
phoneNumberstringYes
namestringYes
connectIdstringNoStripe Connect account ID
detailsobjectNoAdditional location details

Responses

CodeDescription
200Location created successfully
400Missing required fields
401Unauthorized
404User not found or customer ID not found
500Internal server error

Update a location

PATCH /location

Updates an existing location. If address is updated, automatically geocodes for new coordinates.

Request body

FieldTypeRequiredDescription
locationIdstringYesID of the location to update
addressstringNo
namestringNo
phoneNumberstringNo
detailsobjectNo

Responses

CodeDescription
200Location updated successfully
400locationId is required or no valid attributes to update
500Internal server error

Schedule a location for deletion

DELETE /location

Soft-deletes a location by scheduling it for permanent deletion after 60 days. The location can be restored before the grace period expires.

Request body

FieldTypeRequiredDescription
locationIdstringYesID of the location to delete
customerIdstringNoCustomer ID (optional, for notification purposes)

Responses

CodeDescription
200Location scheduled for deletion
400locationId is required
500Internal server error

Update location IVR configuration

PATCH /location/ivr

Updates the IVR (Interactive Voice Response) configuration for a location

Request body

FieldTypeRequiredDescription
locationIdstringYesID of the location to update
ivrConfigobjectYesIVR configuration object

Responses

CodeDescription
200IVR configuration updated successfully
400locationId and ivrConfig are required
500Internal server error

Restore a location scheduled for deletion

PATCH /location/restore

Cancels a pending scheduled deletion, restoring the location to active status.

Request body

FieldTypeRequiredDescription
locationIdstringYesID of the location to restore

Responses

CodeDescription
200Location restored successfully
400locationId is required or location is not scheduled for deletion
404Location not found
500Internal server error

Was this page helpful?
Need help? Contact Support.See what’s new. Check out changelog.Questions? Book a video chat.
Ask AI
Responses are generated using AI and may contain mistakes.
Ask questions about RentalTide and get help with your integration.